PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 16th, 2005, 10:25 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Question getting strange errors

I am getting some strange errors on our PP:

http://www.defencetalk.com/pictures/

Quote:
Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT *
FROM vb3bbcode;

MySQL Error : Table 'defence_gallery.vb3bbcode' doesn't exist
Error Number : 1146
Date : Sunday, October 16th 2005 @ 11:22:32 PM
Script : http://www.defencetalk.com/pictures/...php/photo/8295
Referrer : http://www.defencetalk.com/pictures/index.php
Classname : vb_database
and

Quote:
Database error in vBulletin 3.5.0:

Invalid SQL:

UPDATE vb3session
SET lastactivity = 1129519372, location = '/pictures/showphoto.php/photo/8295', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = 'f6a0d0c53618541bb63ed5e403d172a1';

MySQL Error : Table 'defence_gallery.vb3session' doesn't exist
Error Number : 1146
Date : Sunday, October 16th 2005 @ 11:22:33 PM
Script : http://www.defencetalk.com/pictures/...php/photo/8295
Referrer : http://www.defencetalk.com/pictures/index.php
Classname : vb_database
please help, thanks
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 05:48 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Question

I really need some help with this. Was PP package updated recently? within past week?
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 09:42 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
Our product was updated weeks ago with the fix to be compatible with vb35

I would suggest downloading the build and reuploading all template files and main php scripts except the config files
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 09:43 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Thats what I am using and did not have any problems until yesterday.
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 10:27 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
You getting these errors by email or on screen?

I would reupload the files just in case as I run VB and don't get these errors. Looks to me like your pp-inc.php file is not the latest if your having these errors.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 12:30 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
thanks,

i replaced the files and now this:


Quote:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/pictures/pp-inc.php on line 208

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/pictures/pp-inc.php on line 2885
categories have disappeared on the main page as well!
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 12:49 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
I ran the upgrade script as well and got this:

Quote:
Preparing to update database...
Error performing MySQL command: CREATE TABLE pics_cache (id tinyint(1) NOT NULL default '1', timestamp int(15) NOT NULL default '0', statscache mediumtext, recentcache mediumtext, popularcache mediumtext, randomcache mediumtext, calcache mediumtext, catcache mediumtext, catprops mediumtext, PRIMARY KEY (id), KEY id (id)) TYPE=MyISAM
Error: Table 'pics_cache' already exists

Error performing MySQL command: INSERT INTO pics_cache VALUES (1,0,null,null,null,null,null,null,null)
Error: Can't open file: 'pics_cache.MYI'. (errno: 145)

Error performing MySQL command: INSERT INTO pics_settings VALUES (211,'Minutes to cache index page data for featured photos, statistics and PALs?','cachetimeout','Number of minutes to cache information. Default is 10 minutes, 0 means no caching.','10',36,1)
Error: Duplicate entry '211' for key 1

Error performing MySQL command: INSERT INTO pics_settings VALUES (212,'Show Calendar PAL?','calpal','Do you want to display the calendar pal, yes or no.','yes',16,11)
Error: Duplicate entry '212' for key 1


Upgrade complete! You may now remove the upgrade.php script
.
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 12:50 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
See you never did your upgrade it looks like and your pp-inc.php file was indeed old so your not running the 3.5 compatible photopost

I would make sure you double check you truly have 5.2 uploaded.

Make sure you are running all 5.2 files and run the upgrade script to create the new cache table and other needed files.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 12:52 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
Okay we posted at the same time.

Did you run other needed upgrades? Looks to me like you needed to run others than just 5.11-5.2

Your missing fields so thats why the query is failing
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 01:06 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Well, this doesn't make sense. I upgraded all of the previous PP versions and the latest I performed was around october 6th-8th.... and there were no issues or anything until last night so if it was the upgrade wouldn't it have happened before?
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 01:19 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
well the only thing would make sense if possibly your server got rolled back to a previous install database and files by your host.

View your database does your cache table exist? Is there anything in it?

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/defence/public_html/pictures/pp-inc.php on line 208


If there is nothing in it then it would seem to me the query to add the cats info to the cache table is failing here.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 01:23 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Arrow

It still has files from 10/10/2005 so that's out of the question. If there was a roll back, I would know about it.

even when i try to upgrade from the previous versions.... it tells me the table exists/entry exists, etc.
DefenceTalk.com is offline   Reply With Quote
Old October 17th, 2005, 01:32 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
Well you need to find out what is missing here.

In pp-inc.php you can set this line

$showsqldebug = 0;

to say this

$showsqldebug = 1;

Then maybe a more detailed error would be shown here
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 01:40 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,661
Using phpmyadmin try running this it looks to me as if your cache table is corrupt if it exists

REPAIR TABLE pics_cache
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 17th, 2005, 01:56 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Lightbulb

Quote:
Originally Posted by Chuck S
Using phpmyadmin try running this it looks to me as if your cache table is corrupt if it exists

REPAIR TABLE pics_cache
This did it. Thank you!!!

Btw, I did not get any special error message with the debug mode on.
DefenceTalk.com is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Few strange questions trueinnovation Before You Buy 4 October 25th, 2005 12:49 PM
Something really strange Wasabe Photopost Pro How Do I...? 4 June 2nd, 2005 11:42 PM
strange sql errors out of the blue, for no reason? sross Photopost Pro Installation & Upgrades 3 August 24th, 2004 08:19 AM
Strange by design memobug Classifieds Bug Reports 6 July 16th, 2004 02:38 AM


All times are GMT -5. The time now is 01:20 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0