![]() |
Images not showing up I've got a rather odd problem. Using some links all you get is a blank page, rather than the image showing. Here's an example: Both links should go to the same image... This link works fine: http://www.railroadforums.com/photos...hp?photo=21747 However this link only gets a blank page: http://www.railroadforums.com/photos...cat=all&page=1 Any idea what's wrong? I'm running Photopost 5 on a linux box. The gallery has been online for quite some time. I'm not really sure when the issue started. |
Where do you get the second link by clicking? |
Go to my site at http://www.railroadforums.com/photos/ Click on "1 day" next to "Recent Photos", that will bring up a screen of photos. From that screen, click on any photo's title. (not the photo itself, that works fine, but click on the title that is below the thumbnail.) For example, on the latest photo you'd click on "WAMX_3810_GP38_-_3_MAR..." You get the same result whether you click on "1 day" "7 days" or any other option. I also get the same result from a search window. To test that, try searching on Amtrak, then once again click any image title. |
Try in showgallery.php find this if ( $Globals['spider'] == "yes" ) $gallery['plink'][$itemcnt] = strip_empty("<a href=\"{$Globals['maindir']}/showphoto.php/photo/$id/limit/$limit/cat/$cat/page/$page/sortby/$sortby/sorttime/$sorttime/way/$way\">"); else $gallery['plink'][$itemcnt] = strip_empty("<a href=\"{$Globals['maindir']}/showphoto.php?photo=$id&limit=$limit&cat=$cat&page=$page&sortby=$sortby&sorttime=$sorttime&way=$way\">"); change to this if ( $Globals['spider'] == "yes" ) $gallery['plink'][$itemcnt] = strip_empty("<a href=\"{$Globals['maindir']}/showphoto.php/photo/$id\">"); else $gallery['plink'][$itemcnt] = strip_empty("<a href=\"{$Globals['maindir']}/showphoto.php?photo=$id\">"); |
That fixed it, but what about all that stuff it was appending, wasn't it doing anything? Also, any idea why it doesn't work as intended? I've got a second gallery (yes, 2 licenses as well) on the same server, and it works fine without needing this mod. As far as I know, they're set up in the same fashion. So I'm confused as to why it would have this issue. |
I've done a bit of experimenting, and found it was the "&cat=all" part that's making the image not show up. For example, this link won't work: http://www.railroadforums.com/photos...cat=all&page=1 But this one will: http://www.railroadforums.com/photos...t=last1&page=1 As noted the modification Omegatron posted does solve the problem, but I'd like to get the program working as intended, if possible. |
Yes I posted something so you would not get an error However I can not explain why you have an error Everything works as intended on every install I have been on. Just trying to track down why its happening on yours. |
I just upgraded to 5.21 and I'm having this same problem again. All of the links that are appending "&limit=recent" show a blank page. For example: http://www.railroadforums.com/photos...0&limit=recent Any ideas what's causing this or how to fix it? |
Totally PHP MEMORY ISSUE In showphoto.php below require "pp-inc.php" add this ini_set("memory_limit", "32M"); |
Roger Houston, that fixed the problem... Thanks! |
| All times are GMT -5. The time now is 11:27 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0