Clean install - file has malformed data error
Permalink
Hello
I'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'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
Thank you. I wondered if that might be the issue but I didn't know if 5.3.29 was lower or higher than 5.3.3!
I shall see if I can upgrade the php.
I shall see if I can upgrade the php.
actually - you have a very good point there. That said - you would see performance benefits from a more recent version of PHP.
FYI
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
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
On the topic of PHP version, the next major version release will require PHP 5.4.
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.
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.
lol - I did exactly the same. But only after I saw diddydotdash's comment about not knowing which was later I went and checked - doh!
Thanks kats515.
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!
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!
Hi diddydotdash,
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...
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...
Thanks for the idea MrKDilkington, but I already tried the files are the same.
For information, I have just tried with concrete5.7.4.2 and have received exactly the same result.
Most puzzling!
Most puzzling!
For information, the install fails for all versions that I have tried from 5.7.0 and above. It works for 5.6.3.3
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.
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.
Finally solved it.
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.
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.