2017-03-18 193 views
0

當我安裝擴展時,它給出了以下錯誤。擴展安裝錯誤 - opencart2

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK


Warning: POST Content-Length of 12255610 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
{"error":"File could not be uploaded!"}

請幫我解決這個錯誤。謝謝你提前。

+0

增加你的[post_max_size](http://php.net/manual/en/ini.core.php#ini.post-max-size)大於8MB,實際上12255610可能會換成12 MB,所以你可以做到20或18。 – hassan

回答

0

我提出以下在php.ini文件的變化

1.max_input_time = 120

2.memory_limit = 256M

3.post_max_size = 64M

4.upload_max_filesize = 64M

保存這些更改後請啓動Apache。

我的錯誤現在已修復。謝謝。