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 November 5th, 2005, 11:13 PM   #1 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Slash Apostrophe showing up.

I upgraded to the newest version, and now it looks like a herd of apostrophes got loose in my gallery and reproduced.

Here are some example

http://www.gottapixel.com/photopost5....php?photo=439

How can I fix this please? I also noticed it on another site that just upgraded as well. Apostrophes are nice and all, however they are kind of like tribbles... and I never did really like tribbles.
Fortissimo is offline   Reply With Quote
Old November 6th, 2005, 02:21 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I think we need more info here on your setup. you have a link to phpinfo?

I have tested my server with php magic quotes on and off and get no slashes 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 November 6th, 2005, 08:46 AM   #3 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Here you go Chuck!

http://cp.hoster904.com/resources/phpinfo.php

Here is another site where it's doing it on:

http://www.scrapbook-bytes.com/galle...18&limit=last1

I noticed that the " is messing up too on their site.. checked on my site, and that isn't happening, at least not on a edit.

Also, I went ahead and tested on my site... if you edit a photo, you don't have the ' issue.. it's only on a brand new upload.
Fortissimo is offline   Reply With Quote
Old November 7th, 2005, 03:43 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Hello your php link is just a link to your control panel

You can make a file in notepad called phpinfo.php with this contents and upload it to your server

<?phpinfo();?>
__________________
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 November 7th, 2005, 09:51 PM   #5 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Sorry about that Chuck. Here is the link:
http://www.gottapixel.com/phpinfo.php
Fortissimo is offline   Reply With Quote
Old November 8th, 2005, 05:15 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Okay well thats a brand new php install 4.41 installed on the 5th with magic quotes on. Now I get no issues with magic quotes on on other php versions

I would think this is a bug in that php version however I can try and give you a workaround to try although this would only be for you. I would instead suggest you turn off magic quotes. you magic quotes is adding multiple slashes instead of just one like it is suppose to.

In pp-inc.php try adding the code in bold

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 November 8th, 2005, 05:52 PM   #7 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Chuck,
The fix you posted gives me an error on line 41. So I then went through my webhost to figure out the magic quotes. They just sent me the following:

Hello,

We managed to reproduce the problem, but unfortunately we were unable to fix it. The php.ini file you have created works properly, as can be seen from the phpinfo() results:



However, the problem persists. We recommend that you contact the developers for further information. You can mention to them that our PHP environment allows to use a custom php.ini file for each directory, which does not work recursively (in case it is needed by a PHP file located in a different directory).

The php.ini file has the following information in it:

magic_quotes_gpc=off
post_max_size = 20M
memory_limit = 80M
upload_max_filesize = 20M
max_execution_time = 120
expose_php=off

So.. what's next?
Fortissimo is offline   Reply With Quote
Old November 8th, 2005, 06:47 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
That line above is correct. You probally forgot the one bold )

Anyway I can not reproduce this so it is basically going to be a drawn out issue here trying to get a server to install 4.41 on and see if we can reproduce.

Basically with magic quotes on we strip the slash that is added. Only way you can be getting a slash is if your php is adding multiple slash's to variables which would be a php bug which is why I gave you the workaround above to try. What is does is simply add an extra stripslashes
__________________
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 November 8th, 2005, 07:17 PM   #9 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Chuck:

Thank you for the time you are putting towards this, however, the code you provided does not work, and it has been checked, double checked and triple rechecked.

The file that is uploaded to my server contains the following:

Quote:
if ( VB3_INTEGRATION == "off" ) {
$passtype[$varname] = (ini_get("magic_quotes_gpc")) ? addslashes(htmlspecialchars(stripslashes(stripslashes((trim($passtype[$varname]))))) : addslashes(htmlspecialchars(trim($passtype[$varname])));
}
Which is identical to what you posted.

After uploading the revised version to my server, over writing the original I get:

Parse error: syntax error, unexpected ':' in /home/webattit/www/www/photopost52/pp-inc.php on line 41

---

As posted earlier, I am not the only PhotoPost user who is running into this issue. I would hope that measures would be made to quickly rectify this issue since it did not appear until the recent upgrade of PhotoPost.
Fortissimo is offline   Reply With Quote
Old November 8th, 2005, 07:34 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Hello

You are the only Photopost user who has posted an issue. This is not something we here can replicate. As stated all I can do is try replicating a server setup like yours and this will no doubt take time.

Okay lets make this easier here in pp-inc.php a few lines under try this

unset($GLOBALS[$varname]);
$GLOBALS[$varname] = stripslashes($passtype[$varname]);
__________________
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 November 8th, 2005, 08:09 PM   #11 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Quote:
Originally Posted by Chuck S
Hello

You are the only Photopost user who has posted an issue. This is not something we here can replicate. As stated all I can do is try replicating a server setup like yours and this will no doubt take time.

Okay lets make this easier here in pp-inc.php a few lines under try this

unset($GLOBALS[$varname]);
$GLOBALS[$varname] = stripslashes($passtype[$varname]);

The above code has fixed the problem. Thank you for finding a fix for this.

Sidenote: In the beginning of this thread, I did post a link to another site where I saw this was happening at as well. This is why I felt that it wasn't exclusive to my gallery.
Fortissimo is offline   Reply With Quote
Old November 9th, 2005, 03:57 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I think this is exclusive to a bug in that new php version
__________________
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 November 9th, 2005, 02:23 PM   #13 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
Please see this thread now.
Bulkhead.php Error showing up when uploading
Fortissimo is offline   Reply With Quote
Old January 2nd, 2006, 08:22 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: NY
Posts: 214
Send a message via Yahoo to glowinggal
I would like to verify that we too (in the site they reference above) are also having this issue only since we upgraded actually to 5.2 and now users that have an ' in their username can no longer upload in addition to the other.
glowinggal is offline   Reply With Quote
Old January 2nd, 2006, 08:28 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You using 5.21 or 5.2?
__________________
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 January 2nd, 2006, 08:33 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: NY
Posts: 214
Send a message via Yahoo to glowinggal
we are using 5.21 and here is our php info
http://www.scrapbook-bytes.com/galle...hp?admact=phpi
glowinggal is offline   Reply With Quote
Old January 2nd, 2006, 11:18 PM   #17 (permalink)
Senior Member
Verified Customer
 
Fortissimo's Avatar
 
Join Date: Oct 2005
Posts: 524
The correct fix for this issue is here:
'This' becomes \'This\' - photo upload Title/description
Fortissimo is offline   Reply With Quote
Old January 3rd, 2006, 07:48 AM   #18 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: NY
Posts: 214
Send a message via Yahoo to glowinggal
Thanks A Mil
glowinggal is offline   Reply With Quote
Old January 3rd, 2006, 08:19 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: NY
Posts: 214
Send a message via Yahoo to glowinggal
nope - didn't fix it- post a new category and it also inserted the slashes. Another thing we found today:

When entering anything with a "quote" it converts it to this: &quot;

Is this merely a server setting? What needs to be changed? thanks!
glowinggal is offline   Reply With Quote
Old January 3rd, 2006, 08:36 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Make sure if you say your using 5.21 that you download it again and upload the files.
__________________
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
vB3 + PP5.13 - Apostrophe error Rids Photopost Pro Bug Reports 15 August 2nd, 2005 10:48 AM
How do I remove slash iloco Photopost Pro How Do I...? 0 April 26th, 2005 08:54 AM
[RC2] Doesn't like uploading files from the server with an apostrophe in the name KW802 Installs and Upgrade - vBulletin 3.0.X 1 December 14th, 2004 12:11 AM


All times are GMT -5. The time now is 08:59 PM.

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