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.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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
Rids is offline   Reply With Quote
Old July 24th, 2005, 09:00 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
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 July 24th, 2005, 09:03 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Okay I just tested this on my vb3 site and works perfectly so now HMM let me see what we can think of.

http://www.reeftalk.com/gallery/showphoto.php?photo=771
__________________
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 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.
Rids is offline   Reply With Quote
Old 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?
Rids is offline   Reply With Quote
Old July 24th, 2005, 09:35 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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?
__________________
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 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
Rids is offline   Reply With Quote
Old July 24th, 2005, 10:08 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
I'll do some testing to see if I can replicate
__________________
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 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.
Frost is offline   Reply With Quote
Old July 25th, 2005, 04:29 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
I use VB3
__________________
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 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?
Frost is offline   Reply With Quote
Old July 25th, 2005, 04:49 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; July 25th, 2005 at 04:55 PM.
Chuck S is online now   Reply With Quote
Old 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.
Frost is offline   Reply With Quote
Old July 25th, 2005, 05:10 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
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 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.
Rids is offline   Reply With Quote
Old August 2nd, 2005, 11:48 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
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
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
VB3 and PP5 Turbosport Photopost Pro How Do I...? 1 June 2nd, 2005 04:23 PM
Can't admin PP5 in new PP5/vb3 installation berdahl Photopost Pro Installation & Upgrades 4 April 21st, 2005 01:52 AM
PP5.0 w/ vb3.0.7 upgrade, no admin taveren Photopost Pro Installation & Upgrades 9 April 5th, 2005 07:30 PM
Pp5 / Vb3.08 / Vbp 3 slcr1 Photopost Pro Installation & Upgrades 6 March 10th, 2005 05:06 AM
[RC2] creating category with apostrophe cause mysql error robert_2004 Installs and Upgrade - vBulletin 3.0.X 6 February 9th, 2005 10:18 AM


All times are GMT -5. The time now is 02:57 PM.

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