Post by phinq1910 » Mon Aug 21, 2017 10:59 am

Hi,
I am using Opencart 3.0.2.0 with Apache 2.4.25/ PHP 5.6.30 on localhost Windows 10. But there is a warning following:

Code: Select all

Warning: unlink(D:/Apache24/htdocs/oc3020b/system/storage/cache/cache.catalog.language.1503287453): Permission denied in D:\Apache24\htdocs\oc3020b\system\library\cache\file.php on line 68
- Try delete cache in D:\Apache24\htdocs\oc3020b\system\storage\cache\ but still have warning.
- Try delete D:\Apache24\htdocs\oc3020b\system\storage\logs\error.log, refresh page again in frist time have not warning, but after it still display warning
Is that bug? Please help

Thanks

User avatar
New member

Posts

Joined
Sat Jun 11, 2016 11:43 am
Location - Hanoi

Post by straightlight » Sun Oct 01, 2017 9:26 pm

Ensure that your system/storage/cache folder is writable. CHMOD 755 would normally suffice. This is not a bug with Opencart.

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Mon Oct 02, 2017 8:23 am

Update: I was able to reproduce the issue.

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by gadevitc95 » Fri Nov 17, 2017 11:41 pm

You should grant full permissions to the file.php directory to be able to work

Newbie

Posts

Joined
Fri Nov 17, 2017 11:20 am

Post by straightlight » Sat Nov 18, 2017 3:06 am

Right - about this issue, followed is a bug fix solution: https://github.com/opencart/opencart/bl ... e/file.php

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by phinq1910 » Thu Nov 23, 2017 5:23 pm

Thanks sir

User avatar
New member

Posts

Joined
Sat Jun 11, 2016 11:43 am
Location - Hanoi

Post by jed clampit » Sat Feb 03, 2018 7:37 pm

what do you do with the above bug fix solution
do i just replace the file ?

OC Version 3.0.2.0


Newbie

Posts

Joined
Wed Jul 24, 2013 3:03 am

Post by straightlight » Sat Feb 03, 2018 10:55 pm

jed clampit wrote:
Sat Feb 03, 2018 7:37 pm
what do you do with the above bug fix solution
do i just replace the file ?
Yes

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by cshankga » Sun May 13, 2018 9:41 am

Worked perfectly. Thank you!

Newbie

Posts

Joined
Thu Nov 10, 2016 5:19 am

Post by frtyaman » Tue Jun 26, 2018 11:28 pm

Worked perfectly. Thank you!

Newbie

Posts

Joined
Mon May 14, 2018 1:08 am


Post by motion2082 » Wed Aug 15, 2018 1:50 pm

Awesome thanks for sharing a fix, had the same issue with my opencart 3.0.2.0

Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by godly75 » Wed Oct 03, 2018 1:15 am

Hm, not here, I replaced file.php but still have the error...

Code: Select all

Warning: fopen(/home/encounters/domains/encounters.be/shop_update/system/cache/cache.catalog.language.1538504061): failed to open stream: No such file or directory in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 38Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 39Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 40Warning: fflush() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 41Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 42Warning: fclose() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 43Warning: fopen(/home/encounters/domains/encounters.be/shop_update/system/cache/cache.currency.1538504061): failed to open stream: No such file or directory in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 38Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 39Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 40Warning: fflush() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 41Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 42Warning: fclose() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 43Warning: fopen(/home/encounters/domains/encounters.be/shop_update/system/cache/cache.catalog.language.1538504061): failed to open stream: No such file or directory in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 38Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 39Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 40Warning: fflush() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 41Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 42Warning: fclose() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 43Warning: fopen(/home/encounters/domains/encounters.be/shop_update/system/cache/cache.currency.1538504061): failed to open stream: No such file or directory in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 38Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 39Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 40Warning: fflush() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 41Warning: flock() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 42Warning: fclose() expects parameter 1 to be resource, boolean given in /home/encounters/domains/encounters.be/public_html/shop_update/system/library/cache/file.php on line 43

Active Member

Posts

Joined
Fri Oct 27, 2017 1:21 am

Post by straightlight » Wed Oct 03, 2018 4:04 am

In catalog/model/localisation/language.php file,

find:

Code: Select all

$language_data = $this->cache->get('language');
replace with:

Code: Select all

$language_data = $this->cache->get('catalog.language');

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by MasterCATZ » Wed May 22, 2019 7:11 am

Thanks , it is 2019 why isn't that typo still fixed in Version 3.0.2.0 ?


*edit* hmm interesting I only pulled from https://github.com/opencart/opencart a few weeks ago

what is the best way to upgrade 3.0.2.0 with a newer 3.0.2.0 ?
Last edited by MasterCATZ on Wed May 22, 2019 6:49 pm, edited 2 times in total.

Newbie

Posts

Joined
Mon May 13, 2019 4:58 pm

Post by IP_CAM » Wed May 22, 2019 8:10 am

Well, OpenCart never updates former Versions of OpenCart,
except in a real seldom Emergency Case.
That's why OC frequently changes Version Numbers, and later
Versions most likely then contain those fixed Sections as well.
It's an ongoing development, and one reason, why no FINAL
official OC version ever exists, just a LATEST ... :D
But the fix would be available, among others, in an inofficial
full OC 3.0.2.0 package, to have most all found misses fixed:
https://github.com/condor2/Opencart_3020

One just needs to understand the OC Way of doing Things, it keeps one
from complaining about matters, not beeing part of the OC concept.

Ernie

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by straightlight » Thu May 23, 2019 6:14 am

Thanks , it is 2019 why isn't that typo still fixed in Version 3.0.2.0 ?
Because v3.0.2.0 was released before 2019.

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.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 2 guests