Any idea why the description of the album at
http://share.gospelriver.com/index.php?album=bookmarks/Espanol would disappear after an upgrade to 1.4.4.3? The description was there until I updated the page after the upgrade, then it disappeared... This seems to happen on any page.
Zenphoto version 1.4.4.3 [3b80873e70] (Official build)
Current locale setting: en_US.UTF8
Server path: /home1/mysitecr/public_html/gospelriver/gallery
WEB path:
Current gallery theme: Effervescence+nb
PHP version: 5.3.22
Graphics support: PHP GD library bundled (2.0.34 compatible)
supporting: gif, jpg, jpeg, png, bmp
PHP memory limit: 128M (Note: Your server might allocate less!)
MySQLi version: 5.5.30
Database name: mysitecr_znp2
Table prefix: zp_
Spam filter: simpleSpam
CAPTCHA generator: zpCaptcha
Site status: The site is opened
Comments
That is, if
Flores, 1 Corintios 13:4-8
Tesoros, Mateo 6:19
...etc
are indeed descriptions.
<?php if (getAlbumDesc() != null) { printAlbumDesc(true);} ?>
`This should work right?
I apologize, but maybe the actual main issue was in pages.php where this code doesn't return anything.
`<?php printPageContent(); ?>`
I checked the functions documentation and it looks fine, so maybe it's an issue with my server change and/or with other code on the page... I have php in the 2nd code block but don't know why that would make a difference since it works and is called later. I also experimented with page caching in my htaccess but I know the page is updating so don't know why that would make a difference.
I also notice that it seems to change to the French language on default when I visit the page sometimes for some odd reason.
Edit: album.php is still not showing the description sometimes, and it too wants to jump to French, at which point the description disappears. Very strange.
The language selection could be from your browser if you use the HTTP_accept_language selection. And if there is an empty string for the french description then the description would not show.
Are you sure you have an album description call in that modified theme?
1) my server switch
2) last zenphoto update
3) possibly changing htaccess caching (but I kind of doubt this is the issue). And I've removed my changes already.
I didn't republish any pages or albums until after those three changes so not sure which one did it.
I also just now purged the html cache in admin.
So no luck there...
Note that the description still shows up for http://share.gospelriver.com/bookmarks/
But since I published the page at
http://share.gospelriver.com/bookmarks/English/
the description has disappeared.
http://gospelriver.com/temp/description.png
http://share.gospelriver.com/video/
(which is checked unpublished)
I tried deleting the description in bookmarks/English and adding just a few plain words with no code, still the same issue.
I could just wait 14 days to verify it's not the cache, but seems strange that it would go to nothing and not just stay as it was if that were the issue.
I can also add a new page and the content shows up no problem, or I can add a subalbum and description beneath English bookmarks and that shows up.
When I add a Danish or French description in bookmarks/English however (which did not exist before), nothing shows.
However, I recreated the page at
http://share.gospelriver.com/index.php?p=pages&title=pedir-marcador#
and the description still would not show up. I ended up just copying the html into the code at the bottom.
I don't really want to recreate my albums since that would reset my stat counts but I may have to... that's the only other thing that I can't live with still...
I see also two pages and don't see what would be wrong there?
The two pages mentioned look the same because I added the html at the top of the second page within the code block so that I at least am able to give the users the content, though I can't add it with the WYSIWYG editor. It should have appeared as page content, but it does not.
I am experiencing two different difficulties. One difficulty is that the page content at http://share.gospelriver.com/index.php?p=pages&title=pedir-marcador is not displayed. The second difficulty is that the description at the top of the page http://share.gospelriver.com/bookmarks/English/ does not display after publishing it after my server upgrade.
I suspect this is my problem, not yours, but I have no clue what the problem might be. It is not a consistent problem so it seems that it is not a template code issue. I've had some issues with PHP compatibility and settings changes with the server change, but I'm not sure how that could be a cause either...
Generally if you use codeblocks the theme must be setup to support them, otherwise they naturally will not show.
If English does not show it could mean that your server does not have a English locale installed. Did you check that? Try this script:
https://github.com/zenphoto/Unsupported/tree/master/misc/list_locales (Click on the file name and then click on "Raw" on the top right to download it).
We had an issue with multilingual content where the database fields were not large enough. This might be your issue if you maybe can confirm that the items where it happens are the longer ones.
I see you are on 1.4.4.3, please consider to update to 1.4.4.5 to see if the issue persists.
The following code, when inserted into the page, causes everything to fail and nothing is displayed:
`English`
The following code works just fine:
`Volver`
There is something in the code from the first example that Zenphoto doesn't like. If you think that might be fixed in 1.4.4.5 I would be happy to upgrade. Or I can just recreate the code a different way that it likes. This button is common to all the pages/albums that are giving me problems.
My guess is that when I upgraded Zenphoto, something changed in the code that made this disfunctional.
In this regard for sure nothing has changed. But if thtese buttons are on any page you should put them into the them file itself and not the content of a page.
`aqui`
This does not:
`aqui`
Apparently Zenphoto no longer likes `http://` in the code. I don't think the allowed tags option was present in the Zenphoto version I had before upgrading, so I'm guessing this is the culprit.
How do I make a way for Zenphoto to accept anchor links that point to a different website?
If the http was the issue how would you explain that a link to Github works here?
http://www.zenphoto.org/news/zenphoto-1.4.4.5
Or even your link on a test page on our site?:
http://www.zenphoto.org/pages/testpage
It must be something else.
Be sure to test that your theme has no html or css issues like unclosed tags. THat could make elements disappear or be hidden.
Thanks for your patience.
http://share.gospelriver.com/index.php?p=pages&title=bookmark-instructions-and-tips
I replaced all html references to "http://share.gospelriver.com" and just left them as a relative URL, leaving all external links with the "http://" as normal and the problem was resolved. That's the only change I made between the working version and the non-working version, and it is duplicable. Very weird. Maybe there's another syntax error in there that the w3 validator didn't pick up, don't know.
Needless to say I still cannot reproduce it even with multiple links (see above testpage). But of course our site is not multilingual. So I guess it is something with the database storage as all languages are stored serialized in one field (as mentioned).
The issue must be somewhere else. Is the text really in the database itself? How does it look like?
``
When I paste it into both English and Spanish (only the above code), it disappears from the page in all languages. If I remove the `http://share.gospelriver.com` from BOTH English and Spanish, it reappears. If I remove it from only one language, no content shows up.