Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Vivek24 on August 04, 2015, 12:33:52 PM

Title: Error on changing host
Post by: Vivek24 on August 04, 2015, 12:33:52 PM
I have just changed the host, when I put the forum & the database backup, then I am getting the following error

Error

Warning:  file_exists(): open_basedir restriction in effect. File(/home/a7905787/public_html/Sources/Facebook/FacebookHooks.php) is not within the allowed path(s): (/home/u917039333:/tmp:/var/tmp:/opt/php-5.5/pear) in /home/u917039333/public_html/Sources/Load.php on line 290

Warning:  file_exists(): open_basedir restriction in effect. File(/home/u739003890/public_html/Sources/Facebook/FacebookHooks.php) is not within the allowed path(s): (/home/u917039333:/tmp:/var/tmp:/opt/php-5.5/pear) in /home/u917039333/public_html/Sources/Load.php on line 290


Here, in settings.php file, I have changed every location to the new location i.e. u917039333, but why I am getting this error which is also showing old location i.e. u739003890 & /a7905787 ?

Thanks
Title: Re: Error on changing host
Post by: Kindred on August 04, 2015, 12:41:23 PM
did you run repair_settings.php?

Changing the settings.php file directly only accounts for PART of the things that need to be updated...

Additionally, even after running repair_settings.php, you are going to have to MANUALLY change the configuration of any mods - since repair_settings.php does not know what mods are installed and can not/does not edit the mod settings for paths and urls.
Title: Re: Error on changing host
Post by: Jade Elizabeth on August 05, 2015, 01:36:18 AM
Link for repair settings here: What is repair_settings.php? (http://wiki.simplemachines.org/smf/Repair_settings.php)

You should run it and make sure all the paths are correct in the files and database, and then it should work for you :)
Title: Re: Error on changing host
Post by: Vivek24 on August 05, 2015, 11:19:32 AM
I already ran repair_settings.php & also uninstalled all the mods, but now didnt understand of where this old path is showing ? Is there something to change in the database ?

I put a new SMF 2.0,10 files but only the old database of the same version.

Is there any other solution ?
Title: Re: Error on changing host
Post by: Illori on August 05, 2015, 11:28:46 AM
load repair_settings.php on your server again. on the bottom of the file will be a button/link to remove hooks. click that button, remove the file and your forum should work again.
Title: Re: Error on changing host
Post by: Vivek24 on August 05, 2015, 11:48:55 AM
Quote from: Illori on August 05, 2015, 11:28:46 AM
load repair_settings.php on your server again. on the bottom of the file will be a button/link to remove hooks. click that button, remove the file and your forum should work again.

Worked this one.....

I have manually removed the mods by uninstalling through package manager. Didnt tried this one!!!!!

Thanks for help
Title: Re: Error on changing host
Post by: Illori on August 05, 2015, 12:02:49 PM
do you know which facebook mod you were using so we can check it make sure this does not happen to others?
Title: Re: Error on changing host
Post by: Vivek24 on August 05, 2015, 12:32:51 PM
It is SA_Facebook_Integration

http://custom.simplemachines.org/mods/index.php?mod=2322
Title: Re: Error on changing host
Post by: Illori on August 05, 2015, 12:37:14 PM
thanks, i will have to team review it.