For some reason when clicking on the image edit icon to upload an image, nothing happens. So I checked the error log and the following message was listed:
----------------------
2019-02-15 5:49:45 - PHP Warning: unlink(/home/shantavia07/public_html/littlegoldmines.com/system/storagekrjxmzamvdhk/cache/cache.catalog.language.1550211628): No such file or directory in /home/shantavia07/public_html/littlegoldmines.com/system/library/cache/file.php on line 68
----------------------
Can someone please assist in fixing this error. Up until recently there were any problems uploading images.
- Best Regards
----------------------
2019-02-15 5:49:45 - PHP Warning: unlink(/home/shantavia07/public_html/littlegoldmines.com/system/storagekrjxmzamvdhk/cache/cache.catalog.language.1550211628): No such file or directory in /home/shantavia07/public_html/littlegoldmines.com/system/library/cache/file.php on line 68
----------------------
Can someone please assist in fixing this error. Up until recently there were any problems uploading images.
- Best Regards
That warning is due to a cache race condition, where one process removed the old cache file before another and usually nothing to worry about. It probably won't have anything to do with your image upload issue.
You may find more information on the issue by looking at your web browser's error console (usually F12).
You may find more information on the issue by looking at your web browser's error console (usually F12).
I would suggest some sort of JavaScript error. You may find more information on the issue by looking at your web browser's error console (usually F12).
What version of OpenCart are you using?
What version of OpenCart are you using?
It seem this issue still hasn't been fixed.
In your catalog/model/localisation/language.php file,
replace:
with:
This should resolved the issue.
In your catalog/model/localisation/language.php file,
replace:
Code: Select all
$language_data = $this->cache->get('language');
Code: Select all
$language_data = $this->cache->get('catalog.language');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Did you cleared the OC cache as well after making the modifications? FAQ: viewtopic.php?f=176&p=739789#p718325The file was just updated as suggested and the image edit/upload feature still isn't working.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The cache issue will have nothing to do with the image upload issue. Again, have you checked your web browser's error console for any messages (usually F12)?
My bad. Topic is on a 2.x release. The cache solution is for v3.x releases.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The original poster has stated that they are using 3.0.3.1. They have just posted in the wrong section of the forum.straightlight wrote: ↑Thu Feb 21, 2019 10:20 pmMy bad. Topic is on a 2.x release. The cache solution is for v3.x releases.
Yes there was an error message in the browser developer tool. Please see below:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) /admin/index.php?route=common/filemanager&user_token=aDczFVgn53XZRflsQnkuBRAfqPqrvZNQ&target=input-image&thumb=thumb-image:1
GET http://littlegoldmines.com/admin/index. ... humb-image 500 (Internal Server Error)
Failed to load resource: the server responded with a status of 500 (Internal Server Error) /admin/index.php?route=common/filemanager&user_token=aDczFVgn53XZRflsQnkuBRAfqPqrvZNQ&target=input-image&thumb=thumb-image:1
GET http://littlegoldmines.com/admin/index. ... humb-image 500 (Internal Server Error)
Yes, that is correct, which is why I addressed my previous reply indicating that the cache solution posted is only for v3.x releases.ADD Creative wrote: ↑Thu Feb 21, 2019 10:49 pmThe original poster has stated that they are using 3.0.3.1. They have just posted in the wrong section of the forum.straightlight wrote: ↑Thu Feb 21, 2019 10:20 pmMy bad. Topic is on a 2.x release. The cache solution is for v3.x releases.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
From looking at this issue. https://github.com/opencart/opencart/issues/6178 It could be caused by one or more large images that are too big for your PHP memory_limit setting. What is your PHP memory_limit set to and have you tried increasing it. It could also be caused by cuript image. I which case try removing the last image uploaded before the started getting the issue.siriusweb wrote: ↑Thu Feb 21, 2019 10:50 pmYes there was an error message in the browser developer tool. Please see below:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) /admin/index.php?route=common/filemanager&user_token=aDczFVgn53XZRflsQnkuBRAfqPqrvZNQ&target=input-image&thumb=thumb-image:1
GET http://littlegoldmines.com/admin/index. ... humb-image 500 (Internal Server Error)
I finally figured out the problem with the image uploading feature. While doing some digging on the hosting server, I noticed that OpenCart was set to automatically upgrade when new version came out. Because of this the theme was no longer compatible with OpenCart. The current version is 3.0.3.1, however a lot of themes have not caught up yet. So I turned the automatic upgrade off and restore the site to version 3.0.2.0 and the image upload feature is now working properly. Thank you all for your attention to this matter. This is a great support forum.
- Best Regards
- Best Regards
siriusweb, can you please tell us where that automatic upgrade setting is? Never heard of that.siriusweb wrote: ↑Tue Feb 26, 2019 3:51 amI finally figured out the problem with the image uploading feature. While doing some digging on the hosting server, I noticed that OpenCart was set to automatically upgrade when new version came out. Because of this the theme was no longer compatible with OpenCart. The current version is 3.0.3.1, however a lot of themes have not caught up yet. So I turned the automatic upgrade off and restore the site to version 3.0.2.0 and the image upload feature is now working properly. Thank you all for your attention to this matter. This is a great support forum.
- Best Regards
Thanks.
Who is online
Users browsing this forum: No registered users and 14 guests