Upgraded my PHP on server from 5.6 to 7.2 and now my website made on Kohana gives an error:
Declaration of Auth_Xenforo::logged_in() should be compatible with Kohana_Auth::logged_in($role = NULL)
Kohana is not PHP 7 ready. Please consider using it's PHP7 replacement (which will work as dropin, with small changes) koseven:
https://github.com/koseven/koseven
Related
I formatted the computer, then I started Codeigniter 3, but it gave such an error, can you help?
I installed xampp but it doesn't work.
Dynamic properties are deprecated in PHP 8.2 and will be removed in PHP 9.
https://medium.com/geekculture/php-what-are-dynamic-properties-2509c6fbccf8
Either upgrade to Code Igniter 4 or downgrade your version of PHP.
I am working on the application which is built on the laravel 5.4 framework. I have installed the latest version of PHP. which is
PHP Version 7.4.5
Actually I would like to know does PHP 7.4.5 supports laravel 5.4 app if no then why? and how can I downgrade the PHP version?
Also I am getting the error in php logs files ( [2020-05-15 12:37:08] local.ERROR:
ErrorException: Trying to access array offset on value of type null in
C:\xampp\htdocs\carehalo_mini\app\Helpers.php:392 )
Also, you can check out the code in the given screenshot Helpers.php:392 lines
app\Helpers.php this sounds like something part of the app you have and not related to Laravel. My best guess is that Laravel won't have any problems running on 7.4, but the same does not apply for the code written in the app. And of course, best thing to do would be to upgrade your Laravel version to at least 6 regardless of working or not.
You can fix your Error by changing line 392 to:
if(empty($admin) || ($admin->token != Session::get('token'))
I recently migrated an old SilverStripe 2.3 website from an old Apache 2.0 server to a fresh nginx with PHP 5.4.
Although I managed to resolve most of the problems and I have access to the admin/assets folder, I am still unable to access the important page of admin, the site-manager and the dashboard. When I try to go to the site-manager or the dashboard page I get a blank-white screen with no errors.
Can anyone advise why this is happening?
Nginx logs
FastCGI sent in stderr: "PHP message: PHP Strict Standards: Declaration of Controller::handleRequest() should be compatible with RequestHandler::handleRequest($request) in /var/www/mydomain/sapphire/core/control/Controller.php
call_user_func() expects parameter 1 to be a valid callback, non-static method Hierarchy::extraStatics() should not be called statically in /var/www/mydomain/sapphire/core/model/DataObjectDecorator.php
SilverStripe 2.3 will not work on PHP 5.4.
SilverStripe 2.3 was developed on PHP 5.2. The sapphire core uses many bits of PHP 5.2 code that were deprecated or removed in PHP 5.3 and PHP 5.4.
You will either need to upgrade your SilverStripe version, or move the website to a web server that supports an older version of PHP.
A few notes.
Silverstripe 2.3 was released 2009-02-23.
The last update for 2.3 (2.3.13) was released 2012-02-01.
2.3 is no longer supported.
Silverstripe 2.4 was released 2010-05-05.
The last update for 2.4 (2.4.10) was released 2013-02-19.
2.4 will no longer be supported after 2015-03-31.
As of writing the latest version of SilverStripe is 3.1.8. I would recommend upgrading to the latest version of SilverStripe. It might be difficult depending on the amount of custom code and modules in your site.
As for one of your specific errors:
FastCGI sent in stderr: "PHP message: PHP Strict Standards: Declaration of Controller::handleRequest() should be compatible with RequestHandler::handleRequest($request) in /var/www/mydomain/sapphire/core/control/Controller.php
As the error says, the Controller function handleRequest() should have the same amount of parameters as the RequestHandler function handleRequest($request). Try changing the Controller function declaration to handleRequest($request).
This may cause more errors, or you may have many more errors like this to fix. This is why I suggest upgrading instead of trying to edit the sapphire code with fixes.
Is the latest Symfony version (1.14.18) supposed to run properly with PHP 5.4?
I've just upgraded to PHP 5.4 locally and multiple sites that have previously worked fine are now throwing the following error when trying to load any page:
Fatal error: Call to undefined method sfCoreAutoload::register() in C:\dev\projects\my_site\config\ProjectConfiguration.class.php on line 4
The path to the sfCoreAutoload class is fine but for some reason it treats it as if it didn't exist at all.
I managed to resolve the issue so will just answer here for the benefit of anyone else facing the same. The culprit was APC. The latest "stable" version of the pre-compiled APC (3.1.9) didn't work with Symfony 1.4.18 + PHP 5.4.4, but using the APC beta (3.1.12) does work.
I am using a joomla templet with XAMPP 1.7.2 which has PHP 5.3.0 in mac os x 10.5.7
i am having lots of trouble like
Deprecated: Function eregi() is deprecated in /Applications/XAMPP/xamppfiles/htdocs/templet01/plugins/system/tbox.php on line 98
Joomla itself is not functioning properly.
Please help.
-Daniel
Is there a release of Joomla that is ready for php 5.3? If so switch to that. Or downgrade XAMPP to a version with php 5.2.X. Or not using XAMPP at all and instead using macports (note if you want php 5.2 youll have to grab the old port file and host a local repo - its not as hard as it sounds - i do it on my machine) or compile the source yourself in /usr/local or /opt.
However it may also be that simply truning off display_errors in your php.ini will fix the issue - or changing the error level.
Joomla 1.5.15 and up is compatible with php 5.3.
However the OpenID authentication module is not yet compatible.