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

diddydotdash
 
WebcentricLtd replied on at Permalink Reply
Hi, are you able to upgrade PHP version? The minimum requirement for this version is 5.3.3.
You might be able to get around this issue but there are no guarantees you won't hit another.
diddydotdash replied on at Permalink Reply
diddydotdash
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.
WebcentricLtd replied on at Permalink Reply
actually - you have a very good point there. That said - you would see performance benefits from a more recent version of PHP.
katz515 replied on at Permalink Reply
katz515
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
MrKDilkington replied on at Permalink Reply
MrKDilkington
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.
WebcentricLtd replied on at Permalink Reply
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!
diddydotdash replied on at Permalink Reply
diddydotdash
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!
MrKDilkington replied on at Permalink Reply
MrKDilkington
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...
diddydotdash replied on at Permalink Reply
diddydotdash
Thanks for the idea MrKDilkington, but I already tried the files are the same.
diddydotdash replied on at Permalink Reply
diddydotdash
For information, I have just tried with concrete5.7.4.2 and have received exactly the same result.

Most puzzling!
diddydotdash replied on at Permalink Reply
diddydotdash
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.
diddydotdash replied on at Permalink Reply
diddydotdash
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.