Page 1 of 1

Syntax Error installing extension

Posted: Sun Jan 28, 2018 8:03 am
by wenmar
If i try to install a extention from the marketplace, it trows me a popup screen with an error.
SyntaxError: Unexpected token < in JSON at position 0

OK
Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in .... marketpplace.php on line 859 {"extension_install_id";2,"text":"installing","next":"....index.php?route=marketplace\/install\/install&user_token=ZKJJjsjhjkhdkHKJHJKHKJHJKH&extension_install_id=2"}

I Use OpenCart 3.0.2.0

Re: Syntax Error installing extension

Posted: Mon Apr 09, 2018 9:20 pm
by synapseindia
Set safe_mode = Off in your php.ini file (it's usually in /etc/ on the server). If that's already off, then look around for the open_basedir stuff in the php.ini file, and change it accordingly.

Basically, the follow location option has been disabled as a security measure, but PHP's built-in security features are usually more annoying than secure. In fact, safe_mode is deprecated in PHP 5.3.