PHP Fatal error: Interface 'SessionHandlerInterface' not found in
[email protected] Tue, 2 Oct 2018 22:58:47 +0200
| Newsgroups | gmane.comp.php.install |
|---|---|
| Message-ID | <trinity-ffde872b-fbf2-46c1-bdb1-12e2d829a82b-1538513927059@3c-app-webde-bap37> |
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>
<div>I want to install an app (Bookstack: https://github.com/BookStackApp/BookStack) that reports an error in step "php artisan migrate".</div>
<div> </div>
<div>The error message is:</div>
<div>
<div><span style="font-family:Courier New,Courier,monospace;">PHP Fatal error: Interface 'SessionHandlerInterface' not found in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php on line 10</span></div>
<div><br/>
<span style="font-family:Courier New,Courier,monospace;"> [Symfony\Component\Debug\Exception\FatalErrorException]<br/>
Interface 'SessionHandlerInterface' not found</span><br/>
</div>
<div>The relevant coding in this php-file is:</div>
<div>
<div><span style="font-family:Courier New,Courier,monospace;"><?php</span></div>
<div><span style="font-family:Courier New,Courier,monospace;">namespace Illuminate\Session;</span></div>
<div><span style="font-family:Courier New,Courier,monospace;">use SessionHandlerInterface;<br/>
use Illuminate\Support\Carbon;<br/>
use Symfony\Component\Finder\Finder;<br/>
use Illuminate\Filesystem\Filesystem;</span></div>
<div><span style="font-family:Courier New,Courier,monospace;">class FileSessionHandler implements SessionHandlerInterface<br/>
{<br/>
/**<br/>
* The filesystem instance.<br/>
*<br/>
* @var \Illuminate\Filesystem\Filesystem<br/>
*/<br/>
protected $files;</span></div>
<div> </div>
<div>This issue only occurs on Alpine Linux 3.8 with php 7.2.10:</div>
<div><span style="font-family:Courier New,Courier,monospace;">ct113-devwiki:/var/www/bookstack# php -v<br/>
PHP 7.2.10 (cli) (built: Oct 1 2018 20:12:12) ( NTS )<br/>
Copyright (c) 1997-2018 The PHP Group<br/>
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies<br/>
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies</span><br/>
</div>
<div>I assume some module or directive is missing.</div>
<div> </div>
<div>Can you please advice how to trouble shoot this issue?</div>
<div> </div>
<div>THX</div>
</div>
</div></div></body></html>