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 December 15th, 2006, 10:52 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Cant upload after upgrade

When I try to upload a picture after upgrade to 5.6.2, I get:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/.../public_html/threads/photopost/bulkupload.php on line 139

When I echo the variable userid in that script it is blank! HELP!
Basil is offline   Reply With Quote
Old December 16th, 2006, 07:39 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
what type of integration here?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 16th, 2006, 09:34 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Quote:
Originally Posted by Chuck S View Post
what type of integration here?
At the moment I'm integrating with threads 6.5, same as before. Later, I intend to upgrade to Threads 7, but in I'm tryong to first get photopost upgraded under the current forum. After the upgrade when I try to upload a picture, I get that error. I added echo statement in bulkupload.php to echo the variable $upuserid and it appears to be Empty (or null). my echo statement says
echo "the userid = ".$upuserid;

And what is output is just this:

the userid =

Hope this helps,

Basil
Basil is offline   Reply With Quote
Old December 16th, 2006, 10:33 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Additional info. I turned on debugging in the admin and when I try to upload a picture is gives this error:

Script: bulkupload

Query: SELECT SUM(filesize) AS fsize FROM pp_photos WHERE userid= AND storecat=0

Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND storecat=0' at line 1

Database handle: Resource id #7

AS I stated before it looks as if userid is not getting set (althought when I log into my forum and go to PP it shows me as logged on.

Basil
Basil is offline   Reply With Quote
Old December 16th, 2006, 09:07 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Are you not suppose to be running threads 7 though not threads?

You can try removing the bold code in uploadphoto.php

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 17th, 2006, 10:37 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Quote:
Originally Posted by Chuck S View Post
Are you not suppose to be running threads 7 though not threads?

You can try removing the bold code in uploadphoto.php

Code:
Content visible to verified customers only.

Chuck, I am currently running Threads 6.5.X and have my PP integrated with that. I am not ready to go live with my Threads 7 yet, and it was suggested that I first upgrade PP under my old Threads and then port it over to Threads 7 once I get it working on Threads. So for now, I am integrated with the old threads (which was working fine until I upgraded from 5.3 to 5.6.2).

Ok, I did a search and found a discussion about a similar problem and so in bulkupload.php I made the following change in line 139:

instead of userid=$upuserid
I put: userid='$upuserid'

This seems to have gotten me past THAT prolem, but now I have another:

Quote:
We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script: bulkupload

Query: UPDATE pp_cache SET timestamp=0 WHERE id=1

Result: Table 'bc_photopost.pp_cache' doesn't exist

Database handle: Resource id #7
First question, was my change to 'encapselate' $upuserid the right thing to do (and do I need to do similar in other scripts)?

Second question, why am I getting the "table doesn't exist" error? Was the upgrade supposed to create that table?

Basil
Basil is offline   Reply With Quote
Old December 17th, 2006, 10:44 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
You can do that although my edit might be more along your lines to do above

Your next error is because you have not ran all applicable upgrade scripts and need to run those. We add the cache table back in the 5.2 upgrade I beleive
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 17th, 2006, 10:50 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Hmm, then my mistake must have been way back when I upgraded to 5.3 because I was running 5.3 when I upgraded to 5.6.2. So, is there any danger in re-running the scripts from 5.2 up to 5.6.2 again on current install?
Basil is offline   Reply With Quote
Old December 17th, 2006, 11:47 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Nope you can rerun 5.2 to 5.6
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 17th, 2006, 12:10 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Well, I re-ran the scripts and we're getting closer. I can now upload and not get that error, but on the next screen when it shows a thumbnail and has the check mark to "add picture", when I hit the button labled "process" I get this error:

Quote:
Script: bulkupload

Query: INSERT INTO ppp_photos (id,user,userid,cat,date,title,description,keywords,bigimage,width,height,filesize,medwidth,medheight,medsize,approved,lastpost, watermarked,allowprint,extra1,extra2,extra3,extra4,extra5,extra6,ipaddress,allowrate,allowcoms) values(NULL,'Basil', , 523, 1166378787, 'Daimler', 'Daimler', '', 'IMG_0849.JPG', 800, 600, 89362, 600, 450, 57265, 1, 1166378787, 'no','yes','','','','','','','6X.XX.XXX.XX','1','1')

Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 523, 1166378787, 'Daimler', 'Daimler', '', 'IMG_0849.JPG', 800, 600, 89362, ' at line 3

What next?

Last edited by Basil; December 17th, 2006 at 12:27 PM.
Basil is offline   Reply With Quote
Old December 17th, 2006, 02:16 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Your upuserid is empty have you made the changes noted to the query and to the file uploadproduct.php as I noted?

Have you tried making sure your loginname and displayname match?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 17th, 2006, 02:53 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: May 2005
Location: New Mexico
Posts: 102
Ok, I had removed the wrong thing before. I took out the || $Globals['vbversion'] == "threads" and now it seems to be working (so far).

I'm a little confused why I would remove the code for threads, but it worked (remember I am running threads 6.5). So, when I am finally ready to move to Threads 7, should I then replace the above code for threads, but remove the code for threads7 ?

Thanks for all your help!
Basil
Basil is offline   Reply With Quote
Old December 17th, 2006, 03:01 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Nope the edit noted should not be in there which is why I said to remove it we dont deal with loginname at all in regular threads.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
just upload the files to upgrade ?? or .. majed Photopost Pro Installation & Upgrades 2 December 8th, 2005 01:50 PM
Upload problems after VB 3.5.0 upgrade atlantic2 Photopost Pro Installation & Upgrades 3 October 26th, 2005 09:42 PM
after upgrade from 5.1 to 5.13 cannot upload photos hendri Photopost Pro Installation & Upgrades 16 July 22nd, 2005 08:32 PM
Can't upload photos after upgrade. lighterrr Photopost Pro Installation & Upgrades 5 May 27th, 2005 10:58 AM


All times are GMT -5. The time now is 10:15 PM.

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