PDA

View Full Version : Changed forum url and now having problems


dj83
05-12-2014, 09:21 PM
Hello,

I just changed my url but I forgot to edit it in vb acp and now I am unable to log in and all of my urls (for example register & forums) are still pointing to my old url. Which file do I edit to update all of this info?

Sorry for my bad english

dj83
05-12-2014, 09:26 PM
Also my site currently looks like the pic below....

149107

kh99
05-12-2014, 09:38 PM
You could try editing it in the database. You'd want to edit the record in table datastore where title="options". What's stored in that field is a serialized array, so if you find and edit it you also have to fix the length. So it might say (somewhere in the middle of a long string)
s:5:"bburl";s:21:"http://mydomain/forum";

and if you change it to someotherdomain.com, you'd also have to fix the length, so you'd end up with:
s:5:"bburl";s:28:"http://someotherdomain/forum";

If you do this and get it working, the first thing you'd want to do is go to the options and change it there (it will still look like the old value because the datastore was changed but not the settings table).


There's a tools.php that you can upload to your admincp folder and it lets you fix some things, but I can't remember if the url is one of the things it lets you fix.

Lynne
05-12-2014, 10:42 PM
Editing the datastore table, and the serialized data, isn't really recommended unless you really know what you are doing. If you are using a recent version of the software, you should be able to just change the bburl in the settings table and then upload the tools.php file from the do_not_upload directory to your admincp and point your browser at it and then click to rebuild the Options Bitfields. You will need to upload the /install directory (without the /cmsdefaultdata directory or the install.php or upgrade.php file) in order to run the tools.php script.

dj83
05-12-2014, 10:55 PM
Hi,

I got this error when i tried to run tools.php

Warning: require_once(./install/includes/class_upgrade.php) [function.require-once]: failed to open stream: No such file or directory in /home2/dano925/public_html/admincp/tools.php on line 46

Fatal error: require_once() [function.require]: Failed opening required './install/includes/class_upgrade.php' (include_path='.:/opt/php52/lib/php') in /home2/dano925/public_html/admincp/tools.php on line 46

tbworld
05-12-2014, 11:26 PM
Reinstall the 'install' directory which you have removed per the advisement of vBulletin.

I found this recent reference:
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4007072-500-server-error-tools-php

Lynne
05-13-2014, 05:27 PM
Hi,

I got this error when i tried to run tools.php



Warning: require_once(./install/includes/class_upgrade.php) [function.require-once]: failed to open stream: No such file or directory in /home2/dano925/public_html/admincp/tools.php on line 46

Fatal error: require_once() [function.require]: Failed opening required './install/includes/class_upgrade.php' (include_path='.:/opt/php52/lib/php') in /home2/dano925/public_html/admincp/tools.php on line 46

As I stated....
You will need to upload the /install directory (without the /cmsdefaultdata directory or the install.php or upgrade.php file) in order to run the tools.php script.