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 September 29th, 2006, 04:56 PM   #1 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
Thumbs up PP5.5 : errors with friendly URL, fix suggestion

Hi,

I upgraded to PP5.5 (thanks for this great release!) and everything seems to work fine except with friendly URLs.

1) FriendlyURL doesn't work with PHP5 : showphoto.php always says "picture not found in database"
This is due to the fact that PHP5 doesn't support longer $_SERVER["PATH_INFO"], that is used in showphoto.php, so photopost can't set correctly $photo.

Here is a quick fix that I would like to see applied in pp-inc.php :
Code:
Content visible to verified customers only.

2) The new ajax previous / next filmstrip thumbnails doesn't work with FriendlyURLs
This is due to the fact that in your javascript, paths are relative to the showframe.php file. When you are using friendly URLs, you are not in the root directory (you are browsing an adress such as showphoto.php/photo/1447/cat/500/ppuser/2).
That's why Javascript can't find showframe.php in the relative directory.

I don't know how you could fix it in a generic way, but in my configuration, galeries are installed on the root folder so I just added a "/" before showframe.php in the .js file and it did the trick :
Code:
Content visible to verified customers only.
Oh, another bug, the forum profile link doesn't show up in the profile (I didn't try to fix it...)
flat is offline   Reply With Quote
Old September 29th, 2006, 05:49 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
I can't duplicate #2 with Spider URLs on:

http://www.viperalley.com/gallery/sh.../24442/cat/505

I can add #1, no problem.

line 262 in the languages/english.php script should read 'forumclick', not 'forumpclick'.

I'll update the build.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old September 29th, 2006, 06:14 PM   #3 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
Thanks for your answer Michael.
About #2, it's very strange. Our servers are maybe configured differently ? (mine is running apache2 / php5 @ linux)
I reverted my changes to pputils.js so you can view the error when you click on previous/next filmstrip on this page.
I made a minor change in pputils.js so you can view the response value, rendered below the photo :
Code:
Content visible to verified customers only.
It seems that the response value is the source of the showphoto page itself. I think it tries to load /showphoto.php/photo/3017/cat/showframe.php?... that falls to showphoto.php
flat is offline   Reply With Quote
Old September 29th, 2006, 07:23 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Does you server setup have AcceptPathInfo On in the httpd.conf file for apache? Thats what is really needed to support the spider urls
__________________
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 September 30th, 2006, 04:16 AM   #5 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
Ok, I turned on AcceptPathInfo in apache2 configuration.
But I still get the same problem

About the fix for 1), I just noticed that PHP5 have introduced $_SERVER["ORIG_PATH_INFO"], so we can use the following lines for findenv() in pp-inc.php :
Code:
Content visible to verified customers only.
P.S : I don't know if it can help, but PHP was installed using php5.0-cgi. You can view $_SERVER and phpinfo() here

P.P.S : I added a RewriteRule that temporarily fixed the problem :
Code:
Content visible to verified customers only.

Last edited by flat; September 30th, 2006 at 04:43 AM.
flat is offline   Reply With Quote
Old September 30th, 2006, 08:42 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I run PHP5 and have no issues with spider friendly urls. I think your issue is with the server setup. Obviously something in your specific setup is different than the norm. For one no one I know of uses PHP as a CGI on Linux. Usually PHP uses the Apache module not CGI in Linux. I think if you find out that you configure PHP NOT as CGI and apache has the line noted things will work just fine. Windows servers where PHP is always a CGI never work with spider urls
__________________
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
Spider Friendly URL - Problem Rik Brown ReviewPost Installation & Upgrades 12 September 25th, 2006 08:58 AM
Need help with Spider Friendly URL implementation GateKeeper ReviewPost How do I...? 9 June 26th, 2006 03:27 PM
Spider Friendly URL vincentmah Classifieds How do I...? 0 March 16th, 2006 10:14 AM
search engine-friendly URL? abaum Photopost Pro Installation & Upgrades 1 September 10th, 2004 06:00 AM


All times are GMT -5. The time now is 09:44 AM.

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