Hello. I am trying to get the OSM plugin (version 15.a) to work with customized URL's.
If I remove question marks from Piwigo URLs using the 'question_mark_in_urls' option, the OSM plugin does not work properly. Here is what happens when I click the globe icon:
-- On the root album, the plugin works correctly, and I see a world map with markers for my images.
-- On any sub-album, the plugin generates this error: "Permalink for album not found". The URL looks like this: https://mydomain.com/osmmap/category/ca … me&v=2
If I re-enable question marks in URL's, the plugin works correctly. The only difference in the URL is that a question mark appears after the text "osmmap".
All my other plugins work fine regardless of whether question marks are turned on.
Any ideas on how to fix this behavior?
I am running:
Piwigo 15.1.0
OSM Plugin 15.a
PHP 8.3.6
Last edited by cali999 (2024-12-08 04:43:57)
Offline
Actually, I discovered one other issue in my site when question marks are disabled.
The search function is partially broken. If I click near the magnifying glass in the site header, I can search for a term and it works.
However, if I try to edit that search, nothing happens when i submit the new search term. Also, if I choose Search from the Discover menu, nothing happens when I submit a search term.
If I turn question marks back on in the URLs, Search works fine.
Offline
Hello ! It looks that this is more an issue with url rewriting, using or not the question mark.
I tried every possible url rewriting in Piwigo (with or without php, name category name instead of number ...) and the question mark is a problem and gives a blank page at one of my hosting provider (Ionos), but not at the other (OVH). I tried to compare , but I was not smart enough to discover the reason why. Or why not. So now I just avoid the question mark thing in the URL. I mean I leave it as it is.
Offline
You're right - there is an issue with the ? in URL's.
I'd like to respectfully suggest that improving options for URL's would be a great enhancement for Piwigo 16. There are enough threads in the forum to make it clear that a lot of users would love to see some enhancements here. :)
Offline
Here is my config for url rewriting such as I entered it in Local Files Editor :
//$conf['question_mark_in_urls'] = false; $conf['php_extension_in_urls'] = false; $conf['category_url_style'] = 'id-name'; $conf['picture_url_style'] = 'file';
1st one can be uncommented when the hosting providers enables it. It's not a problem with Piwigo, but with the hosting.
Last edited by Katryne (2024-12-10 05:08:52)
Offline