Page 1 of 1

[v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Wed Nov 01, 2017 8:19 am
by straightlight
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.

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

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

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Sat Aug 11, 2018 10:47 pm
by straightlight
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

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

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

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Tue Aug 14, 2018 4:05 am
by Marinelife
Anyone can help me to resolve this issue ???

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Tue Aug 14, 2018 6:47 am
by straightlight
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.

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

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

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Tue Aug 14, 2018 7:33 am
by straightlight
The problem showing in the error log when i try to refresh the developer option from here.
Error logs unposted.

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

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

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Thu Aug 16, 2018 6:23 am
by straightlight
This solution would be the right one on the topic: viewtopic.php?f=201&t=199227#p731868 . Not an OC bug.

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Wed Feb 06, 2019 6:09 am
by Ammarhigh
Hello im sorry but i have got the same issue like you can i know if u have solved this problem and how?

Re: [v3.0.2.0 - Fix] - admin/controller/common/developer.php

Posted: Thu Feb 07, 2019 5:33 am
by straightlight
This error is caused by CHMOD permissions or your web server does not allow to delete folders recursively.