Post by eluk_shop » Mon Jul 03, 2023 1:38 pm

Hello, AND thank you all so much for your help ..

Modifications Refresh error-
If I click on it after installing a module it gives an error
OpenCart:Version : 3.0.3.8-php 7.3
Clean version installed today
For any module installed, after pressing refresh,I get error
Type Permissions:
-in ocartdata/storage /modification:755
ocartdata/storage/modification:755
ocartdata/storage/modification/admin/controller:755
Type Permissions:
-for file is :644

2023-07-03 5:30:33 - PHP Warning: fopen(/home/eluk/ocartdata/storage/modification/admin/controller/common/column_left.php): failed to open stream: No such file or directory in /home/eluk/public_html/admin/controller/marketplace/modification.php on line 418
2023-07-03 5:30:33 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/eluk/public_html/admin/controller/marketplace/modification.php on line 420
2023-07-03 5:30:33 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /home/eluk/public_html/admin/controller/marketplace/modification.php on line 422

Image

Newbie

Posts

Joined
Sun Jan 03, 2021 2:03 am

Post by ADD Creative » Mon Jul 03, 2023 4:39 pm

That suggests an issue creating the common directory under ocartdata/storage/modification/admin/controller. Do you see a common directory there?

If not try changing in admin/controller/marketplace/modification.php.

Code: Select all

@mkdir(DIR_MODIFICATION . $path, 0777);
To.

Code: Select all

mkdir(DIR_MODIFICATION . $path, 0777);
This may show you the error.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by RatnikZnae » Mon Jul 03, 2023 10:19 pm

Same problem with my shop and nothing help.

https://luxurychess.eu/ | https://awgwatergenerator.com/ | https://wpwebsite.biz/


New member

Posts

Joined
Fri Jul 28, 2017 10:28 pm

Post by eluk_shop » Mon Jul 03, 2023 10:28 pm

but why does this error appear after I use Refresh?
I did a system restore and I saw that it does the same thing, errors appear after the refresh

2023-07-03 17:20:31 - PHP Warning: fopen(/home/my site/ocartdata/storage/modification/catalog/controller/product/product.php): failed to open stream: No such file or directory in /home/my siteocartdata/storage/modification/admin/controller/marketplace/modification.php on line 502
2023-07-03 17:20:31 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/my site/ocartdata/storage/modification/admin/controller/marketplace/modification.php on line 504
2023-07-03 17:20:31 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /home/my site/ocartdata/storage/modification/admin/controller/marketplace/modification.php on line 506
2023-07-03 17:20:31 - PHP Warning: fopen(/home/my site/ocartdata/storage/modification/admin/controller/report/online.php): failed to open stream: No such file or directory in /home/my site/ocartdata/storage/modification/admin/controller/marketplace/modification.php on line 502
2023-07-03 17:20:31 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/my site/ocartdata/storage/modification/admin/controller/marketplace/modification.php on line 504
2023-07-03 17:20:31 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /home/my site/ocartdata/storage/modification/admin/controller/marketplace/modification.php on line 506
2023-07-03 17:20:32 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/my site/public_html/admin/controller/startup/error.php:34) in /home/my site/public_html/system/library/response.php on line 36

Newbie

Posts

Joined
Sun Jan 03, 2021 2:03 am

Post by ADD Creative » Mon Jul 03, 2023 10:41 pm

Check your config.php and admin/config.php point to the correct storage directory.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by straightlight » Mon Jul 03, 2023 11:37 pm

Posted in the Bug Reports. Not a bug.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by eluk_shop » Mon Jul 03, 2023 11:58 pm

that's how it is with me in:home/MYSITE/public_html/admin/config.php

define('DIR_STORAGE', '/home/MYSITE/ocartdata/storage/');
define('DIR_CATALOG', '/home/MYSITE/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

Newbie

Posts

Joined
Sun Jan 03, 2021 2:03 am

Post by ADD Creative » Tue Jul 04, 2023 3:05 am

The problem is the modification files can't can't be written to storage/modification. As OpenCart will create new directories and files if they don't exist, it looks like some sort of permissions issue.

Did you try the other suggestion? viewtopic.php?p=858699#p858665 You may have to clear storage/modification or
also apply it to storage/modification/admin/controller/marketplace/modification.php.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by eluk_shop » Tue Jul 04, 2023 12:06 pm

Hi ADD Creative, thanks for the suggestions
I tried to make the changes but the result is the same.
I will try again in the evening and come back with the result.

Newbie

Posts

Joined
Sun Jan 03, 2021 2:03 am

Post by eluk_shop » Tue Jul 04, 2023 8:51 pm

ADD Creative wrote:
Mon Jul 03, 2023 4:39 pm
That suggests an issue creating the common directory under ocartdata/storage/modification/admin/controller. Do you see a common directory there?

If not try changing in admin/controller/marketplace/modification.php.

Code: Select all

@mkdir(DIR_MODIFICATION . $path, 0777);
To.

Code: Select all

mkdir(DIR_MODIFICATION . $path, 0777);
This may show you the error.
hello, I made changes as you suggested and I see that now it's ok, if there are any errors it will be here in 2-3 days.
Thank you very much for your help..

Newbie

Posts

Joined
Sun Jan 03, 2021 2:03 am

Post by ADD Creative » Tue Jul 04, 2023 11:20 pm

That change wouldn't fixed the issue. It would only reveal extra error information if there was a problem creating the directories under storage/modification/.

Maybe something else you did fixed it or it was an issue with your hosting.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by straightlight » Tue Jul 04, 2023 11:24 pm


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


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