Post by straightlight » Wed Nov 01, 2017 8:19 am

In that file,

find:

Code: Select all

foreach ($files as $file) {
				$file = substr($file, 0, -21) . '/bootstrap.css';
				
				if (is_file($file)) {
					unlink($file);
				}
			}
replace with:

Code: Select all

if (is_resource($files)) {
foreach ($files as $file) {
				$file = substr($file, 0, -21) . '/bootstrap.css';
				
				if (is_file($file)) {
					unlink($file);
				}
			}
		}
			
This will stop outputting error messages in the logs regarding the developer,php file.

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 Marinelife » Sat Aug 11, 2018 7:36 pm

Dose that include fixing the error showing from the line: 70

Code: Select all

PHP Warning:  rmdir(/home/userfile/storage/cache/file): Directory not empty in /home/userfile/public_html/admin/controller/common/developer.php on line 70

User avatar
New member

Posts

Joined
Fri Aug 25, 2017 7:13 am
Location - Jeddah

Post by straightlight » Sat Aug 11, 2018 10:47 pm

This request might be more about server-specifics from linux versus windows servers deletion process. I would rather suggest to follow this suggestion to remove directories automatically: https://stackoverflow.com/questions/165 ... -not-empty

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 Marinelife » Sat Aug 11, 2018 11:06 pm

straightlight wrote:
Sat Aug 11, 2018 10:47 pm
This request might be more about server-specifics from linux versus windows servers deletion process. I would rather suggest to follow this suggestion to remove directories automatically: https://stackoverflow.com/questions/165 ... -not-empty
Dear,

Can you please help me to fix this issue.
Which command should be used here.

User avatar
New member

Posts

Joined
Fri Aug 25, 2017 7:13 am
Location - Jeddah

Post by Marinelife » Tue Aug 14, 2018 4:05 am

Anyone can help me to resolve this issue ???

User avatar
New member

Posts

Joined
Fri Aug 25, 2017 7:13 am
Location - Jeddah

Post by straightlight » Tue Aug 14, 2018 6:47 am

Contact your host for more information about a specific command line for your domain. Otherwise, try to remove the folder from your host file manager console.

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 Marinelife » Tue Aug 14, 2018 6:51 am

straightlight wrote:
Tue Aug 14, 2018 6:47 am
Contact your host for more information about a specific command line for your domain. Otherwise, try to remove the folder from your host file manager console.
Manually it's working without any problem.

The problem showing in the error log when i try to refresh the developer option from here.

Attachments

developer_error.JPG

developer_error.JPG (19.55 KiB) Viewed 5482 times


User avatar
New member

Posts

Joined
Fri Aug 25, 2017 7:13 am
Location - Jeddah

Post by straightlight » Tue Aug 14, 2018 7:33 am

The problem showing in the error log when i try to refresh the developer option from here.
Error logs unposted.

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 Marinelife » Thu Aug 16, 2018 1:40 am

straightlight wrote:
Tue Aug 14, 2018 7:33 am
The problem showing in the error log when i try to refresh the developer option from here.
Error logs unposted.
Dear,
This is the error i'm getting,

Code: Select all

2018-08-15 20:38:36 - PHP Warning:  rmdir(/home/SITE/storage/cache/so): Directory not empty in /home/SITE/public_html/admin/controller/common/developer.php on line 70

User avatar
New member

Posts

Joined
Fri Aug 25, 2017 7:13 am
Location - Jeddah

Post by straightlight » Thu Aug 16, 2018 6:23 am

This solution would be the right one on the topic: viewtopic.php?f=201&t=199227#p731868 . Not an OC 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 Ammarhigh » Wed Feb 06, 2019 6:09 am

Hello im sorry but i have got the same issue like you can i know if u have solved this problem and how?

Newbie

Posts

Joined
Tue Nov 06, 2018 4:04 am

Post by straightlight » Thu Feb 07, 2019 5:33 am

This error is caused by CHMOD permissions or your web server does not allow to delete folders recursively.

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 50 guests