Discussion
All image links don't work!(back to index)Since the comment box in my previous thread was suddenly gone, I started a new one. Because the problem is still there!
Some days ago I installed FB3 and everything worked fine, except for the exif extension. Now, all of a sudden the exif extension is working, but the links to the archive, the next and previous links, the link to the categories and showing of date and time aren't working anymore. I didn't change a thing, so I really have no idea how this is possible.
I read some other discussion post here and I uploaded the .htacces file, but that doesn't solve the problem. All the directories exist and they are all chmodded to 777.
Has anyone any idea how to solve this problem?
posted by
TalX on 7 Jul 05 at 11:48 AM
I'm sorry I changed the name of the folderblog directory, so the right link: http://www.talx.nl/photos/fb.php
posted by
TalX on 7 Jul 05 at 11:50 AM
Talx, can you create a file called info.php whose contents are
<?php phpinfo(); ?>
and put it in your folderblog directory? I'm not sure I know how to fix the problem, but that should at least help me diagnose it.
posted by
donald on 7 Jul 05 at 1:33 PM
Thanks Donald for your quick answer! I put this file in my folderblog directory!
posted by
TalX on 7 Jul 05 at 4:05 PM
TalX, I know this seems like we're running in circles, but I've given the .htaccess one more update. You can download the new zip, or just paste the following code into a file named .htaccess in your folderblog directory:
# Start folderblog redirecting
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^fb\.php.*$ fb.php?alt_uri=%{REQUEST_URI}
#End
posted by
donald on 8 Jul 05 at 12:32 AM
Donald, I downloaded the whole new folderblog package, but it still doesn't work properly. Besides the image title is also not shown below the image itself.
How come?
posted by
TalX on 8 Jul 05 at 8:45 AM
TalX, did you install the new htaccess along with the new package? (It isn't in the default download, so you'll need to add it seperately.)
I'm not sure what you mean about the image title — I see it in bold directly below the image.
posted by
donald on 8 Jul 05 at 3:13 PM
Yes, I installed the "standard" template version and now it works....but still not the the redirections to the archive, next and previous, thumbs etc.
posted by
TalX on 8 Jul 05 at 3:26 PM
TalX, sorry it's not working. This seems to be a fairly common bug, but I'm not sure how to get around it other than using the htaccess. I have one more idea for a workaround, but I'm not sure it's practical/feasible. Let me look over the code for a minute and see how it goes.
posted by
donald on 8 Jul 05 at 3:33 PM
Tal, I think I finally nailed it. Try downloading the newest version and setting $use_alternate_url in fb_settings.php to "1".
posted by
donald on 8 Jul 05 at 7:39 PM
Ok, we're one step further...but how can I change the look of the previous and next and archive page? Because it's a mess!
posted by
TalX on 9 Jul 05 at 6:37 AM
TalX, not sure why this wouldn't work — it's working fine in my development versions, and is pretty straightforward code. Can you add the following to the start of your template_main.php (before any other text)?
<?php
echo "REQUEST_URI: " . $_SERVER["REQUEST_URI"] . "<br />";
echo "path[0]: " . $path[0] . "<br />";
echo "path[1]: " . $path[1] . "<br />";
echo "fbfile: " . $fbfile . "<br />";
echo "fbdir: " . $fbdir . "<br />";
?>
posted by
donald on 9 Jul 05 at 12:56 PM
I did this...see what is shown now on my frontpage!
posted by
TalX on 9 Jul 05 at 2:09 PM
TalX, thanks. It looks like the problem is that your server is ignoring the query string variables passed via $_GET. This is an unexpected behavior — can you ask your tech support why your query string isn't being passed to $_GET?
posted by
donald on 10 Jul 05 at 4:16 AM
Donald, I asked my technical support and this was their answer:
"It seems that the parameters (?p=image/DF001/) are "sent" in the wrong way. When redirecting, the command ?p=image/DF001/?p=image/DF001/ is repeated. This seems to be a bug in Folderblog."
Can you do something with this answer?
posted by
TalX on 11 Jul 05 at 8:54 AM
TalX, I think the reason the URLs are being written wrong is the server's get problem. Sorry to make you keep doing these tests, but can you try replacing the old code at the start of your template with the code below?
<?php
echo "GET: " . $_GET["p"] . "<br />";
echo "get(): " . get("p") . "<br />";
?>
posted by
donald on 11 Jul 05 at 1:46 PM
No problem at all Donald. If these tests are leading to the final solution, then I'll be more than happy!
The code is replaced at this moment!
posted by
TalX on 11 Jul 05 at 2:06 PM
Tal, do you still have the .htaccess file installed? If you do, try deleting it and seeing if that fixes things.
Otherwise, it's definitely a server-side problem (the url "fb.php?p=whatever" should set $_GET["p'] (the first line of your template) to "whatever", but it's leaving it blank.
posted by
donald on 11 Jul 05 at 2:41 PM
I proudly announce you that the problem has been finally solved! Thanks a lot Donald...for all your help!
posted by
TalX on 11 Jul 05 at 3:09 PM
Tal, sorry for not realizing about the .htaccess. I was trying to figure out all morning why the $_GET wasn't being passed, and finally it hit me. Sorry to have made you go through the trouble of contacting support.
The site looks good —
posted by
donald on 11 Jul 05 at 3:22 PM
Thanks again!
I have one litte question: why is one row on the archives page not completely filled with pictures?
posted by
TalX on 11 Jul 05 at 3:52 PM
Post a Reply:
(back to index)