SyntaxError: JSON.parse: unexpected character
OK
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/var/sites/k/khaleejiabaya.com/public_html/admin/controller/extension/installer.php</b> on line <b>333</b><b>Warning</b>: ftp_mkdir(): Can't create directory: File exists in <b>/var/sites/k/khaleejiabaya.com/public_html/admin/controller/extension/installer.php</b> on line <b>338</b><b>Warning</b>: Invalid argument supplied for foreach() in <b>/var/sites/k/khaleejiabaya.com/public_html/admin/controller/extension/installer.php</b> on line <b>333</b><b>Warning</b>: ftp_mkdir(): Can't create directory: File exists in <b>/var/sites/k/khaleejiabaya.com/public_html/admin/controller/extension/installer.php</b> on line <b>338</b>{"error":"Could not change to directory vendors"}

I have looked at my config file and I think the path at the front seems incorrect? Here it is:

unlink(/var/sites/k/khaleejiabaya.com/public_html/system/cache/cache.zone.223.1456928503): No such file or directory in /var/sites/k/khaleejiabaya.com/public_html/system/library/cache/file.php on line 17
PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/sites/k/khaleejiabaya.com/public_html/index.php:105) in /var/sites/k/khaleejiabaya.com/public_html/system/library/session.php on line 12
PHP Warning: Cannot modify header information - headers already sent by (output started at /var/sites/k/khaleejiabaya.com/public_html/index.php:105) in /var/sites/k/khaleejiabaya.com/public_html/catalog/controller/common/seo_pro.php on line 78
fopen(/var/sites/k/khaleejiabaya.com/public_html/system/cache/cache.product.seopath.1456940064): failed to open stream: No such file or directory in /var/sites/k/khaleejiabaya.com/public_html/system/library/cache/file.php on line 28
PHP Warning: filesize(): stat failed for /var/sites/k/khaleejiabaya.com/public_html/system/cache/cache.product.seopath.1456940064 in /var/sites/k/khaleejiabaya.com/public_html/system/library/cache/file.php on line 32

I never have this path in front of the /public_html dir before migrating to new server. Is this the issue? I don't really want to try to change anything myself because I don't know what I'm doing.

I would really appreciate it if anyone can help get things working properly again. I can provide ftp details and admin access on request.

Thanks for getting back to me. I have downgraded my PHP version to a lower version. But I am still unable to install extensions through the Extension Installer. Halfway through the transfer, the installer just stops working and I still get these two errors in my log:

PHP Warning: Invalid argument supplied for foreach() in /var/sites/k/khaleejiabaya.com/public_html/admin/controller/extension/installer.php on line 333[/quote]
What can you see in /admin/controller/extension/installer.php line 333?

PHP Notice: Use of undefined constant CURLOPT_POSTREDIR - assumed 'CURLOPT_POSTREDIR' in /var/sites/k/khaleejiabaya.com/public_html/system/modification/admin/controller/sale/order.php on line 1505
2016-03-04 10:58:43 - PHP Warning: curl_setopt() expects parameter 2 to be long, string given in /var/sites/k/khaleejiabaya.com/public_html/system/modification/admin/controller/sale/order.php on line 1505