creation-handicap Posted February 10, 2021 Share Posted February 10, 2021 (edited) Hello! We are lately experiencing a Problem, that we can't save products anymore on the Backend of Prestashop 1.7.2.2. When opening a product there is the following error appearing in the console: Uncaught json: E_INVALID_PAR_TYPE: {"expected":"Plain Object","name":"json","value":"{\r\n \"main\": {\r\n \"de-DE\": {\r\n \"identity\": {\r\n \"version\": {\r\n \"_cldrVersion\": \"26\",\r\n \"_number\": \"$Revision: 10669 $\"\r\n },\r\n \"generation\": {\r\n \"_date\": \"$Date: 2014-07-23 16:10:33 -0500 (Wed, 23 Jul 2014) $\"\r\n },\r\n \"language\": \"de\",\r\n \"territory\": \"DE\"\r\n },\r\n \"numbers\": {\r\n \"defaultNumberingSystem\": \"latn\",\r\n \"otherNumberingSystems\": {\r\n \"native\": \"latn\"\r\n },\r\n \"minimumGroupingDigits\": \"1\",\r\n \"symbols-numberSystem-latn\": {\r\n \"decimal\": \",\",\r\n \"group\": \".\",\r\n \"list\": \";\",\r\n \"percentSign\": \"%\",\r\n \"plusSign\": \"+\",\r\n \"minusSign\": \"-\",\r\n \"exponential\": \"E\",\r\n \"superscriptingExponent\": \"·\",\r\n \"perMille\": \"‰\",\r\n \"infinity\": \"∞\",\r\n \"nan\": \"NaN\",\r\n \"timeSeparator\": \":\"\r\n },\r\n \"decimalFormats-numberSystem-latn\": {\r\n \"standard\": \"#,##0.###\",\r\n \"long\": {\r\n \"decimalFormat\": {\r\n \"1000-count-one\": \"0 Tausend\",\r\n \"1000-count-other\": \"0 Tausend\",\r\n \"10000-count-one\": \"00 Tausend\",\r\n \"10000-count-other\": \"00 Tausend\",\r\n \"100000-count-one\": \"000 Tausend\",\r\n \"100000-count-other\": \"000 Tausend\",\r\n \"1000000-count-one\": \"0 Million\",\r\n \"1000000-count-other\": \"0 Millionen\",\r\n \"10000000-count-one\": \"00 Millionen\",\r\n \"10000000-count-other\": \"00 Millionen\",\r\n \"100000000-count-one\": \"000 Millionen\",\r\n \"100000000-count-other\": \"000 Millionen\",\r\n \"1000000000-count-one\": \"0 Milliarde\",\r\n \"1000000000-count-other\": \"0 Milliarden\",\r\n \"10000000000-count-one\": \"00 Milliarden\",\r\n \"10000000000-count-other\": \"00 Milliarden\",\r\n \"100000000000-count-one\": \"000 Milliarden\",\r\n \"100000000000-count-other\": \"000 Milliarden\",\r\n \"1000000000000-count-one\": \"0 Billion\",\r\n \"1000000000000-count-other\": \"0 Billionen\",\r\n \"10000000000000-count-one\": \"00 Billionen\",\r\n \"10000000000000-count-other\": \"00 Billionen\",\r\n \"100000000000000-count-one\": \"000 Billionen\",\r\n \"100000000000000-count-other\": \"000 Billionen\"\r\n }\r\n },\r\n \"short\": {\r\n \"decimalFormat\": {\r\n \"1000-count-one\": \"0 Tsd'.'\",\r\n \"1000-count-other\": \"0 Tsd'.'\",\r\n \"10000-count-one\": \"00 Tsd'.'\",\r\n \"10000-count-other\": \"00 Tsd'.'\",\r\n \"100000-count-one\": \"000 Tsd'.'\",\r\n \"100000-count-other\": \"000 Tsd'.'\",\r\n \"1000000-count-one\": \"0 Mio\",\r\n \"1000000-count-other\": \"0 Mio\",\r\n \"10000000-count-one\": \"00 Mio\",\r\n \"10000000-count-other\": \"00 Mio\",\r\n \"100000000-count-one\": \"000 Mio\",\r\n \"100000000-count-other\": \"000 Mio\",\r\n \"1000000000-count-one\": \"0 Mrd\",\r\n \"1000000000-count-other\": \"0 Mrd\",\r\n \"10000000000-count-one\": \"00 Mrd\",\r\n \"10000000000-count-other\": \"00 Mrd\",\r\n \"100000000000-count-one\": \"000 Mrd\",\r\n \"100000000000-count-other\": \"000 Mrd\",\r\n \"1000000000000-count-one\": \"0 Bio'.'\",\r\n \"1000000000000-count-other\": \"0 Bio'.'\",\r\n \"10000000000000-count-one\": \"00 Bio'.'\",\r\n \"10000000000000-count-other\": \"00 Bio'.'\",\r\n \"100000000000000-count-one\": \"000 Bio'.'\",\r\n \"100000000000000-count-other\": \"000 Bio'.'\"\r\n }\r\n }\r\n },\r\n \"scientificFormats-numberSystem-latn\": {\r\n \"standard\": \"#E0\"\r\n },\r\n \"percentFormats-numberSystem-latn\": {\r\n \"standard\": \"#,##0 %\"\r\n },\r\n \"currencyFormats-numberSystem-latn\": {\r\n \"currencySpacing\": {\r\n \"beforeCurrency\": {\r\n \"currencyMatch\": \"[:^S:]\",\r\n \"surroundingMatch\": \"[:digit:]\",\r\n \"insertBetween\": \" \"\r\n },\r\n \"afterCurrency\": {\r\n \"currencyMatch\": \"[:^S:]\",\r\n \"surroundingMatch\": \"[:digit:]\",\r\n \"insertBetween\": \" \"\r\n }\r\n },\r\n \"accounting\": \"#,##0.00 ¤\",\r\n \"standard\": \"#,##0.00 ¤\",\r\n \"unitPattern-count-one\": \"{0} {1}\",\r\n \"unitPattern-count-other\": \"{0} {1}\"\r\n },\r\n \"miscPatterns-numberSystem-latn\": {\r\n \"atLeast\": \"{0}+\",\r\n \"range\": \"{0}–{1}\"\r\n }\r\n }\r\n }\r\n }\r\n}\r\n"} It's appearing in admin/public/bundle.js:1 Help would be very appreaciated! EDIT: By the way, I got this PHP error: (70007)The timeout specified has expired: Error reading request entity data Could that be the PHP-Version? Edited February 11, 2021 by creation-handicap (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted February 16, 2021 Share Posted February 16, 2021 Change PHP version. The Best way to ask hosting support to check it out. Link to comment Share on other sites More sharing options...
musicmaster Posted February 17, 2021 Share Posted February 17, 2021 On 2/10/2021 at 12:29 PM, creation-handicap said: Could that be the PHP-Version? Hard to say when you don't tell which PHP version you are using. Link to comment Share on other sites More sharing options...
Murelh Ntyandi Posted February 18, 2021 Share Posted February 18, 2021 (edited) Hi, I have the same problems. It extends to product creation and editing. JS errors are quite different, but similar enough to join the thread. Uncaught TypeError: formZoneElem.magnificPopup is not a function ..... form.js?1.7.7.1:1440 Uncaught TypeError: $(...).tokenfield is not a function ..... form.js?1.7.7.1:902 Clicking on save give me this : Uncaught TypeError: Cannot read property 'onSave' of undefined Prestahop was working fine for a couple of days but this morning i got these errors. It is like if the expected JS files were not loaded. I did not edit any files from the BO. And just added a CSS file in a child theme. Here my config for those who will ask Server info : Apache / Linux #1 SMP PREEMPT Tue Jun 18 14:26:04 CEST 2019 x86_64 PHP : 7.2.30 Memory limit : 256M Max time d'execution : 180 Upload max size : 128M I tried to clear the cache but it changed nothing. I also disabled ad blocker. I tried to use Prestahop with Brave (chromium like) and Edge. This part of the BO is cashing for both. Did someone found a solution to this ? Thanks for your help Edited February 18, 2021 by Murelh Ntyandi To give more informations (see edit history) Link to comment Share on other sites More sharing options...
Murelh Ntyandi Posted February 19, 2021 Share Posted February 19, 2021 @creation-handicap, I just got it figured out by Prestashop Devs. My issues was coming from Visual composer. Maybe you use it too. Or some other module is at fault. Try to deactivate them and reactivate them one by one to find the source of your problem. Link to comment Share on other sites More sharing options...
creation-handicap Posted March 16, 2021 Author Share Posted March 16, 2021 I updated the PHP Version now from PHP 7.0 to 7.1, but the error remains. I tried to set PHP Version to 7.2, but then the backend of the shop won't work. Any help would be appreciated! Link to comment Share on other sites More sharing options...
Murelh Ntyandi Posted March 16, 2021 Share Posted March 16, 2021 17 minutes ago, creation-handicap said: I updated the PHP Version now from PHP 7.0 to 7.1, but the error remains. I tried to set PHP Version to 7.2, but then the backend of the shop won't work. Any help would be appreciated! What is the last version of PHP where it worked ? Does it work with PHP 7.2 et all module disabled ? Link to comment Share on other sites More sharing options...
musicmaster Posted March 16, 2021 Share Posted March 16, 2021 (edited) 6 hours ago, creation-handicap said: I updated the PHP Version now from PHP 7.0 to 7.1, but the error remains. I tried to set PHP Version to 7.2, but then the backend of the shop won't work. Any help would be appreciated! PS 1.7.7 is not compatible with PHP 7.0 So you better stick with 7.1. Did you enable debug mode? Did you check for PHP errors in the server's error log? Are you using any special modules? They might be the problem. You might try using Prestools to disable non-Prestashop modules and overrides. Edited March 16, 2021 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
creation-handicap Posted March 22, 2021 Author Share Posted March 22, 2021 It magically worked again! 😅 Very strange! I changed nothing and from one day to the other it was doing fine… PHP Version is now at 7.1. 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