Hi,
randomly I get this error message:
Warning: unlink(/home/customer/www/XXX.eu/storage/cache/cache.store.1619857657): No such file or directory in /home/customer/www/XXX.eu/public_html/YYYYYY/system/library/cache/file.php on line 17
Opencart version is 3.0.3.2 / PHP 7.3.27
I tried the language cache fix (https://github.com/opencart/opencart/co ... 990171168e)
I created a file named "cache.store.1619857657"
I made "system/library/cache/file.php" folder writable with CHMOD 755
But nothing works - the warning continues to appear (also to users when they are on product pages)
Maybe somebody has a new idea?
randomly I get this error message:
Warning: unlink(/home/customer/www/XXX.eu/storage/cache/cache.store.1619857657): No such file or directory in /home/customer/www/XXX.eu/public_html/YYYYYY/system/library/cache/file.php on line 17
Opencart version is 3.0.3.2 / PHP 7.3.27
I tried the language cache fix (https://github.com/opencart/opencart/co ... 990171168e)
I created a file named "cache.store.1619857657"
I made "system/library/cache/file.php" folder writable with CHMOD 755
But nothing works - the warning continues to appear (also to users when they are on product pages)
Maybe somebody has a new idea?
Beside this message, the first and most important action should be to disable the Display Errors in your shop configuration after you set it live.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
The cache file library does not need to be set to CHMOD 0755. The storage needs to be outside of your www folder and recursively set to CHMOD 0755 and the files needs to remain the way they are on this folder. Then, ensure both config.php files are properly configured with your DIR_STORAGE constant.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Pay a developer from Commercial Support?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
There is always a chance you will get a race condition as you can get the problem of:
Process 1 checks if the old cache file exists. Which it does.
Process 2 checks if the old cache file exists. Which it does.
Process 1 deletes the old cache file with unlink. Which will be successful.
Process 2 deletes the old cache file with unlink. Which will fail as process 1 has already deleted it.
As long as you have display errors set to off (in all three places) then there should not be an issue.
If you did want to suppress the warning in you logs, you could always add a @ in front of unlink at the line below.
https://github.com/opencart/opencart/bl ... le.php#L68
Code: Select all
@unlink($file);
Thank you for your comments.
For the moment I think I solved the issue, the site is workin fine. I simply deleted in storage/cache all cache.store.xxxxxxxx files. There were almost 1000 of them in the folder storage/cache and may be because of that, file operations broke down when new files came in. Therefore these new files couldn't be found later on. But why is it, that the old cache.storage.xxxx files are not deleted after a certain period of time and that they simply cumulate in this folder storage/cache?
For the moment I think I solved the issue, the site is workin fine. I simply deleted in storage/cache all cache.store.xxxxxxxx files. There were almost 1000 of them in the folder storage/cache and may be because of that, file operations broke down when new files came in. Therefore these new files couldn't be found later on. But why is it, that the old cache.storage.xxxx files are not deleted after a certain period of time and that they simply cumulate in this folder storage/cache?
Ensure to keep the index.html file in the cache folder. However, now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.aljo91258 wrote: ↑Thu May 06, 2021 10:01 pmThank you for your comments.
For the moment I think I solved the issue, the site is workin fine. I simply deleted in storage/cache all cache.store.xxxxxxxx files. There were almost 1000 of them in the folder storage/cache and may be because of that, file operations broke down when new files came in. Therefore these new files couldn't be found later on. But why is it, that the old cache.storage.xxxx files are not deleted after a certain period of time and that they simply cumulate in this folder storage/cache?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The unlink is trying to delete them, if it isn't then it could be a permissions or a configuration issue with storage/cache.aljo91258 wrote: ↑Thu May 06, 2021 10:01 pmThank you for your comments.
For the moment I think I solved the issue, the site is workin fine. I simply deleted in storage/cache all cache.store.xxxxxxxx files. There were almost 1000 of them in the folder storage/cache and may be because of that, file operations broke down when new files came in. Therefore these new files couldn't be found later on. But why is it, that the old cache.storage.xxxx files are not deleted after a certain period of time and that they simply cumulate in this folder storage/cache?
Who is online
Users browsing this forum: labeshops and 23 guests