Announcement

#1 2017-05-02 09:40:28

andrewjs18
Member
2014-10-10
50

strange photo redirection issues

Hi,

I'm having a weird photo redirection/SEO issue, I believe, where when I click on a photo, it takes me to another photo (in an entirely different album).  I'm not quite sure what's going on here and it doesn't happen on every photo.  Here's how my config.inc.php file looks:

<?php
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>

relevant part of my apache vhost config:
<Directory /my/site/>
                    Order allow,deny
                    Allow from all
                    Options Indexes FollowSymLinks MultiViews
                    AcceptPathInfo On
                    AllowOverride All
                    Require all granted
            </Directory>

example of the issue:
https://gallery.andrewshemo.com/picture … ry/233-raw

takes you here:
https://gallery.andrewshemo.com/picture … categories

Piwigo version: 2.9
PHP version: 7.0
MySQL version: 5.6
Piwigo URL: https://gallery.andrewshemo.com


any help is appreciated!!!

thanks!

Last edited by andrewjs18 (2017-05-13 09:45:02)

Offline

 

#2 2017-05-02 10:00:17

andrewjs18
Member
2014-10-10
50

Re: strange photo redirection issues

I think I figured out the issue.  if 2 photos have the same file name (IMG 0252 as an example), it seems to go to the first photo that was uploaded with that file name...

is this a known bug with piwigo and if so, is there any sort of fix available?  the system should probably do a check and rename a photo title if it's going to conflict with an existing photo, I'd think..

Offline

 

#3 2017-05-13 09:45:24

andrewjs18
Member
2014-10-10
50

Re: strange photo redirection issues

anyone?

Offline

 

#4 2017-05-14 00:10:58

erAck
Only trying to help
2015-09-06
1998

Re: strange photo redirection issues

andrewjs18 wrote:

$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';

I assume
$conf['picture_url_style'] = 'file';
is the culprit. Taken from the relevant section in include/config_default.inc.php:

Code:

// Note that you might experience navigation issues if you choose 'file'
// and your file names are not unique

Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2017-05-15 11:56:17

tazattitude
Member
2015-07-13
54

Re: strange photo redirection issues

I had the similar problem.
This is one of the threads.



I had to change

$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';

to

$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-file';

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact