Invalid JSON string: Moodle 2.1+ (Build: 20110719)

Invalid JSON string: Moodle 2.1+ (Build: 20110719)

by ces moce -
Number of replies: 4

Hello

 

I really need help for this, everytime i try to upload a big file on the file picker (about 49meg), i have this error message:

ERROR: Chaîne JSON non valide

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
 [no address given] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.

It doen't give me any clue and nothing on php log either...

 

I have looked on the forum and looks like i m not the only one, so i opened a Moodle Tracker but it has been immediately closed.

Here another exemple:http://moodle.org/mod/forum/discuss.php?d=153322#p796850

I need advise now on how to deal with that....

I enclosed my php info

Average of ratings: -
In reply to ces moce

Re: Invalid JSON string: Moodle 2.1+ (Build: 20110719)

by Derek Chirnside -

JSON errors are seemingly very elusive.

I can get them even with small files (<20kB) with 2.1.1
In many cases I click around a bit and they go away.

But your problem could be one of the settings to set max file uploads etc like PHP.ini.  Google this on the forums, check the setting in these files and in the admin setup inside the Moodle site.

-Derek

In reply to Derek Chirnside

Re: Invalid JSON string: Moodle 2.1+ (Build: 20110719)

by ces moce -
every thing has been checked by my website hosting company. still stuck there no clue of a solution. do i need to go back to moodle 1.9?
In reply to ces moce

Re: Invalid JSON string: Moodle 2.1+ (Build: 20110719)

by Scott Elliott -

Ces Moce,

I found that switching from fcgi to suphp eliminated the problem for me.  Not quite sure why or if this is a possible solution for you!

Hope this helps!

Scott

In reply to ces moce

Re: Invalid JSON string: Moodle 2.1+ (Build: 20110719)

by Carlos Sanchez -

While not the exact same error, I would get an Invalid JSON string while adding files from my File System Repository.

I figured out the error was the file path was too long. I shortened the name on some of the folders on the physical repository and it uploaded just fine.