Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blocks not showing up on picture pages #17

Open
NbodySpecial opened this issue Jan 10, 2024 · 3 comments
Open

blocks not showing up on picture pages #17

NbodySpecial opened this issue Jan 10, 2024 · 3 comments

Comments

@NbodySpecial
Copy link

I installed PHP_Stuffs to try and add adsense blocks.
Piwigo 14.1
PHP 13.1.18

It installed fine. I created some test blocks (personal blocks).
They show up on the main page fine.
They show up on the categories root pages fine.
They show up on the categories pages fine.
They do not show up on the pictures pages.

I have tested it with multiple blocks- any block will turn on/off for a page, except none will display on the pictures pages.

Content of block: (The main and pictures values indicate what pages the block should show up on . As I did testing and turned pages on/off, that got changed).

<p> This is a test.  Main Pictures
</p>

Themes tried: Modus, Clear, Elegant, Sylvia.

I have seen a couple of warnings when adding blocks, no errors. The warnings only appear when adding.

<br /><b>Warning</b>:  Undefined array key 
/home/....../htdocs/piwigo/piwigo/_data/templates_c/p6jhns^394d2d51da70ca22164d446a47bc974cd763019b_0.file.add_module.tpl.php on line 70

Interestingly, if I add a random quote block the results are pretty much the same (show on all but pictures pages) , but there's a longer list of warnings - it looks like one per language in the translations, but effectively the same warning. Just taking the Afrikans one:

<br />
<b>Warning</b>:  Undefined array key "af_ZA" in <b>/home/......./htdocs/piwigo/piwigo/_data/templates_c/p6jhns^0f4c2ce920299fcdf46b1f9b8aa5677c8ea111e5_0.file.config.tpl.php</b> on line <b>45</b><br />

Is there something I'm missing?

@klaoun
Copy link

klaoun commented Jan 10, 2024

Hello
Try change language from piwigo because af-za is not translating now.

Thx

@NbodySpecial
Copy link
Author

I've got the language set to EN_US. It was EN_UK. That warning is repeated for every language- I just took the Afrikans one because it was first.

@NbodySpecial
Copy link
Author

I got back and tested this some more. The personal blocks will show up on the picture page, if (and only if), they're above the main block.

Is this expected behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants