Hello,
I was delighted to see the new filters for Height, Width and Ratio. Sadly, although Height and Width work fine, both singly and in combination with other filters using what looks like an AND join, the Ratio filter does not work for me at all. The drop down selection shows the correct count of images but selecting one or more of them does not change the results returned. Also, any combination with other filters behaves as if there is an OR join in place.
This may be a data issue. I have had trouble in the past with incomplete metadata, particularly that used by OpenStreetMap. My test site also has PNG images, which Piwigo reports as having no EXIF data, even though I have populated this on my screen shots.
Environment
Piwigo 15.0.0beta2
Installed on 30 November 2023, 8 months 6 days ago
Operating system: Linux
PHP: 8.2.21
MySQL: 8.0.32
Graphics Library: External ImageMagick 6.9.11-60
Cache size 1543.72 Mo calculated 7 hours ago Refresh
Activated plugin list 6
EditorPlus
Exif View
Language Switch
LocalFiles Editor
Read Metadata
Take A Tour of Your Piwigo
Piwigo URL: https://piwigo15.thehighs.org/ for the albums with the Panorama images that I would like to find easily.
Last edited by Michael High (2024-08-11 20:19:37)
Offline
Last days, I've been working on the search engine. Can you update with code from Git?
Offline
Thanks for the swift reply, Pierrick
I copied the code from Git, following the instructions for manual updates. All seemed well when I logged in as Admin. I then ran every routine in the Maintenance form and cleared the cache and history on my browser. Sadly, when I tried to run a search, the browser failed with the following message; -
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in
.../piwigo/_data/templates_c/anmv4n_oq3t4z^78c69c652988f8e747131e5d7072cb17b8575244_0.file.search_filters.inc.tpl.php:170 Stack trace: #0
.../piwigo/include/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66b34cc25156b8_53458475() #1
.../piwigo/include/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #2
.../piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #3
.../piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #4
.../piwigo/_data/templates_c/anmv4n_oq3t4z^f8912c7b75b03049343d21b85afa8952a5b73495_0.file.index.tpl.php(371): Smarty_Internal_Template->_subTemplateRender() #5
.../piwigo/include/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66b34cbd5dc667_27343258() #6
.../piwigo/include/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #7
.../piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #8
.../piwigo/include/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #9
.../piwigo/include/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #10
.../piwigo/include/template.class.php(486): Smarty_Internal_TemplateBase->fetch() #11
.../piwigo/include/template.class.php(506): Template->parse() #12
.../piwigo/index.php(1048): Template->pparse() #13
{main} thrown in .../piwigo/_data/templates_c/anmv4n_oq3t4z^78c69c652988f8e747131e5d7072cb17b8575244_0.file.search_filters.inc.tpl.php on line 170Does this mean that you still have some work to do on the search or have I done something wrong in my uploading of the code. I downloaded the ZIP file on the main Piwigo/Piwigo Code page in Git. I will leave my test site alone for you to check it out. I can still carry on with my beta testing.
Regards,
Michael
Offline
That's quite an unexpected error you get! I really wonder if you fully performed the upgrade.
Can you delete directory _data/templates_c ?
Offline
Deleting _data/templates_c did not have any effect. So I have just completed a totally fresh install of 15.0.0beta2 in a new subdomain. All was well, apart from the non-functioning select-by-ratio option. So I started adding and activating my plugins. I loaded a single plugin, ran the tools/maintenance/purge compiled templates routine and then cleared the browser cache before retesting the new Search. I worked through Exif View, Language Switch, LocalFiles Editor and Read Metadata without any problems. However, loading OpenStreetMap caused the browser to fail as before. Deactivating OpenStreetMap let the system work again.
I am sorry, but I do not have the skills needed to identify how OSM is killing your otherwise excellent enhanced search.
Offline