The error I receive when starting spark is
Constant FILTER_SANITIZE_STRING is deprecated
can anyone solve the problem?
You're using a PHP version that is too new for the codeigniter version you installed.
If you're using PHP 8.1 you need at least codeigniter 4.1.7
Solutions:
Option1: Downgrade PHP
Option2: Upgrade Codeigniter
Reference: https://codeigniter.com/user_guide/changelogs/v4.1.7.html
Related
I have a question:
I am running Opencart Version 3.0.3.2 on my Ubuntu 20.04 machine.
When I execute an action in the admin extension that sends out emails with PHPMailer (current version), I get the following error:
Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.
Does anybody know, how to solve this problem? Couldn't find any appropriate solution by google.
Thanks!
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'))
good day! Just a quick question about laravel since we are planning to use laravel on our new project, the problem is the client is using php 5.3.3 on their server. I know that laravel works on php 7 but the question is will it still work on php 5.3.3? Thank you in advance.
Looking at the oldest version available in the documentation located at https://laravel.com/docs/4.2/#server-requirements
It states
PHP >= 5.4
So I would say No.
This is due to found security risks in various versions of PHP so Laravel has a baseline for PHP.
If you can use Docker, you can use a PHP7 Docker container with the latest stable version of Laravel, and then you will not touch the PHP 5.3 version
I need to upgrade PHP from PHP 5.3 to 5.5. So I need to know while upgrading this, Do I also need to upgrade the PHP extensions like php.xml? Which depends on PHP 5.3.
thanks in advance.
Hi I would like to know if there is a way where I can downgrade my PHP version to 5.1.6 to using the current version of xammp?
I need this PHP version in one of my clients existing intranet application.
Thanks in advance!
In order to downgrade PHP in XAMPP it's probably easiest to downgrade XAMPP itself: see Xampp Sourcefourge Files