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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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
Newbie

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

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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
Newbie

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
Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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 677 times


User avatar
Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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
Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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