Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002442Piwigotemplatepublic2011.09.18 09:322011.09.18 16:31
Reporterchrisaga 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Platformonline.frOSLinuxOS Versionubuntu
Product Version2.2.5 
Target VersionFixed in Version 
Summary0002442: Page metadata not rendered even if $meta_ref is set to true
DescriptionNo meta name="author", meta name="keywords", meta name="description" in the header of the html page rendered by picture.php

Plus <meta name="robots" content="noindex,nofollow"> is set.
Steps To ReproduceJust go to a picture page and display its html source in your browser.

Do not test the special album "random images" since it looks like the meta are always like this.
Additional InformationI started to track this nasty little guy in include/page_header.php

Because of the way it is coded, it's not obvious if :

1) "noindex,nofollow" is set because we don't want metadata ($conf['meta_ref'] set to false ?) or

2) we don't assign 'meta_ref' in the template because $page['meta_robots']['noindex'] have previously been set.

I did some testing (force meta_ref and commaent some code) and it's definitively the second option.
By the way don't forget to clean the compiled template (tricky, it took me some time to figure out).

Then I went to picture.php and found this code (line 660):
if ( $metadata_showable and pwg_get_session_var('show_metadata') )
{
  $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
}

I commented it out and found that the meta are computed now as I expected.

This code is not so new so I suspect that the issue is somewhere else, unless this bug is there for some time and nobody figured out yet.
TagsNo tags attached.
browserany
Database engine and versionmysql: 5.1.41-3ubuntu12.10
PHP version5.2.9-1.illimite
Web servernot relevant
Attached Files

- Relationships

-  Notes
(0005542)
chrisaga (developer)
2011.09.18 09:47

As it might be relevant for this kind of bug, I would add that I use the theme "Stripped" but I redid the tests with the default theme "Sylvia" and its the same.
(0005544)
chrisaga (developer)
2011.09.18 16:30

It turns out to be an issue with the stripped theme rather than a template bug.

See forum (in French) http://fr.piwigo.org/forum/viewtopic.php?id=20925 [^]

Might be solved either by template or by stripped.

- Issue History
Date Modified Username Field Change
2011.09.18 09:32 chrisaga New Issue
2011.09.18 09:32 chrisaga browser => any
2011.09.18 09:32 chrisaga Database engine and version => mysql: 5.1.41-3ubuntu12.10
2011.09.18 09:32 chrisaga PHP version => 5.2.9-1.illimite
2011.09.18 09:32 chrisaga Web server => not relevant
2011.09.18 09:47 chrisaga Note Added: 0005542
2011.09.18 16:30 chrisaga Note Added: 0005544
2011.09.18 16:31 chrisaga Severity major => minor


Copyright © 2000 - 2020 MantisBT Team
Contact
Powered by Mantis Bugtracker