View Full Version : Error after server move, please help
September 16th, 2006, 10:02 AM
I moved the site from on host to another and made required changes in config file. but still i am getting following error.
It seems it is still pointing to old host files (in red) somewhere, please help
Warning: opendir(/hsphere/local/home/sjoshi/see-photo.com/photos/data/): failed to open dir: No such file or directory in /home/joshisa/public_html/photos/adm-inc.php on line 588
Warning: readdir(): supplied argument is not a valid Directory resource in /home/joshisa/public_html/photos/adm-inc.php on line 591
Warning: closedir(): supplied argument is not a valid Directory resource in /home/joshisa/public_html/photos/adm-inc.php on line 608
September 16th, 2006, 10:20 AM
You get that logging into the admin so in global options update your server paths and save then go to storage options and hit revert and save twice and your good to go.
September 16th, 2006, 10:34 AM
thanks Chuck that did the trick
March 30th, 2007, 11:51 PM
I have my forum (VB 3.5.3) and photopost (5.3) up and running perfectly at twtex.com.
I created a subdomain (with its own IP address) on the same server named twttestvb.twtex.com (password protected to keep the VB people happy) and made a copy of my live site. I created new DB files for the copy to use so I would not be messing with the live databases. I then updated the config.php for VB and the config-int.php and config-inc.php files for photopost to point everything to the subdomain and the new databases. The forum works fine and sees the subdomain and new database files. However, ALL of the links in photopost still point to the live domain twtex.com.
From my config-int.php file...
// We need to know the server paths to both your vB installation and your PhotoPost installation
$vbpath = "/home/vbscott/public_html/forums";
$pppath = "/home/vbscott/public_html/photopost";
// We need the URL path to your PhotoPost and vb installation
$url_path = "http://twttestvb.twtex.com/photopost";
$vb_urlpath = "http://twttestvb.twtex.com/forums";
// The URL of your photo dir where your images are stored (with / at end)
$data_dir = "http://twttestvb.twtex.com/photopost/data/";
When I click the link on my test forum navbar to open the photo gallery, the gallery opens, but there are no images and ALL of the links still point to the live domain. It is almost as if the info in the config-int.php file is not being read by the program. Thus if I try to go into the Admin panel to set all the Global Options for the new path info and also to update the Storage Options, ALL of the links still point to the live domain. Any changes affect the live site.
I used different database names and usernames to make sure I did not accidentally leave a reference to the live DB in the config files. I can't think of anything else to check. I am sure it must be something ridiculously simple, but I just don't see it!? :confused:
March 31st, 2007, 10:25 AM
If you still point to the live vb check two places and only two places.
1. In Photopost Admin => Forum Settings place the proper url to the test forum.
2. In your test install of vbulletin in the admin options there for url etc make sure it has the test url not the live url
We only grab the bburl from vb on our auto rewrite code therefore your site points to the live site cause thats the url you have entered in the vb admin settings.
March 31st, 2007, 01:59 PM
Re #1, I could not get into the admin for the test photopost to check/change and settings. If I clicked the link to the admin panel, it immediately took me to the live site.
Re #2, I checked all URL stuff in VB and everything was set correct.
I finally just used phpmyadmin to edit the settings table in the photopost test database. That made it so that I could access the admin panel on the test site. From there, only a few paths remained to be fixed, including the storage options stuff. Once I fixed those, it all works perfect now.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.