On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Error moving site from PHP 4 to PHP 5

UserPost

9:27 pm
15 Jul 2008


hombrelobo

Member

posts 16

1

I moved my web site  (http://hombrelobo.com) from one server with PHP 4 to another one with PHP 5.

My WP suffered a bit, some incompatibilities, but managed to get it all working at the end, except for Simple:Press Forum.

I was running WP 2.51 and S:PF 3.11. When I press on the S:PF plugin activation
, the page for the forum (http://hombrelobo.com/foros) freezes and all the other pages of the web site behave wrongly, with posts all wrong.

So I downloaded S:PF 3.13. and tried to install it and I get this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/sf-startup.php) is not within the allowed path(s): (/var/www/vhosts/hombrelobo.com/httpdocs:/tmp) in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 26

Warning: main(sf-startup.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 26

Warning: main() [function.include]: Failed opening 'sf-startup.php' for inclusion (include_path='.:.:.:') in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 26

Warning: main() [function.main]: open_basedir restriction in effect. File(/sf-includes.php) is not within the allowed path(s): (/var/www/vhosts/hombrelobo.com/httpdocs:/tmp) in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 27

Warning: main(sf-includes.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 27

Warning: main() [function.include]: Failed opening 'sf-includes.php' for inclusion (include_path='.:.:.:') in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 27

Warning: main() [function.main]: open_basedir restriction in effect. File(/admin/sf-admin-header.php) is not within the allowed path(s): (/var/www/vhosts/hombrelobo.com/httpdocs:/tmp) in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 32

Warning: main(admin/sf-admin-header.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 32

Warning: main() [function.include]: Failed opening 'admin/sf-admin-header.php' for inclusion (include_path='.:.:.:') in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 32

Fatal error: Call to undefined function sf_load_foundation() in /var/www/vhosts/hombrelobo.com/httpdocs/wp-content/plugins/simple-forum/sf-control.php on line 33

I changed the contact form plugin, after reading in the FAQs of the forum, for the one you recommend.

I upgraded WP to 2.6.

All seems to work well, except for S:PF that still has the same problem: version 3.11 freezes the forum pages and damages the whole site (and the menu doesn't appear) and version 3.13 doesn't install (error mentioned above)

As far as I can see, the change that has affected S:PF is moving it from PHP 4 to 5.

Any suggestion ?  Thanks

11:02 pm
15 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

2

SPF works fine with php 4 and 5…  the issue is the php 5 setup on your host… they have disabled openbasedir functionality… this allows php to limit the paths from whicih other files can be included…  that would be a problem for a bunch of WP stuff as you can see….  you need to ask your host to enable like it was on your php 4 setup….

12:40 pm
16 Jul 2008


hombrelobo

Member

posts 16

3

Thanks a lot. I found the way to do it in this post. It basically says this:

 Disable open_basedir in Plesk


Add the following contents in the file /var/www/vhosts/<your domain>/conf/vhost.conf

<Directory /var/www/vhosts/@domain_name@/httpdocs>
php_admin_value open_basedir none
</Directory>

Run the command

#/usr/local/psa/admin/sbin/websrvmng -v -a

And now everything works great.

Thanks a lot.

1:11 pm
16 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

Good to hear you were able to fix it up.

3:37 am
18 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

5

for others with this issue, it can be set in either the vhost.conf (for vps or virtual setups) or in the php.ini file for shared hosting…  the fix above is the proper virtual host solution…  in shared hosting, just comment out (which is the default) the open_basedir= statement in php.ini



Reply to Topic: Error moving site from PHP 4 to PHP 5

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 11        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

9 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)