Knowledge Base


Knowledge Base / XFilesharing Pro / Troubleshooting

Malformed JSON string at Plugins/Captcha/recaptcha.pm
09/27/2016 11:53 AM

Question

When I open my login page, I'm getting the following error:

Software error:
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before \"LWP will support htt...\") at Plugins/Captcha/recaptcha.pm line 27
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.

Answer

This means that you don't have the Perl module named 'LWP::Protocol::http' installed, and the script is not able to make HTTPS requests because of that. If you're using CentOS, you can install it by simply typing 'yum install perl-Crypt-SSLeay' from root SSH console. If you're not using CentOS, or this method isn't applicable for some reasons, please refer to your OS manual or contact your hoster's support in order for that to be resolved.

By the way, 'LWP::Protocol::http' is listed as a mandatory dependency in INSTALL.txt which comes with XFileSharingPro distribution. We're highly suggesting you to open this file in your text editor and make sure that you have the rest of dependency modules installed, as otherwise you will get more problems with the script.