Hope you have a great day!
I've been trying to set up Opencart 22.214.171.124 (PHP v. 7.3) shop to test one of my company's plugins but after the fact that I finished the installation process, I managed to view admin start page once and as soon as I clicked on Extension installer, I started to receive an error message below:
"Warning: fclose() expects parameter 1 to be resource, bool given in .../web/Opencart3037/system/library/log.php on line 25"
I searched both web and forums for any possible solutions but so far none of them have worked (change permissions, move storage folder, change DIR_STORAGE path, etc.) so here I am, hoping that someone will at least push me in the right direction to resolve this error.
I know there have probably been other posts about this but none really have helped me so I had to create my own.
Opencart is plain, no extensions, it's not a Journal. If you wish to see more info or any file contents, etc, let me know, I'll try my best to provide what I can!
P.S. Could this error be connected to server's firewall? Because that would make sense to me.
That is because I deleted comments within the file before for some reason.ADD Creative wrote: ↑Tue Jun 22, 2021 7:12 amCheck your system/library/log.php against the original. There is no fclose() on line 25.
https://github.com/opencart/opencart/bl ... ry/log.php
Nothing much changes if I reverse it back to the original - only that the error happens on line 39.
chmod 777 system/storage/logs/error.log
chmod 777 system/storage/logs/ocmod.log
chmod 777 system/storage/logs/openbay.log
Thanks for your reply. I managed to resolve the issue by simply re-installing Opencart in a different folder and managing permissions before I go thru with it.
And side note - I tried installing on PHP 7.2 server the first time and it returned me a message that Opencart 126.96.36.199 requires 7.3+ version.
This is resolved, thankfully, thanks for those who shared with their opinion and possible solutions. Cheers!
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Programmer / Opencart Tester
Users browsing this forum: No registered users and 22 guests