Customizing SMF > Tips and Tricks

Resetting Forum...

<< < (5/9) > >>

NiceLittleMonkey:
Kindred, as per our conversation in my other thread I just prepared a test_reset.zip package and corrected the path from...:


--- Code: ---zip_extract('test_reset.zip','/home/turtleshell/www/test/');
--- End code ---

...to:


--- Code: ---zip_extract('test_reset.zip','C:/wamp/www/rcforum/');
--- End code ---

When I run it on my Windows desktop on a local WAMP server I get the following error and looking at the smf files none of them has been changed:


--- Quote ---This script resets all files to the default installation from the file "test_reset.zip" (which is a pared down version of the "Large Upgrade Package" from SMF.)
This script will also remove all installed themes other than the default, reset all packages to "not installed" and reset all member options to the default settings for the default theme.
Remember: This will not remove any mod DATA from the database, nor will it delete the mod-specific FILES

Resetting error logs

Resetting installed packages

Finding and removing all themes except for the default theme (Curve)

Removing (2) Core Theme
from /var/www/web16/web/Themes/core

( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Call to undefined function deltree() in C:\wamp\www\rcforum\reset_site_21.php on line 77
Call Stack
#   Time   Memory   Function   Location
1   0.0005   732616   {main}( )   ..\reset_site_21.php:0

--- End quote ---

The error...:


--- Code: ---SCREAM: Error suppression ignored for
--- End code ---

...seem to go away if I change the path to...:


--- Code: ---zip_extract('test_reset.zip','C:\wamp\www\rcforum\');
--- End code ---

...but this error remains:


--- Code: ---( ! ) Fatal error: Call to undefined function deltree() in C:\wamp\www\rcforum\reset_site_21.php on line 77
Call Stack
# Time Memory Function Location
1 0.0006 732984 {main}( ) ..\reset_site_21.php:0

--- End code ---

Any suggestions, please?  :)


Kindred:
ummm... yeah.

I built the script for linux/apache servers...

Windows uses the other-way slashes... and apparently doesn't like the deltree command.
hrmm...

Arantor:
Does the script include Subs-Package.php? That's where deltree() is stored. Perhaps it's an older version of SMF that has it somewhere else/does something different.

And actually, PHP on Windows doesn't care too much about the different slashes.

Kindred:
hmmm... interesting on the slashes. I've had nothing but trouble  with them between windows and linux.

wel, my script includes SSI in order to get paths and use the smfFunc parsing

I thought deltree was a standard php command anyway...



BTW: Removed my specific path...  corrected to use the defained variable $reset_path instead

NiceLittleMonkey:
Must be some kind of restriction on the Linux server where one of my sites are hosted. Getting these errors when running your script:


--- Code: ---[Fri Feb 15 19:14:34 2013] [error] [client 93.163.xxx.xxx] File does not exist: /var/www/web117/web/repair_settings.php
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/index.template.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 1869
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/index.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/index.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Modifications.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Modifications.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/index.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/index.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Modifications.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Modifications.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Optimus.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Optimus.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Optimus.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Optimus.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/Optimus.english.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 2002
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/Scrolling.template.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 1869
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/css/portal.css) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 1852
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/images/sp) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Subs-Portal.php on line 114
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/Portal.template.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Load.php on line 1869
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Subs-Portal.php on line 813
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Warning:  file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/web16/web/Themes/core/languages/SPortal.danish-utf8.php) is not within the allowed path(s): (/var/www/web117) in /var/www/web117/web/Sources/Subs-Portal.php on line 813
[Fri Feb 15 19:14:36 2013] [error] [client 93.163.xxx.xxx] PHP Fatal error:  Call to undefined function deltree() in /var/www/web117/web/reset_site_21.php on line 77
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version