Hi.
While creating categories and saving I get this message :
`
Notice: unserialize() [function.unserialize]: Error at offset 5 of 78 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
`
I use ZP nightly version 3048.
More :
when I come back to the zenpage admin panel in the articles sections I get this :
Strict Standards: Only variables should be passed by reference in /home/user/zenphoto/zp-core/plugins/zenpage/zenpage-admin-functions.php on line 1186
then when I click on "modify this article", the permalink isn't displayed
then if I click on "see the article" I get an error :
Zenphoto Error
MySQL Query ( SELECT COUNT(*) FROM zp_comments WHERE type='news' AND inmoderation=0 AND private=0 AND ownerid= ) failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I use Zenphoto in a multilingual way, with url rewriting on.
My PHP Version is 5.2.1
Mysql is 4.1.22
If you have any idea...
Thanks for reporting. Regarding the strict standards notice please try the Zenpage svn, there have been some corrections.
I will try to find out what could cause the first two notices you reported (although I did not see them myself yet at all).
Regarding the Zenphoto error with MySQL: I got that once very suddenly and was not able to reproduce since then. I also never encountered not being able to select categories neither on my local MAMP nor on my site. But I think there was an report before so there is probably something. Also the permalink display never dissapeared...
I will try to find out though.
Hi,
I've upgraded to the last zenphoto nightly [3055] and to zenpage trunk r3056.
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
Notice: unserialize() [function.unserialize]: Error at offset 5 of 112 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
`
I hope that explanation makes sense to you...
Hi.
Notice: Undefined variable: selected in /home/user/zenphoto/zp-core/plugins/zenpage/zenpage-admin-functions.php on line 533Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
Notice: unserialize() [function.unserialize]: Error at offset 5 of 112 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
`
and the page reloads with a blank fieldset, even if the article is stored in the db.
2.Fine, but if I don't fill the permalink field (which is the default way Zenpage works, isn't it ?) I can't get an URL for my article and clicking "see article" in the admin gives me an error :
Zenphoto Error MySQL Query ( SELECT COUNT(*) FROM [code]zp_comments[/code] WHERE [code]type[/code]='news' AND [code]inmoderation[/code]=0 AND [code]private[/code]=0 AND [code]ownerid[/code]= ) failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I use zenphoto version 1.2.2 [3055] | zenpage version 1.0.1 r3056
My PHP Version is 5.2.1
Mysql is 4.1.22
More :
I've just noticed something :
when I create a new category without using the multilingual mode but keeping only one language for its title I have no error message while saving and I can select this category for one of my article and it is stored and working fine even if I still get that :
`
Notice: unserialize() [function.unserialize]: Error at offset 5 of 112 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
Notice: unserialize() [function.unserialize]: Error at offset 5 of 112 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
`
As you must have noticed, I'm not an expert at all but as far as I know, it seems that there is an issue with Zenpage and multilingual mode...
Just to add to sbillard's post. I will investigate if I can reproduce it in mutlilingual mode. The titlelink is of course not multilingual so that should not be affected by any error in that. The only thing I could think of is that somehow in multilingual mode the titlelink does not get any title to process. I will investigate that, too.
[i]the page reloads with a blank fieldset, even if the article is stored in the db.[/i]
Yes, that is actually the coded behaviour. I made it that way because you can so easily add several pages/articles after another without having to click anywhere else. I thought that is a good idea since I sometimes want to do that... But probably I will change that behaviour in the next version so that you are taken to the edit page instead and have a button for "new page" there, too.
"I can reproduce the titlelink issue in multilingual mode (btw it would be good that you had mentioned that from the beginning....)"
http://www.zenphoto.org/support/topic.php?id=4192
Of course, I do... but most of the time I prefer to be blamed for something I've really done.
Anyway, I'll try to be clearer.
I've just installed zenphoto version 1.2.2 [3077] and zenpage version 1.0.1 [3077] and have done some tests.
For my tests, I removed from the "locale" directory every languages but the english and french ones.
CATEGORIES
IT DOESN'T WORK : the category is stored in the db but will catch every news even the ones which don't belong to it. Besides, when you click on 'not multilingual category' on the public website, it is just a link to www.website.com/news/category/ which displays no news at all.
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
literature.
and that briefly appears on a green background :
Category a:2:{s:5:"fr_FR";s:22:"catégorie multilingue";s:5:"en_US";s:21:"multilingual category";} added
BUT IT WORKS FINE
ARTICLES
3. if I create a new article (named 'not multilingual article', content : 'not multilingual article') WITHOUT USING the multilingual fields and save, I get this message :
Notice: unserialize() [function.unserialize]: Error at offset 0 of 24 bytes in /home/user/zenphoto/zp-core/plugins/zenpage/zenpage-admin-functions.php on line 382
IT DOESN'T WORK : the article is saved but no titlelink for the url
Notice: unserialize() [function.unserialize]: Error at offset 5 of 93 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
BUT IT WORKS FINE
ARTICLES AND CATEGORIES
5. if I set that the 'multilingual article' belongs to the 'multilingual category' I get theses messages :
Notice: unserialize() [function.unserialize]: Error at offset 5 of 93 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
BUT EVERYTHING WORKS FINE
Notice: unserialize() [function.unserialize]: Error at offset 5 of 93 bytes in /home/user/zenphoto/zp-core/functions-i18n.php on line 389
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/user/zenphoto/zp-core/functions-i18n.php on line 401
IT DOESN'T WORK : the category checkbox isn't check, the category titlelink links to www.website.com/news/category/ which displays no news at all.
if I set that the 'not multilingual article' belongs to the 'not multilingual category' I have no error messages displayed but IT DOESN'T WORK : the category checkbox isn't check, the category titlelink links to www.website.com/news/category/ which displays no news at all.
if I set that the 'not multilingual article' belongs to the 'multilingual category' I have no error messages displayed and IT WORKS FINE : the category checkbox is checked.
Oh my god, this text must be an headache to read.
Just to clarify I did not blame you for anything (and again here goes the the phenomen of missunderstanding because of written text I guess) and I appreciate every report. I of course want Zenpage to work.
Anyway, that is a school book example of a report, even if it indeed causes headache...:-) But the headache is actually because I did not encounter any of the issues, especially after the titlelink fix I spend the half weekend on. The only issues I saw were the two referring to functions-l18n.php that you mentioned, too.
I actually believe that sbillard fixed the unserialize error in the zenpage-admin-functions but maybe that is another one.
I have the suspicion that some of your errors with the categories might be related to mixing mutlilingual ones and non multlingual ones since non multilingual titles are stored as pure text where multilingual ones are stored as serialized string. But actually the titlelink/catlink and the id are used for reference and not the title...
Maybe that is a bug in Zenpage or maybe it is one in the l18n functions or a combination... I have no idea yet.
I will try to do what you did and maybe I can reproduce anything.... I'll let you know.
Fine. Thank you for your time and for your answer.
I forgot to mention one small thing which isn't about Zenpage :
This upgrade (to zenphoto 1.2.2 [3077]) displayed a warning on the upgrade page about the flvplayer.swf (if I remember exactly) which is not in the .zip (anymore ?).
Fixed in the SVN. However, I believe there are still issues. It seems possible to make multiple category entries for the same strings. Also, I am not sure how the multi-lilngual aspect is supposed to work. Right now it will show the saved message for your local language string. (Same as the string that is displayed in the category list.) This seemed better to me that to show the unserialized array of all the different translations.
Acrylian will have to review what I have done.