spaw error solution

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
Pappnase

spaw error solution

Post by Pappnase »

if you have following error when you wanna use spaw
Warning: main() [function.main]: open_basedir restriction in effect. File(../config/spaw_control.config.php) is not within the allowed path(s): (/www/htdocs/trenhorf/) in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 17

Warning: main(config/spaw_control.config.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 17

Warning: main() [function.main]: Failed opening 'config/spaw_control.config.php' for inclusion (include_path='.:..') in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 17

Warning: main() [function.main]: open_basedir restriction in effect. File(../class/toolbars.class.php) is not within the allowed path(s): (/www/htdocs/trenhorf/) in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 18

Warning: main(class/toolbars.class.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 18

Warning: main() [function.main]: Failed opening 'class/toolbars.class.php' for inclusion (include_path='.:..') in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 18

Warning: main() [function.main]: open_basedir restriction in effect. File(../class/lang.class.php) is not within the allowed path(s): (/www/htdocs/trenhorf/) in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 19

Warning: main(class/lang.class.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 19

Warning: main() [function.main]: Failed opening 'class/lang.class.php' for inclusion (include_path='.:..') in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 19

Fatal error: Cannot instantiate non-existent class: spaw_lang in /www/htdocs/trenhorf/include/inc_ext/spaw/spaw_control.class.php on line 185
then edit the

include/inc_ext/spaw/spaw_control.class.php

and add in line 16 your path

Code: Select all

$spaw_root = "/www/htdocs/xxxxx/include/inc_ext/spaw/"
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

I have created a patch - not tested on UNIX - but should work right now.

http://prdownloads.sourceforge.net/phpw ... p?download

The spaw_root var wasn't set.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Locked