Fork me on GitHub

upgrade to zikula 1.1.2, weblinks no longer allows users to add links  Bottom

  • Hello

    Upgraded my zikula to 1.1.2, and now weblinks will not allow registered users to add links.

    When they try to add the link, a page comes up with this:

    Sorry! You are not a registered user or you have not logged-in.
    If you were registered, you could contribute links to this web site.
    Becoming a registered user is a quick and easy process.
    Why is registration required for access to certain features?
    So that you are offered only the highest-quality content,
    each item is individually reviewed and approved.
    The site editor aims to offer useful information only.
    Register for a new user account

    (also, where would I find that text to edit?)

    I tried allowing all users to add links in the configuration, but when they try they get this:

    Sorry! No authorization to access this module.
  • as a possible fix, how would i make the weblinks module permissions to allow unregistered users access?
  • mmhh that is weird. Did you try to log out en log in again, or clean de sessions table ?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • tried relogging in, tried other user accounts...

    how do i clean the sessions table?

    Noel
  • I guess that's a matter of the Web_Links permission schema....
    I remember that it requires Add access, I'm not sure... but try to log a ticket in the weblinks tracker. The module adopter may be able to solve that icon_wink

    BTW, you need to register an account and log in the project to open a new ticket.
    And check the already closed tickets to see if there's already an explanation....

    --
    - Mateo T. -
    Mis principios... son mis fines
  • This might be a stupid question, but is there an easy way to DOWNGRADE to 1.1.1, where WEB LINKS worked fine?

    I really want to have weblinks on my site, and I only upgraded for the heck of it...

    I see there is a file in the downloads that lists everything that was changed/added/deleted...
    can I take that list and go through each file and replace the changed ones with the older versions?

    Or, could you please tell me what I could put in for the permissions for the USERS and the Weblinks module?

    I tried this:

    Users Web_Links .* Add

    I'm not really clear on the whole permissions thing either...what does :: mean? what does .* mean? I couldn't find a clear explaination of permissions on the site at all.

    Thanks

    Noel
  • well, even if I really don't understand most of this stuff, I guess I'm just determined enough to somehow figure out the solution.

    This other forum post relating to this problem http://community.zikula.org/module-Forum-viewtopic-topic-56306.htm
    told the poster to download the latest version of userapi.php from the SVN and replace it in the weblinks module folder.
    I did that, and it didn't work.

    So i decided to look at the source of userapi.php

    found this line:

    if (!SecurityUtil::checkPermission('Web_Links::', '::', ACCESS_READ)) {

    So i then tried adding this permission

    Users Web_Links:: :: Read


    Still got the error message...but Mateo mentioned about the ADD permission, and so I put
    Users Web_Links:: :: Add

    and VOILA! Registered users can now add links.

    yeah for me!
  • Hehehehe, nice that now works icon_cool

    Quote

    I'm not really clear on the whole permissions thing either...what does :: mean? what does .* mean? I couldn't find a clear explaination of permissions on the site at all.
    Well, permissions are a little geek focused icon_razz the power behind them is unknown, you'll get it if you know how to use patterns, but a simple explanation:

    If I'm not wrong, :: does part of the left:center:right "component theory"... it's a flexible way to control contexts and specific instances. And that's why "Web_links" didn't work, the permission system evaluates the three components. You can find how the module uses it checking the pnversion.php permission schema, or just click on the Component/Instance titles of your permissions list, to open a popup with the registered schemas.

    In the other hand, .* is equivalent to ::, that means "All" icon_wink

    Greetings Noel

    --
    - Mateo T. -
    Mis principios... son mis fines
  • I was the original poster of http://communiwayty.zikula.org/module-Forum-viewtopic-topic-56306.htm Is there any way for you to send me your userapi.php that was modified? I would be interested in having the weblinks module work with registered users. I was hoping the new Zikula version would have had this fix. Where would I also put the userapi.php file?

    I make extensive use of the weblinks module on my site. You can see it here: http://www.EarlyMusicNews.org

    I'm just about to upgrade to Zikula 1.1.2.

    Thanks for the help.

    Marc



    edited by: marc@marcpare.com, datetimebrief
  • Just to add a little more clarity to the fix:

    1. Login to your site as Admin
    2. Go to the permissions module
    3. Add a permission with the following and filling in the boxes from left to right:
    Users Web_Links:: :: Add
    4. Save the permission
    4. Test the results with a user account.

    *** Note that the placement of this permission may make a difference in how your user accounts work. Place this new permission above or below another "User" permission that may already show in your permissions list. ***

    Marc.

This list is based on users active over the last 60 minutes.