The following tutorial covers all main common issues found when installing our Photopost Pro, Reviewpost and Photopost Classifieds Products with vBulletin.
I cannot connect to the Members database. 
This issue is commonly found when running the install script the incorrect mysql database information is entered in the user database portion of the config for vbulletin. The correct resolution would be to run the install script and in the user database portion enter your vbulletin database host, database name, datebase name and password. This information can be found in your config.php file of vbulletin in the forum installation subdirectory includes.
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /xxx/xxx/xxx/xxx/header-inc.php on line 47 |
Warning: require(./global.php) [function.require]: failed to open stream: No such file or directory in /xxx/xxx/xxx/xxx/header-inc.php on line 48
This problem is caused when on the last step of install when integrating with vbulletin where you enter the server path to your forum gallery and the urls the server path to vbulletin is not entered correctly. One can always reinstall but the easiest most direct resolution is to ftp to your server as you did when you uploaded your files and to go to your photopost install directory and edit the config-int.php, config-intr.php or config-intc.php file depending on your product and find the following line below and enter the correct server path to your vbulletin install and save that file back to the server. You will then have no problems.
$vbpath = "/var/www/html/forum"; |
As an example always place your correct path statement on that line
3) Style Issues and Missing Images
This is a very common issue and has to do with the fact that vbulletin codes their application with relative urls and does not put their global url variable before links. Now we code our application to work with an existing vbulletin image directory but when users install custom stylesheets which usually have those custom images located in a subdirectory under images or a whole new directory one must update the relative image directory paths to a full url. To do this you must go to your vBulletin install and select
Styles & Templates
From there you must select Style Manager and on the right pane you have a list of all your included styles. Select any new custom style you have included and by default all style options is selected hit GO. Now once there the 3rd box of options down there is called Image Paths. Under there you will see a whole bunch of relative paths like so as an example.
Now see the use of a relative path like this works in vbulletin because the path and images exist under your forum directory however when you try to show that style over your photopost directory that directory and images do not exist under your photopost directory. Therefore you need to tell Photopost where the images are located by simply correcting those relative paths to say this.
Either should work although I always prefer to use a full url. Adding a slash on front makes the page look for those images with your base url in front of the relative link.
Once you do this for any custom style you will not have any problems with the style images being missing.
4) Link Issues - NOT FOUND
This is a common issue when users start to add vBulletin hacks and other such program links into their header and navbar and use a relative link to such a file like so in either of those templates.
Correct url would be
The new correct link would need to be changed in either of those templates in your vBulletin Admin panel under Style & Templates => Style Manager => Your specific style and selecting Edit Templates from the drop down and hit GO. Once you get the list of templates depending on where your link is you would edit the header or most notably your navbar templates find the relative link and make it a full url to that file as noted above. Once quite addendum. If you have vBulletin blog installed the relative link to blog.php is located in the blog_navbar template.
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /xxx/xxx/xxx/xxx/forums/vb3.php on line
This error is usually caused by one of two issues and rerunning the install script and inputting the correct information will fix this issue.
a) In the initial config settings of install of photopost the wrong database information under User Database Settings.
b) If the config options are correct when running install where you are asked the vbulletin mysql table prefix on STEP 4 you must input that information there.
You can find the correct vbulletin database and table prefix settings in your vbulletin config.php file in the includes directory of your forum installation.
Content visible to verified customers only.
This would be caused by one of two issues.
a) If you have upgraded your applications and moved the vbulletin install or changed the database info you might be connecting to an old database and new users might not exist in that old database.
b) Your vbulletin license number is incorrect in your config settings.
To correct this issue verify that the information for the vBulletin database is entered correctly in the photopost config-inc.php for your user database settings matched against your vbulletin config settings. Or you can make sure on the license number is correct in our config file as well like so.
Content visible to verified customers only.
You may find the correct database or license number in your vbulletin config.php file in the includes subdirectory of your vBulletin install.
7) Cookies not being recognized or dropped
For a login to be recognized over your entire forum or photopost product since they may exist on different subdomains you must set both your forum cookie settings and photopost cookie settings the same. Your cookie prefix can be found in your vbulletin config.php file in the includes subdirectory of vBulletin forum directory.
This is the preferred setting
cookie path set to / |
cookie prefix usually set to bb
cookie domain set to .mysite.com so that the cookie is read over all subdirectories.
If you set cookies like this you will have no issues. You can set your Photopost cookie settings under
Admin => Cookie Settings when clicking the photopost Admin link on our menubar.
You can set your vbulletin cookie settings by hitting admincp link and in vBulletin Admin Panel going to the following
Admincp => vBulletin Options => vBulletin Options => Cookie and HTTP Header Options and hit Edit Settings