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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 25th, 2005, 05:54 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 185
Upgraded to PHP 5.1 getting errors

Hi! I upgraded to php 5.1 and am getting mysql errors. I use mysql 4.17 and IIS6..
(with the latest version of photopost)

This is one of the errors I get while trying to upload:

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

Script: uploadphoto

Query: INSERT INTO pp_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) values(NULL,'Daniel', 1, 533, , 'PICT6875', '', '', 'PICT6875.JPG', 2304, 1704, 832178, 757, 560, 68605, 1, , 'no','no','','','','','','','')

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 ' 'PICT6875', '', '', 'PICT6875.JPG', 2304, 1704, 832178, 757, 560, 6' at line 3

Database handle: Resource id #6
When I go to the Admin panel I see this on the right window frame:

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

Script: adm-misc

Query: DELETE FROM pp_ecards WHERE (readdate > 0 AND readdate < ) OR date <

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 ') OR date <' at line 1

Database handle: Resource id #5
When trying to view a photo I get this:

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

Script: showphoto

Query: REPLACE INTO pp_laston VALUES('509',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 ')' at line 1

Database handle: Resource id #6
Any ideas?

Last edited by MrDaniel; November 25th, 2005 at 08:03 AM.
MrDaniel is offline  
Old November 25th, 2005, 07:00 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 185
okay, I have identified a problem that has to do with the localtime(); php function.... it seems to me that the year value passed from localtime() gives number of years since 1900 but mktime doesn't seem to accept that anymore...

I could be wrong...

Well, the problem seemed to go away if I added this either before or after this entry:
$mon = $mon + 1;
adding the following:
$year = $year + 1900;

that seems to fix at least the showphoto problem....

Last edited by MrDaniel; November 25th, 2005 at 07:37 AM.
MrDaniel is offline  
Old November 25th, 2005, 07:56 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Yes functions do change and it indeed looks like that has
__________________
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  
Old November 25th, 2005, 08:12 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 185
Indeed! Well, the solution I gave works for me. I just have to add $year = $year + 1900; wherever localtime(); is used, just like $mon = $mon + 1; is used... Works fine now!
MrDaniel is offline  
Old November 25th, 2005, 08:21 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Yes I have a user who just dared to install mysql 5 on there server and having issues installing on that platform. It is always something
__________________
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  
Old November 25th, 2005, 08:31 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 185
yeah, I wouldn't dare doing that yet. I use IPB and I've heard there are a few too many changes in mysql so one must give the script authors some time to catch up!
MrDaniel is offline  
Old November 25th, 2005, 08:39 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Exactly no host's even have it installed yet. We do not market that we are mysql 5 compatible nor does anyone else I know and from what I see at this point it would almost necessitate a whole separate version
__________________
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  
Old January 2nd, 2006, 02:07 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Where do I add "$year = $year + 1900;"
LLIFE is offline  
Old January 2nd, 2006, 02:55 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Found it, thanks.
LLIFE is offline  
Old January 2nd, 2006, 10:05 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Yes for PHP 5.1x
__________________
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  
Old January 7th, 2006, 10:18 AM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2002
Posts: 25
Quote:
Originally Posted by MrDaniel
Indeed! Well, the solution I gave works for me. I just have to add $year = $year + 1900; wherever localtime(); is used, just like $mon = $mon + 1; is used... Works fine now!
I scanned the 5.21 files and found that the following locations are missing the $year = $year +1900; line after $mon = $mon + 1;

comments.php Line 62
search.php Line 125
showphoto.php Line 218
showphoto.php Line 1035
showphoto.php Line 1068
forums\vb3.php Line 333

Maybe this will be useful to other folks having the problem.

Last edited by Pirotess; January 7th, 2006 at 10:26 AM.
Pirotess is offline  
Old January 7th, 2006, 04:57 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Thanks will pass it along
__________________
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  
Closed Thread


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
upgraded to 3.1, getting 2 errors iPrecisionNET ReviewPost Installation & Upgrades 1 November 13th, 2005 06:57 PM
upgraded to 3.51 errors Rickyc Installs and Upgrade - vBulletin 3.5.X 1 November 6th, 2005 12:54 PM
upgraded to 3.5 on dev site: errors msimonds Installs and Upgrade - vBulletin 3.5.X 3 October 15th, 2005 01:32 PM
Upgraded now errors hashesh ReviewPost Installation & Upgrades 6 October 2nd, 2005 09:26 PM
Upgraded with errors to 5.0 from 4.82 sammyman Photopost Pro Installation & Upgrades 3 March 3rd, 2005 11:40 AM


All times are GMT -5. The time now is 09:39 PM.

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