Hi!
I don't know why, but when I add an album to the favourites list I get the error message:
"Warning: Illegal string offset 'title' in /www/htdocs/.../zp-core/functions.php on line 463"
I use a my own ZenPage based Theme - but I tried the standard Themes (Garland, Default) and get the same error.
It only happens when I add Albums - Images work fine.
I tried to disable the Zenpage Plugin - didn't help.
So far I cannot think of anything else I could have modified...
Maybe somebody can help me with this issue?
Thanks in advance!
melbe
This is some kind of failure with sorting results of a query. It is not at all obvious how it could happen, though.
If you could use the markRelease plugin to set the install to debugging mode and re-run your tests it will produce a stack trace of the error in the debug log. Perhaps that will shed some light.
Thank you! I hope I did the right thing, I activated the plug-in, clicked a few times and then checked the debug log. This is the output after clicking "Remove favorite" and "Add favorite" several times:
`
{22524:Sat, 26 Oct 2013 18:58:57 GMT} Zenphoto v1.4.5.1[b17846cb99ae70bb320f42aee855a0e68c1e85e4]
WARNING: Illegal string offset 'title' in /www/htdocs/.../zp-core/functions.php on line 463
sortByMultilingual called from sortByKey (functions.php [1276])
from favorites->getAlbums (favoritesHandler.php [192])
from printAddToFavorites (favoritesHandler.php [374])
from include (album.php [56])
from include (index.php [111])
from index.php [15]
{22524:Sat, 26 Oct 2013 18:58:57 GMT}
WARNING: Illegal string offset 'title' in /www/htdocs/.../zp-core/functions.php on line 463
sortByMultilingual called from sortByKey (functions.php [1276])
from favorites->getAlbums (favoritesHandler.php [192])
from printAddToFavorites (favoritesHandler.php [374])
from include (album.php [91])
from include (index.php [111])
from index.php [15]
{14991:Sat, 26 Oct 2013 18:59:05 GMT}
WARNING: Illegal string offset 'title' in /www/htdocs/.../zp-core/functions.php on line 463
sortByMultilingual called from sortByKey (functions.php [1276])
from favorites->getAlbums (favoritesHandler.php [192])
from printAddToFavorites (favoritesHandler.php [374])
from include (album.php [56])
from include (index.php [111])
from index.php [15]
{14991:Sat, 26 Oct 2013 18:59:05 GMT}
WARNING: Illegal string offset 'title' in /www/htdocs/.../zp-core/functions.php on line 463
sortByMultilingual called from sortByKey (functions.php [1276])
from favorites->getAlbums (favoritesHandler.php [192])
from printAddToFavorites (favoritesHandler.php [374])
from include (album.php [91])
from include (index.php [111])
from index.php [15]
`
It is actually now fixed in the support build. We would appreciate your trying that and confirming the fix.
The sorting did not give the correct sort at all. But the error would only occur on the Description and Title fields as those are multi-lingual fields and take a different path from the rest.
So maybe you were the only one using those fields and the favorites plugin. Still strange no one reported that the sort orders were wrong.