CodeIgniter 3.1.13 Upgrade Issues? |
After upgrading to CodeIgniter 3.1.13, I encountered some issues:
The set_flashdata function is no longer working correctly for adding items to the cart after some time. I have to re-login to the admin panel for it to function properly. These problems seem to be related to session or cookie handling. My PHP version is 7.1.33. Could you please assist me in resolving these issues? Thank you.
Your PHP is too old and risky. It is better to upgrade to at least PHP 8.0 after debugging of the issue.
https://www.php.net/supported-versions.php But Ci3 does not support PHP 8.2 yet.
It seems it relates session cookie and its "SameSite attribute".
here are some suggestions on how to resolve the issues you are experiencing with CodeIgniter 3.1.13:
Set_flashdata function not working correctly for adding items to the cart This issue could be caused by a number of factors, such as a problem with the way your sessions are being handled, a problem with the way your cookies are being set, or a problem with the way your cart data is being stored. Here are some things you can check: Make sure that you are setting the session.save_path directive in your PHP configuration file to a writable directory. Make sure that your sessions are expiring after a reasonable amount of time. You can do this by setting the session.gc_maxlifetime directive in your PHP configuration file. Make sure that your cookies are being set correctly. You can do this by checking the cookie_domain and cookie_path directives in your PHP configuration file. Make sure that your cart data is being stored correctly. You can do this by checking the cart.storage setting in your CodeIgniter configuration file. If you are still having problems, you can try using a different session driver, such as the Redis driver. Having to re-login to the admin panel for it to function properly This issue could be caused by a problem with the way your sessions are being handled or a problem with the way your cookies are being set. Here are some things you can check: Make sure that you are setting the session.save_path directive in your PHP configuration file to a writable directory. Make sure that your sessions are expiring after a reasonable amount of time. You can do this by setting the session.gc_maxlifetime directive in your PHP configuration file. Make sure that your cookies are being set correctly. You can do this by checking the cookie_domain and cookie_path directives in your PHP configuration file. If you are still having problems, you can try using a different session driver, such as the Redis driver. Problems seem to be related to session or cookie handling Based on the two issues you are experiencing, it is likely that the problems are related to session or cookie handling. Here are some general things you can check: Make sure that you are setting the session.save_path directive in your PHP configuration file to a writable directory. Make sure that your sessions are expiring after a reasonable amount of time. You can do this by setting the session.gc_maxlifetime directive in your PHP configuration file. Make sure that your cookies are being set correctly. You can do this by checking the cookie_domain and cookie_path directives in your PHP configuration file. Try using a different session driver, such as the Redis driver. If you are still having problems, you can post a question on the CodeIgniter forum or contact the CodeIgniter development team for assistance. I hope this helps!
We strongly encourage the community to upgrade to CodeIgniter 4, and to get involved in the CodeIgniter 4 development, to ensure the best possible framework for us all!
(11-06-2023, 07:22 PM)kenjis Wrote: We strongly encourage the community to upgrade to CodeIgniter 4, and to get involved in the CodeIgniter 4 development, to ensure the best possible framework for us all! we have some projects on CI3, it is not possible (for now) to upgrade to ver. 4. codeigniter 3, will not have any new version?
ressan.ir
CI is nice
No official announcement has been made.
But we should no longer expect a PHP 8.2-compatible CI3 version to be released. |
Welcome Guest, Not a member yet? Register Sign In |