Goes into a loop
-
Hi,
I have a mass vhost setup where apache handles 100s of sites from one setup.
I think the problem from using this
$_SERVER[‘DOCUMENT_ROOT’].’/wp-content/’ which caused your copy function to go in a infinite loop. My log file became ~ 500MB[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148Slavi
- The topic ‘Goes into a loop’ is closed to new replies.