 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
November 5th, 2005, 11:13 PM
|
#1 (permalink)
| | Senior Member Verified Customer
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.
|
| |
November 6th, 2005, 02:21 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
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
|
| |
November 7th, 2005, 03:43 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
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();?>
|
| |
November 8th, 2005, 05:15 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
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.
|
| |
November 8th, 2005, 05:52 PM
|
#7 (permalink)
| | Senior Member Verified Customer
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?
|
| |
November 8th, 2005, 06:47 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
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
|
| |
November 8th, 2005, 07:17 PM
|
#9 (permalink)
| | Senior Member Verified Customer
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.
|
| |
November 8th, 2005, 07:34 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
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]);
|
| |
November 8th, 2005, 08:09 PM
|
#11 (permalink)
| | Senior Member Verified Customer
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.
|
| |
November 9th, 2005, 03:57 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
I think this is exclusive to a bug in that new php version
|
| |
November 9th, 2005, 02:23 PM
|
#13 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 524
| |
| |
January 2nd, 2006, 08:22 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: NY
Posts: 214
|
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.
|
| |
January 2nd, 2006, 08:28 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
You using 5.21 or 5.2?
|
| |
January 2nd, 2006, 08:33 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: NY
Posts: 214
| |
| |
January 2nd, 2006, 11:18 PM
|
#17 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 524
| |
| |
January 3rd, 2006, 07:48 AM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: NY
Posts: 214
|
Thanks A Mil |
| |
January 3rd, 2006, 08:19 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: NY
Posts: 214
|
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: "
Is this merely a server setting? What needs to be changed? thanks!
|
| |
January 3rd, 2006, 08:36 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Make sure if you say your using 5.21 that you download it again and upload the files.
|
| | |
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:22 AM. | |