Can't select Tags in Admin Section...

Hi all, just a quick one - but how do you select the Tags tab within the main Admin screen?

`| overview | comments | upload | edit | tags | options | themes | plugins |`

When I click tags it just loads the overview screen...? Also, when I edit a gallery the tags box on the right is non-selectable (can't add any tags).

Anyone know what is going on?

Thanks, CR
«1

Comments

  • acrylian Administrator, Developer
    Please with this kind of problem report, always state the Zenphoto version and browser you are using. Otherwise we can't help. Thanks.
  • Hi, sorry about that - I am using zenphoto version 1.2 [2213].

    Thanks
  • Tags are defined on the TAGs tab. You assign them to albums and images on the edit pages for the album.
  • CR Member
    Quote, "Also, when I edit a gallery the tags box on the right is non-selectable (can't add any tags)"...

    They are greyed out so won't enable me to add any tags... However, my theme does not have the 'tags' function enabled in the code, but I would have thought I could have added these through the main Admin section for each image as you suggested.

    Do I need to have tags enabled in my theme for the section in the Admin edit images pages to work then?

    CR
  • Which box are you describing? The one on the album edit pages or one of the ones on the Tags tab? The only place you can create new tags is on the tag management page (the Tags tab.)
  • CR Member
    The one on the album edit pages as that is the only one I can see... As I explained above, the Tags tab just doesn't take me any where other than take me back to the overview screen..?

    The tags tab should take me to `zp-core/admin-tabs.php` or at least thats where the link points to. However, when O click it I just get sent to `zp-core/admin.php`.
  • Perhaps there is a problem in your install. Since zenphoto 1.2.1 is due out today I suggest when it is available you get it and install it. Otherwise you could download last night's nightly build which will be almost the same thing.
  • CR Member
    Ooh version 1.2.1 :) Off to view the update log :)
  • CR Member
    :( not been released yet... I'm on zenphoto version 1.2 [2213] at the moment. Any idea what time the new version will be out? Not that I wanna have a play with it or anything hehe :)
  • CR Member
    Upgrade done :) - now running on zenphoto version 1.2.1 [2635]

    Thanks guys, I will have a play and report back if still having the same problems with the tags... Now, to convert my theme to use all the new bits lol
  • CR Member
    All working fine with version 1.2.1 of zenphoto - thanks peeps ;)

    CR
  • "The one on the album edit pages as that is the only one I can see... As I explained above, the Tags tab just doesn't take me any where other than take me back to the overview screen..?

    The tags tab should take me to zp-core/admin-tabs.php or at least thats where the link points to. However, when O click it I just get sent to zp-core/admin.php."

    I am having this exact same problem, running ZenPhoto 1.2.4 (which I just successfully updated from 1.2.3). Running everything in default configuration -- default themes, etc. -- and everything else works, as far as I can tell. I had this same problem with 1.2.3, so I updated to 1.2.4, but there is no change.

    Please advise. Thanks.
  • I would add that this does not appear to be a browser-specific problem; this is happening in IE7, current version of Mac Firefox, and current version of Mac Safari.

    When I click on the "tags" tab, I can see it try to go to admin-tags.php, but then it gets redirected to /zp-core/admin.php?from=%2Fzp-core%2Fadmin-tags.php. Dunno if that helps.
  • Okay, I think I've tracked this down to this line in admin-tags.php:

    `if (!($_zp_loggedin & ADMIN_RIGHTS)) { // prevent nefarious access to this page.

    header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php?from=' . currentRelativeURL(__FILE__) );

    exit();

    }`

    I'm logged in as the primary administrator; I have all available rights, and I don't have any problems getting to any of the other tabs which are

    `if (!($_zp_loggedin & (ADMIN_RIGHTS | EDIT_RIGHTS))) { // prevent nefarious access to this page.

    header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php?from=' . currentRelativeURL(__FILE__) );

    exit();

    }`

    etc. So, is the software not recognizing that I have ADMIN_RIGHTS, but *does* recognize that I've got EDIT_RIGHTS, etc., so I'm able to access all of the other tabs? What do I have to do to get ADMIN_RIGHTS? And can my other users, who have all rights except for user admin rights, manage tags? Can I somehow set this by hand in the database?

    ???
  • I tried hacking the admin-tags.php file to use a conditional from a tab that works for me, but it had no effect. Then I took everything out of the conditional except for the logged-in test. Same result. All tabs are available to me except for the Tags tab. I'm testing in Safari, and am using the "Reset Safari" command between attempts, to clear all sessions/cookies/caches. *sigh* Continuing to try to figure it out. Really need to make this work.
  • Okay, I just updated to the most recent nightly build. Still having the problem.

    Am moving on to other tasks, because I am out of ideas. Still need a fix for this fairly urgently. What value should I be seeing in administrators.rights for the all-rights administrator? I've got 75614. Is that correct?

    Please advise. Thanks.
  • acrylian Administrator, Developer
    Sorry, I can't reproduce or ever had this problem on my installs. Did you check the righst on the files in the zp-core folder?
    Otherwise sbillard is the expert on this. He is away until next week and we soon enter the Easter days so you will sadly have to be a little patient.
  • All of the zp-core files are owned by root, group owned by apache, and are all 775. I really just can't imagine why this is happening, especially when I stripped the conditional down to simply being logged in. I might try taking the conditional out entirely, just to see what happens. It's not the way one would want to run, for security sake, but ARGH!

    Heh. Ah well. Waiting until next week isn't a problem. Have a good Easter. See you next week.
  • Okay, just as an interesting note, I commented out the conditional on admin-tags.php entirely:

    `/* if (!($_zp_loggedin & ADMIN_RIGHTS)) { // prevent nefarious access to this page.

    header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php?from=' . currentRelativeURL(__FILE__) );

    exit();

    } */`

    and lo, the tags tab works and I get to the tag management window, but then all of the other tabs disappear except for "options"!

    (When I click on that solitary options tab, I *do* go to the options window and get all of the tabs back like normal.)

    So, for now, we can manage our tags and finish setting up this gallery, and hopefully next week we can track down the oddity, eh?
  • Hi --

    Has anyone had a chance to look into this? We're functional, to a limited extent, here, but I'd rather not leave this wide open when we go live, and I want the people who are going to be using this software to be able to manage tags without having to come to me to toggle the security on and off every time. Any estimate on when we might expect to hear something from someone on it?
  • acrylian Administrator, Developer
    As said above I sorry I am not able to reproduce this problem or ever encountered it and our expert on this is currently still out of town (in some parts of the world there additionally were Easter holidays, you know...:-)).
  • The code you commented out can only effect the tags tab page. It has no relevance to any other tab appearing or not. The intent of the code is to prevent users without appropriate rights (in this case ADMIN) from changing the tags.

    The most likely cause of the tabs not showing up is that somehow the rights are getting lost. A tab will not show if the admin user does not have sufficient rights to access it.
  • Hi sb --

    Okay, the original problem, if you read upwards through my posts, was that I couldn't get access to the "tags" tab *at all*. If I clicked on it, I was routed back to the admin.php screen. (See above details about trying to track down what was happening.) I took the login/rights conditional out of admin-tags.php to simply allow my users *some* way of being able to access that tab, to be able to manage tags while setting up the gallery. But I don't want to run this way forever.

    The original problem is that for some reason the software is not recognizing login/rights for the tags tab, even though it appears to recognized login/rights for all of the other tabs.

    Any ideas?
  • The same test is done for showing the tab as for checking the validity of the page load, so, no, no idea of why it should work one place and not the other. As for the other tabs, the rights for using them may be less restrictive.
  • So, there's nothing more we can do? No investigation, no diagnostics, no suggestions for what I should look for? Because in my experience, computers really do *do* what we tell them to, so if this is happening, there's got to be a reason for it. Someone else has had a similar experience; *something* must be causing this. Am I just on my own?
  • And they always do the same thing given the same circumstances. So, there must be some difference in the circumstances of your installation from everyone elses. So, the investigation starts with what is unique with yours.

    Since this is happening only for you, you are kind of on your own. You can insert debugging code to display the values of `$_zp_loggedin` at the start of each tab script and see if and what differences there are.

    If you get a difference, then you can see if you can link it to a particular user (or users) If so, then you will need to investigate what is different there.
  • sjh Member
    Just to add a little weight to this thread, I'd like to chip in that I've been having the same problem as well.

    To add a little detail, when I am logged in, at .../zp-core/admin.php and then roll over the "Tags" tab, my browser tells me that I will be heading to .../zp-core/admin-tags.php but lo, when I click, I arrive here: ".../zp-core/admin.php?from=%2Fzp-core%2Fadmin-tags.php"

    I barely know my way around zenphoto so I don't feel like I can do a lot of debugging on my own, however, I know that encoded url seperators (%2F) will make Apache puke before running mod_rewrite, etc. etc.

    It's worth noting that the same problems have been described over (http://www.zenphoto.org/support/topic.php?id=5146) as well.

    - Running on in a MAMP environment.

    - Info from the admin page:

    Zenphoto version 1.2.4 [3716] (Official Build)
    Current gallery theme: default
    PHP version: 5.2.5
    PHP memory limit: 96M (Note: Your server might allocate less!)
    MySQL version: 5.0.41
    Database name: txp-clean
    Spam filter: none
    Captcha generator: zenphoto
    Active plugins:
    class-video v1.0.0
    filter-zenphoto_seo v1.0.0
    flowplayer v1.0.3
    google_maps v1.3
    image_album_statistics v1.0.7.1
    rating v1.0.1
    slideshow v1.0.6.6
    tag_suggest v1.0.0
    Active filters:
    seoFriendlyURL
    10: filter-zenphoto_seo.php => filterAccentedCharacters
  • acrylian Administrator, Developer
    I am also on MAMP and I can't reproduce that. Btw, the admin backend actually does not use mod_rewrite.
  • The symptom you are seeing is that when you visit the tabs page Zenphoto thinks you are not logged in. Thus it redirects you to the admin page with a record of which page you were trying to access. That is the source of the URL.

    So the problem is why does the login not stick. Most likely because cookies and/or sessions are not behaving correctly.
  • Hello group. I posted on this exact same problem regarding the Tags tab jumping to the Overview Page a few months ago. For me - Tags tab at top of Admin page is totally useless and non functioning in any form other than to jump me to Overview Page.

    At that time I was using version 1.2.3 and Firefox as my browser. Sbillard was kind enough to try and help with the problem, but it was never resolved, and LIFE took over and I forgot to follow-up on fixing it. (My fault)

    I upgraded to version 1.2.4 last night and ran Setup.php and the problem still exists. I am not a tekkie type person in this area, but I have decided to live with this. The software as a whole is GREAT and so is sbillard. If the problem gets fixed in a later release- good and if it doesn't I am still Ok with that.
Sign In or Register to comment.