Hi,
first of all thank you for baikal, i used it since 2 years on a raspberrypi without trouble.
I updated now to raspian stretch which provides php7.
Is it possible to use Baikal with php7?
Thank you again!
Kind regards
rawbit
I'm using Baikal with PHP7 for quite some time now and had no issues.
+1
I've been using Baikal on PHP7 for about a year now with no issues :)
Unfortunatly the admin part does not seems to work under at least PHP 7.2.1, it fails with the following backtrace:
ErrorException: The each() function is deprecated. This message will be suppressed on further calls in [...]/baikal/Core/Frameworks/Flake/Core/Render/Container.php:62
Stack trace:
#0 [internal function]: Baikal\Framework::exception_error_handler(8192, 'The each() func...', '[...]/baika...', 62, Array)
#1 [...]/baikal/Core/Frameworks/Flake/Core/Render/Container.php(62): each(Array)
#2 [...]/baikal/Core/Frameworks/Flake/Controller/Page.php(83): Flake\Core\Render\Container->execute()
#3 [...]/baikal/html/admin/index.php(92): Flake\Controller\Page->render()
#4 {main}
It works fine, however, with PHP 7.0.25.
There's actually a pull request that would fix this issue: https://github.com/sabre-io/Baikal/pull/717
Unfortunately that pull request hasn't been merged yet.
Oh yes, it works great. Thank you!
@yahesh & @nlegaillart it has just been merged!
@Rawbit does it work now? (if yes, this issue might be worth closing)
@nlegaillart
How do you apply this patch ?
Thanks
@tchek you have to use the master branch (https://stackoverflow.com/questions/19916183/how-do-i-get-composer-to-download-the-latest-commit-in-the-master-branch-from-gi)
@oliverpool
Thanks !
But i'm really do not know how to do that ? I am pretty newbie if you see ...
Is there a link to Download a complete Baikal folder working with PHP 7 ?
Woo thanks a lot oliverpool !
I let you know if it work :-)
How do i know in the future when this master will be update ?
@ oliverpool
Thanks for your help.
I decide to downgrade the Baikal directory in my server to PHP 5.6 because i get issue with Baikal_Master version 5 on PHP 7.2 and i have not enought time to get some solutions and give some help here to resolve that !
Thanks anyway and i hope stable version 5 will be release soon before PHP 8, because it is a nice peace of soft 馃憤 :-)
Thanks but for me it is not an issue with admin page with the 5 master...
@oliverpool Thanks, this works for me with PHP 7.2 (FPM) on Ubuntu with nginx. Also had to run composer install
php7.2 support should be fixed in the new 0.5.2 release. Feel free to re-open the issue if you can still reproduce the problem on 0.5.2.