Clean install - file has malformed data error
PermalinkI'm trying to do a clean install of C5 version 5.7.5.1 and I am getting the error "The file 'data/parentLocales.json' contains malformed data"
What I have done ...
I have uploaded the zip file to a clean user space
I have unzipped the zip file and moved the files out of the concrete5 directory and into the webroot directory
I have set the permission to 777 for the 4 folders and their contents (I started by setting the owner to Apache, but have widened the permissions in case lack of permissions was causing the problem)
I am running PHP version 5.3.29
This error has appeared straight away as soon as I go to the site url - I haven't even been able to begin the install process.
You can see it herehttp://www.transformdeco.com
I have tried replacing the mentioned file with another downloaded from a different source (both files had the same size) with no improvement.
Can someone help please?
Thanks
I shall see if I can upgrade the php.
http://php.net/releases/
PHP 5.3.3 was released on 22 July 2010
PHP 5.3.29 was released on 14 Aug 2014
PHP 5.3.29 is definitely meets the requirement.
However, 5.7.5.1 is facing some installation problem on PHP 5.3.x.
Your problem could be related to this problem.
This should be solved by concrete5.7.5.2.
In meantime, you may want to wait or use concrete5.7.4.2 instead
https://github.com/concrete5/concrete5/issues/2939#issuecomment-1342...
@AndyJ
I had the same reaction when I saw 5.3.29, thinking it was lower than 5.3.3. I had to check the release schedule to see that it wasn't.
Yes, I had come to the conclusion to try an older release but I couldn't find a link on the site. Could you point me in the right direction?
OOps - never mind - I've found it. It was there all the time!
The exception is being thrown by the Punic library.
You could try comparing the version of parentLocales.json on your server with the version in the Punic library. If they are different, you could replace it with the library version.
https://github.com/mlocati/punic/blob/master/code/data/parentLocales...
Most puzzling!
I don't know what the problem is.
There must be some sort of incompatibility with the setup of my server, but there are no errors in the log or anything else to give a clue what is going on.
I guess I'll just install 5.6.3.3 and live with that.
This problem was caused by magic quotes not being properly turned off.
Once they are turned off everything works fine.
Thanks for your input everyone.
D.
You might be able to get around this issue but there are no guarantees you won't hit another.