 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
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.
|
| |
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.
|
| |
November 25th, 2005, 07:56 AM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Yes functions do change and it indeed looks like that has |
| |
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!
|
| |
November 25th, 2005, 08:21 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
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! |
| |
November 25th, 2005, 08:39 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
January 2nd, 2006, 02:07 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 37
|
Where do I add "$year = $year + 1900;"
|
| |
January 2nd, 2006, 02:55 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 37
|
Found it, thanks.
|
| |
January 2nd, 2006, 10:05 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Yes for PHP 5.1x
|
| |
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.
|
| |
January 7th, 2006, 04:57 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Thanks will pass it along
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:39 PM. | |