bergie Posted January 2, 2016 Share Posted January 2, 2016 (edited) Hi, I just did a clean install of Prestashop 1.6.1.3 under Ubuntu 14.04 and PHP 7.0 (official release). When I try to customize my settings, I get the following errors on many screens: PHP Fatal error: Uncaught Error: Access to undeclared static property: Validate::$values in /var/www/prestashop/classes/controller/AdminController.php:1389 Sometimes the change seems to be saved, sometimes not. Is this a known issue? Is there a workaround for it? Thanks! ** EDIT ** - nevermind, just found the thread about this! Edited January 2, 2016 by bergie (see edit history) Link to comment Share on other sites More sharing options...
PhilCorleone Posted January 3, 2016 Share Posted January 3, 2016 Would you post the thread so others would benefit? Link to comment Share on other sites More sharing options...
bergie Posted January 3, 2016 Author Share Posted January 3, 2016 (edited) Sure! The issue is linked to PHP 7. Answer thread is here: https://www.prestashop.com/forums/topic/494419-can%C2%B4t-update-any-infomation-in-configurations/ Also, if you are comfortable doing some edits, I bypassed the issue by replacing Validate::$values['property'] with Validate::{$values['property']}. However, note that tihs is NOT a complete or official solution, and there are multiple occurrence in the AdminController for this change, and probably elsewhere in other controllers. This was good enough for me to progress, but this is an incomplete fix. As far as I understood, support for PHP 7 will land in Prestashop V1.7.0 planned for Q1 2016. Cheers! Edited January 3, 2016 by bergie (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now