MathiasReker Posted January 18, 2017 Share Posted January 18, 2017 (edited) PHP version 7.1.0 PrestaShop version 1.6.1.11 I just upgraded PS til 1.6.1.11 from 1.6.1.7. and PHP to 7.1.0 from 7.0.x Dashboard does not update, it just keep spinning. Please see screenshot. screenshot: oi63.tinypic.com/2n9yqyo.jpg My dashboard.js is equal to this: https://github.com/PrestaShop/PrestaShop/blob/develop/js/admin/dashboard.js I did try to clear cache. Error: TypeError: window[data_type] is not a function How do I solve this? EDIT: I tried to roll PHP version back to 7.0. Now it is working agian. But anyway to solve this in PHP 7.1? Edited January 18, 2017 by shinetech.dk (see edit history) Link to comment Share on other sites More sharing options...
Norwegian Rat Posted January 18, 2017 Share Posted January 18, 2017 I can confirm the exact same behaviour. Updatetd from 1.6.1.10 to 1.6.1.11. Dashboard did not have the spinning icons with PHP7.0. Changed to PHP7.1 and the spinning started. Link to comment Share on other sites More sharing options...
DannetStudio Posted January 24, 2017 Share Posted January 24, 2017 (edited) Same problem after upgrading to php 7.1 with PS 1.6.1.11. Uncaught TypeError: window[data_type] is not a function at Object.success (dashboard.js:52) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at x (jquery-1.11.0.min.js:4) at XMLHttpRequest.b (jquery-1.11.0.min.js:4)I've also noted in php error_log a lot of:Illegal string offset in > /classes/Hook.php on line 554 Edited January 24, 2017 by DannetStudio (see edit history) Link to comment Share on other sites More sharing options...
huyntt Posted February 12, 2017 Share Posted February 12, 2017 DannetStudio is right. I changed PHP back from 7.1.1 to 7.0.15 or 5.6.29. The issue gone. Please schedule a fix. Link to comment Share on other sites More sharing options...
bellini13 Posted February 12, 2017 Share Posted February 12, 2017 DannetStudio is right. I changed PHP back from 7.1.1 to 7.0.15 or 5.6.29. The issue gone. Please schedule a fix. report the issue to their forge if you expect something to be fixed Link to comment Share on other sites More sharing options...
Norwegian Rat Posted February 13, 2017 Share Posted February 13, 2017 This will fix the issue: https://github.com/PrestaShop/PrestaShop/pull/7392 Link to comment Share on other sites More sharing options...
DannetStudio Posted February 13, 2017 Share Posted February 13, 2017 This will fix the issue: https://github.com/PrestaShop/PrestaShop/pull/7392 Thank you! It fix the issue with dashboard with PHP 7.1 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