 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
July 24th, 2005, 12:37 AM
|
#1 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
| vB3 + PP5.13 - Apostrophe error
When using the enhanced vB3 editor in conjunction with Photopost, when a member types two or more apostrophes in any comment the result will be an unrecoverable error. I tried this on the dev site and its the same there but due to debug only showing details to admins the "unrecoverable error" was all I got. However, when I tried it on my site I got the following: Quote:
We're sorry, but the system experienced an unrecoverable error. Please try again later.
Script: comments
Query: INSERT INTO comments (id,username,userid,date,rating,comment,photo,cat, approved,ipaddress) values(NULL,'Rids','1',1122177692,0,'one two's three four's five',12937,512,'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 's three four's five',12937,512,'1','###.###.###.###')' at line 1
Database handle: Resource id #30
| |
| |
July 24th, 2005, 09:00 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
So this is interesting. So a single comma is alright
That makes no sense at all
|
| |
July 24th, 2005, 09:21 AM
|
#4 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Commas are ok I think, its just apostrophes as in test 's
ps. I just saw the comment on your site and we are talking about the same things
Last edited by Rids; July 24th, 2005 at 09:27 AM.
|
| |
July 24th, 2005, 09:26 AM
|
#5 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
It does happen on both my site and the dev site though so what's different there?
|
| |
July 24th, 2005, 09:35 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Yes we are talking the same thing as I just took your comment and basically typed the same thing
HMM you got me there thats what we need to find out.
Have you made sure you have downloaded the build and all the files are updated?
You have a link to your php info for me to see?
|
| |
July 24th, 2005, 09:57 AM
|
#7 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
I followed Michael's instructions for the last update and the one before, I think I changed all php files except the configs.
Here's my phpinfo file: http://terranuts.com/phpinfo.php |
| |
July 24th, 2005, 10:08 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
I'll do some testing to see if I can replicate
|
| |
July 25th, 2005, 04:18 PM
|
#9 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 148
|
Ahem... do we not remember that vB stripslashes GPC, so if you use GPC and vB functions, you need to...
In comments.php find: Code: Content visible to verified customers only.
And replace with: Code: Content visible to verified customers only.
Further, as $checkdup comes from the comments tables, it should not have extra slashes, so to compare...
In comments.php find: Code: Content visible to verified customers only.
And replace with: Code: Content visible to verified customers only.
And, as $message is addslashed by typecast or by the change above, you want to not addslash twice...
In comments.php find: Code: Content visible to verified customers only.
And replace with: Code: Content visible to verified customers only.
|
| |
July 25th, 2005, 04:29 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
I use VB3
|
| |
July 25th, 2005, 04:32 PM
|
#11 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 148
| Quote: |
Originally Posted by omegatron I use VB3 | So then you can look at the exec_gpc_stripslashes function in vB's init.php file, right? |
| |
July 25th, 2005, 04:49 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
LOL what I was saying is I dont get this error with globals on or off
Our typecast function should add or strip slashes as needed
Last edited by Chuck S; July 25th, 2005 at 04:55 PM.
|
| |
July 25th, 2005, 05:03 PM
|
#13 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 148
|
Rids problem is when s/he uses " the enhanced vB3 editor in conjunction with Photopost." Code: Content visible to verified customers only.
As such, the thing in red is stripslashed, so add the thing in blue, and also do the other changes that I previously posted.
If you are determined to reproduce this bug before committing the changes, then set VB3_ENHANCEDINT and VB3_COMMWYSIWYG to on.
BTW, your typecast call comes before $message is (re)set in the code shown in this post, so typecast doesn't do squat in this case.
|
| |
July 25th, 2005, 05:10 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Frost I use all 3 vb3 settings to ON and can not reproduce this as I have said.
I know what your saying but I like to try duplicating issues.
|
| |
August 2nd, 2005, 11:30 AM
|
#15 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Any luck with this yet? I noticed that the problem is still there, albeit slightly different, with vB3.5 as when I tried posting on the dev gallery the result was an empty post. I tried posting with the apostrophes first and the result was " <p> </p> " got posted and when I tried without the post was empty.
|
| |
August 2nd, 2005, 11:48 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You can try Frost's suggestion although I am unable to reproduce slash's on my system with magic quotes on or off vb 3.5 is not supported yet.
|
| | |
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 02:57 PM. | |