Re: PHP Fatal error: Interface 'SessionHandlerInterface' not found in

[email protected] ("Stefan A.") Wed, 3 Oct 2018 06:25:24 +0200
Newsgroups php.install
Message-ID <CA+d_MemDZQWKveB1_y7PEKFRjsMDtvpSwJ-wWSsaaP-zzf+7TA@mail.gmail.com>
--0000000000000c0b3705774b6e5b
Content-Type: text/plain; charset="UTF-8"

Hi,

I think you need to install this package
https://pkgs.alpinelinux.org/package/edge/community/x86/php7-session

On Tue, Oct 2, 2018 at 10:58 PM <[email protected]> wrote:

> Hi,
> I want to install an app (Bookstack:
> https://github.com/BookStackApp/BookStack) that reports an error in step
> "php artisan migrate".
>
> The error message is:
> PHP Fatal error:  Interface 'SessionHandlerInterface' not found in
> /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php
> on line 10
>
>   [Symfony\Component\Debug\Exception\FatalErrorException]
>   Interface 'SessionHandlerInterface' not found
>
> The relevant coding in this php-file is:
> <?php
> namespace Illuminate\Session;
> use SessionHandlerInterface;
> use Illuminate\Support\Carbon;
> use Symfony\Component\Finder\Finder;
> use Illuminate\Filesystem\Filesystem;
> class FileSessionHandler implements SessionHandlerInterface
> {
>     /**
>      * The filesystem instance.
>      *
>      * @var \Illuminate\Filesystem\Filesystem
>      */
>     protected $files;
>
> This issue only occurs on Alpine Linux 3.8 with php 7.2.10:
> ct113-devwiki:/var/www/bookstack# php -v
> PHP 7.2.10 (cli) (built: Oct  1 2018 20:12:12) ( NTS )
> Copyright (c) 1997-2018 The PHP Group
> Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
>     with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend
> Technologies
>
> I assume some module or directive is missing.
>
> Can you please advice how to trouble shoot this issue?
>
> THX
>

--0000000000000c0b3705774b6e5b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi,<div><br></div><div>I think you need t=
o install this package=C2=A0<a href=3D"https://pkgs.alpinelinux.org/package=
/edge/community/x86/php7-session">https://pkgs.alpinelinux.org/package/edge=
/community/x86/php7-session</a></div></div></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr">On Tue, Oct 2, 2018 at 10:58 PM &lt;<a href=3D"mailto=
:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div><div style=3D"font-family:Verdana;font-size:12.0px"><div=
>Hi,</div>

<div>I want to install an app (Bookstack: <a href=3D"https://github.com/Boo=
kStackApp/BookStack" target=3D"_blank">https://github.com/BookStackApp/Book=
Stack</a>) that reports an error in step &quot;php artisan migrate&quot;.</=
div>

<div>=C2=A0</div>

<div>The error message is:</div>

<div>
<div><span style=3D"font-family:Courier New,Courier,monospace">PHP Fatal er=
ror: =C2=A0Interface &#39;SessionHandlerInterface&#39; not found in /var/ww=
w/bookstack/vendor/laravel/framework/src/Illuminate/Session/FileSessionHand=
ler.php on line 10</span></div>

<div><br>
<span style=3D"font-family:Courier New,Courier,monospace">=C2=A0 [Symfony\C=
omponent\Debug\Exception\FatalErrorException]<br>
=C2=A0 Interface &#39;SessionHandlerInterface&#39; not found</span><br>
=C2=A0</div>

<div>The relevant coding in this php-file is:</div>

<div>
<div><span style=3D"font-family:Courier New,Courier,monospace">&lt;?php</sp=
an></div>

<div><span style=3D"font-family:Courier New,Courier,monospace">namespace Il=
luminate\Session;</span></div>

<div><span style=3D"font-family:Courier New,Courier,monospace">use SessionH=
andlerInterface;<br>
use Illuminate\Support\Carbon;<br>
use Symfony\Component\Finder\Finder;<br>
use Illuminate\Filesystem\Filesystem;</span></div>

<div><span style=3D"font-family:Courier New,Courier,monospace">class FileSe=
ssionHandler implements SessionHandlerInterface<br>
{<br>
=C2=A0 =C2=A0 /**<br>
=C2=A0 =C2=A0 =C2=A0* The filesystem instance.<br>
=C2=A0 =C2=A0 =C2=A0*<br>
=C2=A0 =C2=A0 =C2=A0* @var \Illuminate\Filesystem\Filesystem<br>
=C2=A0 =C2=A0 =C2=A0*/<br>
=C2=A0 =C2=A0 protected $files;</span></div>

<div>=C2=A0</div>

<div>This issue only occurs on Alpine Linux 3.8 with php 7.2.10:</div>

<div><span style=3D"font-family:Courier New,Courier,monospace">ct113-devwik=
i:/var/www/bookstack# php -v<br>
PHP 7.2.10 (cli) (built: Oct =C2=A01 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>
=C2=A0 =C2=A0 with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend T=
echnologies</span><br>
=C2=A0</div>

<div>I assume some module or directive is missing.</div>

<div>=C2=A0</div>

<div>Can you please advice how to trouble shoot this issue?</div>

<div>=C2=A0</div>

<div>THX</div>
</div>
</div></div></div>
</blockquote></div>

--0000000000000c0b3705774b6e5b--