Tags cliçckable or not? And a seach can fail, even if the tag exist.

I 'm using the version 1.2.9, firefox, and did my own theme.
When I 'm logged off, all the images' tags are clickable, but not when I 'm logged on (clicking a tag make a seearch on it). And I would like having the opposite situation (someone who 's just a "visitor" don' t have to have more possibilities than someone subscribed).
And when I click on a tag, sometimes I have a photos' selection having this tag, and sometimes, the answer is " sorry, refine your search", depending on the tag. I have also the same problem with the search fonction. Even if the tag exist on different photos, these could not be found.

Comments

  • First of all, existence of a tag is not the same as having some target tagged with that tag. If you are getting "not found" when you do a tag search it is beause there was not any matches on the tag.

    Second, 1.2.9 is a pretty old release. We just today announced the release of 1.4.0. So any problems you have may already have been solved.

    Third, the state when you are logged in allows you to edit the tags. That is exclusive of being able to click on them. But the good news is that this behavior is disabled by default on the 1.4.0 release because it is also a terrible security risk.

    So, bottom line, upgrade to the current version.
  • Ok,
    first I downloaded the new version and tried to install it on my local wamp server. During the installation process I had a warning (Localization of Zenphoto currently requires native PHP gettext() support ) and I don't knw if it comes from my server or zenphoto. So when I tried to work with the administration page I had an "error in your SQL syntax".
    So if you can give me an idea to install it properly on a wamp server, it would be a good think (I like having the sites I 'm working on, on a test machine.)

    I fact, about the tags, I have 3 permission levels: "visitor", "registered user", just to access to defined albums with keyword and no other right than "to see", and "administrator" with full rights. A simple visitor, on non keyword access albums, have links on the tags under the pictures, but when I' m logged on as registered user, I don't have the links and can' t change them. And my question is why a simple visitor can use these tags and not a registered user?

    Thanks,

    Eric
  • acrylian Administrator, Developer
    warning (Localization of Zenphoto currently requires native PHP gettext() support ) and I don't knw if it comes from my server or zenphoto.
    PHP gettext must be installed on your server if you need localization features. Otherwise its a warnung so you can ignore it.
    So when I tried to work with the administration page I had an "error in your SQL syntax".
    If you tell us what error exactly this will not help.
    I don't have the links and can' t change them. And my question is why a simple visitor can use these tags and not a registered user?
    This is because there is an option for inline on the fly editing of text (and other stuff) via Ajax by just clicking on them if logged in. This funtion is disabled by default for security reasons since 1.3.x. But the display is already setup for this and having links would make this editing impossible.
  • All the set up seems ok.
    Using the admin page, I choose the Default theme, and If I click on the link "set theme options" and want to save them, I have that: "Zenphoto encountered an error
    MySQL Query ( SELECT `name`, `value`, `id` FROM `zp_options` WHERE `name`='Allow_search' AND `ownerid`= AND `theme`='default' ) failed. MySQL returned the 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 'AND `theme`='default'' at line 1

    Backtrace:

    -> query (functions-db-MySQL.php [90])
    -> query_single_row (functions.php [1937])
    -> setThemeOption (admin-functions.php [857])
    -> processCustomOptionSave (admin-options.php [414])

    But, if, fore choosing the options of a theme I go to the page by "options" and "theme", it is saved. I tried with different themes and it seems that the problem is general.
    And on the gallery page, on the default theme, I have this:

    Warning: get_class() expects parameter 1 to be object, string given in D:\wamp\www\ombres-et-lumieres-2.biz\zp-core\functions.php on line 1653

    Fatal error: Call to a member function get() on a non-object in D:\wamp\www\ombres-et-lumieres-2.biz\zp-core\template-functions.php on line 1560
  • Your server is probably running PHP >5.3.0, in which case, `get_class()` will raise a warning (see http://www.php.net/manual/en/function.get-class.php#93597). Because of this, `isImagePhoto()` will fail and lead to the fatal error below it.

    I'm not sure if the best way to fix this is to simply suppress the warning or otherwise, so I'll leave that to sbillard or acrylian.
  • To be honest, none of these errors make any sense from reading code the locations of the failures. In addition, I am not able to reproduce them.

    Zenphoto runs just fine on a default WAMP installation. You can fix the gettext() issue by going to your WAMP control panel, selecting PHP, then selecting PHP extensions. Just click on the one that says php_gettext.

    But that certainly is not your problem. Basically, things are happening that "can't" happen. The first error is that the "ID" of the "album' is 'empty' where it must have a value of 0 given what you were doing.

    The second two has something to do, I suspect, with generating thumbnails. The thumbnail appears to not be an image, thus the two errors. But of course, that in not "possible".

    Those are the only errors you have seen? I really would have expected some others as these certainly would not be root causes.
  • acrylian Administrator, Developer
    I run PHP 5.3.2 on my local MAMP server for months now and I can't remember to have seen this one.
Sign In or Register to comment.