Pages (2): 1 2   
Member
Member
flu   12-12-2008, 22:36
#1

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.

Member
Member
flu   12-12-2008, 22:54
#2

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...

Member
Member
flu   12-12-2008, 22:58
#3

Last : in the admin panel, I can't select any of my categories for my articles. My choice isn't stored.

Administrator
Administrator
acrylian   13-12-2008, 11:21
#4

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.

Member
Member
flu   13-12-2008, 20:27
#5

Hi,
I've upgraded to the last zenphoto nightly [3055] and to zenpage trunk r3056.

  1. I still can't select a category for an article, it isn't stored, so a new article is counted in every category but you can reach it only through the "all news" category.
  2. the permalink doesn't appear automaticaly even if "permalink on" is activated
  3. While saving I get these errors :
    `
    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
`

Administrator
Administrator
acrylian   13-12-2008, 21:10
#6
  1. I am sorry, I can't reproduce that.
  2. First let me explain the permalink checkbox. That is only so that the titlelink does not change if you edit the title of your page/article. If permalink is not checked the titlelink would reflect every change made to the title.
    If the titlelink is empty it will stay empty. You need to check "edit titlelink" and copy your titlte to the titlelink field in that case to get one.
    There is a problem with not latin/european characters like Cyrillic or Chinese that the function to create the seo friendly link clears totally out. I don't know how to make these chars seofriendly since the function does not understand those chars and neither do I. But since you are French that should actually work.... Anyway, I will add a note for that to the "create" page and also a field for the titlelink to enter manually from the beginning optionally.

I hope that explanation makes sense to you...

  1. I still don't see these notice and warning anywhere...
Member
Member
flu   13-12-2008, 22:27
#7

Hi.

  1. Yes I know, but don't you have any idea about what could be involved in this issue ?
    This is the second time I get this problem on two websites using ZP.
    Did you try that with multilingual mode activated ?
    More : when I create an article, the categories checkboxes have this message just above :
    Notice: Undefined variable: selected in /home/user/zenphoto/zp-core/plugins/zenpage/zenpage-admin-functions.php on line 533
    Anyway, when I save the new article I get these messages :
    `
    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
`
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

Member
Member
flu   13-12-2008, 22:45
#8

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...

Member
Member
sbillard   13-12-2008, 23:20
#9

I have fixed the undefined variable error. The serialize error is complaining about something in one of the multi-lingual fields. Maybe it is sensitive to what is there. Could you provide us with the text of your article and categories?

Administrator
Administrator
acrylian   14-12-2008, 10:17
#10

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.

Administrator
Administrator
acrylian   14-12-2008, 10:55
#11

An update: I can reproduce the titlelink issue in multilingual mode (btw it would be good that you had mentioned that from the beginning....). And the good news is I have an idea why.

But I can't reproduce the category issue yet.

Administrator
Administrator
acrylian   14-12-2008, 12:15
#12

Fix for the titlelink issue is in the Zenpage svn. It's not perfect yet, there are still some php notices but it seems to work for. Please give it a try.

Member
Member
flu   15-12-2008, 17:56
#13

"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

Administrator
Administrator
acrylian   15-12-2008, 19:29
#14

Ok, sorry, you did.. But you surely don't mind that I can't remember all threads and posts any time....:-)

Member
Member
flu   15-12-2008, 20:12
#15

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

  1. If I create a new category (named 'not multilingual category') WITHOUT USING the multilingual field I get this message :
    Notice: unserialize() [function.unserialize]: Error at offset 0 of 25 bytes in /home/user/zenphoto/zp-core/plugins/zenpage/zenpage-admin-functions.php on line 805

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.

  1. If I create a new category (named 'multilingual category' and 'catégorie multilingue') USING the multilingual field I get this message :
    Notice: unserialize() [function.unserialize]: Error at offset 5 of 97 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
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

  1. if I create a new article (named 'multilingual article' and 'article multilingue' with the same contents) USING the multilingual fields and save, I get this message :

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

  1. if I set that the 'multilingual article' belongs to the 'not multilingual category' I get these 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

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.

  1. 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.

  2. 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.

Administrator
Administrator
acrylian   15-12-2008, 21:24
#16

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.

Member
Member
sbillard   15-12-2008, 22:26
#17

Ok, I have just reproduced the unserialize issue.

Member
Member
flu   15-12-2008, 22:31
#18

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 ?).

Member
Member
flu   15-12-2008, 22:35
#19

Woaw ! It must be christmas time !

Member
Member
sbillard   15-12-2008, 23:30
#20

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.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.