| No access to admin functions after upgrade and change
I upgraded our PP Pro installation from 5.02 to 6.1 without any real dramas.
After doing so I successfully logged into the admin section and changed a few settings to our normal preferences.
At this stage everything was working fine until I noticed that the forum home page had these two errors:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /photos/inc_photopost.php on line 68
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /photos/inc_photopost.php on line 89
A search here led me to make a change in the integration settings by adding the pp prefix but immediately after doing so I was given a login screen that while it logged me into the gallery does not provide me with an Admin link as I had before.
Attempts to log into adm-index.php requires two attempts and then I am just at the gallery home page (index.php) and still with no admin link.
The forum home page now shows no errors so that was fixed at least!
... BUT the gallery home page shows two above the header:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /photos/forums/vb3.php on line 32
$results = mysql_fetch_array($queryv);
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /photos/pp-inc.php on line 4146
while( list( $usergroup,$cpaccess_a,$modaccess_a,$diskspace_a,$uploadsize_a,$uplimit_a,$uploads_a,$comments_a,$ueditpho_a,$ueditposts_a,$useralb_a,$reqmod_a,$assign_a ) = mysql_fetch_row($result) )
I have triple checked that the config-inc.php and config-int.php files are exactly as they were in the 5.02 configuration and the critical elements read thus:
config-inc.php -
$VERSION = "6.1";
$PP_PATH = "/var/www/html/photos";
$TMPL_PATH = "templates"
$host="localhost";
$database="forum";
$mysql_user="admin";
$mysql_password="xxxxxx";
$pp_db_prefix = "pp_";
$host_bb="localhost";
$database_bb="forum"
$user_bb="admin";
$password_bb="xxxxxx";
$mogrify_command = "/usr/local/bin/mogrify";
I've just noticed the comment in that file about the $pp_db_prefix setting -
// If you want to use a prefix for your database, enter it here.
// NOTE: This variable can only be set PRIOR to your first installation of PhotoPost;
// existing databases will not be changed and you will be unable to connect if you change
// this variable after performing a default installation.
That sounds as if I did change that setting when I edited the integration settings in the admin section - although the field was blank and I added the value pp (which probably should have been pp_) but it was in the config-inc file anyway as I had copied the information in that from our old one. Just guessing!
config-int.php -
$vbpath = "/var/www/html/";
$pppath = "/var/www/html/photos";
$url_path = "http://www.fordforums.com.au/photos";
$vb_urlpath = "http://www.fordforums.com.au/";
$data_dir = "http://www.fordforums.com.au/photos/data";
$pp_db_prefix = "pp_";
define( "MOBILE_CAT", -1 );
define("VB3_INTEGRATION", 'on');
define("VB3_ENHANCEDINT", 'on');
define("VB3_COMMWYSIWYG", 'on');
define("VB2_INTEGRATION", 'off');
define("VBP2_INTEGRATION", 'off');
$vbportal="/home/sites/yoursite/web/vbportal";
The vBulletin version is 3.0.3; pHp 5.1.6; mySQL 5.0.45
My thoughts are that it is an integration issue of some kind - it looks as if PP is not recognising me as having admin rights.
Any help appreciated.
Cheers
Russ
|