ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

help needed with problem You are not authorized to acces this page and SAEF

January 09, 2011 7:00am

Subscribe [6]
  • #1 / Jan 09, 2011 7:00am

    atelier2

    181 posts

    Hi,

    Me again, sorry. I’m a bit struggling here, and got stuck. The build I’m working on right now is not the easiest one.

    I have a simulair issue as here: http://ellislab.com/forums/viewthread/177609/

    It’s the SAEF. I cannot upload images, getting a warning:

    You are not authorized to access this page

    The membergroup does have access to CP in the pref’s. I even tried making a membergroup same as super-admins, but even then same result. Only me as super-admin can upload images trhrough the SAEF

    settings for sessions:

    Control Panel Session Type cookies and session ID
    User Session Type Type cookies and session ID

    Changes there did not help.

    The link to the file upload is like this:

    <a href="http://www.mysite.nl/renamedsystem/index.php?S=97263974697263492467fakecodec&C=publish&M=file_upload_form&field_group=4&Z=1">http://www.mysite.nl/renamedsystem/index.php?S=97263974697263492467fakecodec&C=publish&M=file_upload_form&field_group=4&Z=1</a>


    but I get a log_in window, not the file upload On several other builds I never had this issue.

    The prefs for file upload to the di is switched on for this group.

    I must deliver today to the client….....

    Thanks for looking at this

  • #2 / Jan 10, 2011 8:31am

    Sue Crocker

    26054 posts

    Hi, atelier2.

    Does the member group in question have access to the file upload? If you made the member group after you made the file upload group, your new member group doesn’t automatically have access to the new file upload area.

    Can you double check?

  • #3 / Jan 10, 2011 11:17am

    atelier2

    181 posts

    Hi Sue

    Yes, I checked and double checked that.

  • #4 / Jan 10, 2011 4:02pm

    Ingmar

    29245 posts

    Does uploading through the CP work? What version and build are you using?

  • #5 / Jan 10, 2011 4:35pm

    atelier2

    181 posts

    Yes, uploading through the CP does work. Version ExpressionEngine v 1.7.0 build Build:  20101018

    Uploading through my SAEF works also, as long I as superadmin is logged in. All the others, EVEN a membergroup that is partly made superadmin get the log-in window again (in stead of the file upload window).

    Something more, and I think this is related. There is a cache problem.

    Another page should only show entrees made by the logged-in user. I use the CURRENT_USER parameter for that.

    It works. Only only once. Because the next user that logs in on the same page while the previous did log out, gets data from the previous logged-on user.

    I set template cache to no
    I even added a parameter to the entree tag cache=no
    I checked and double checked this. (When uploading new content my cache empties, and the template reacts immediately with the right data. So the code in the template is good. I’m sure this is some kind of a cookie problem. And I’m stuck after several hours testing.

  • #6 / Jan 11, 2011 8:07am

    Sue Crocker

    26054 posts

    Atelier2, if you use the control panel to put in entries, can these users do that?

  • #7 / Jan 11, 2011 11:16am

    atelier2

    181 posts

    Yes they can.
    The SAEF works well for logged in users to upload content. Just the file-upload does not work. And I have a problem in one template where data from other users is mixed with the CURRENT_USER. I suspect these two errors do have a common ground.

    I checked that template, to my opinion the code is right.
    The content gets updated correctly if I (as superadmin logged in throough annother browser) change the content. I checked that thorougly.

    Now, 2cents are at this particulair template is too complicated? There are 7 weblogs in that template that must show entrees from the CURRENT_USER. The CP shows this content well if I log in as one of the users (=editors of this site)

    Maybe the only 32 MB memory allocated to PHP on the server where this runs has something tot do with it?

    I am travelling now, but as soon as I can work again I try to tear apart the setup (design) of the site, and split this (monster?) template into several pieces.

    What do you think, should I try this?

    Thanks,  I appreciate your help very much.

  • #8 / Jan 12, 2011 3:48am

    John Henry Donovan

    12339 posts

    atelier2,

    What do you think, should I try this?

    Yes reduction of templates is always something we would recommend and usually shakes out anything untoward in them.

    Let us know how you get on. I will keep this thread open in the meantime

  • #9 / Jan 20, 2011 8:53pm

    atelier2

    181 posts

    OK, back again.
    This is my sitution right now:


    1) I have rebuild the site from scratch, local build.
    2) There is one usergroup, editors, which has access to controlpanel, can upload images.
    3) I made a SAEF, with file upload.

    If an editor logs in through the CP, he can add content and upload images.
    If an editor uses the SAEF, he can add content, but cannot use the file upload. In the file-upload window there comes a login field with username and password.
    If the editor fills in the login form, he does gets into the CP. This situation is not what I want, let me point that out.

    The link to the fileupload is this:

    <a href="http://localhost:8888/testsite/system/index.php?S=ba4a6ed282e132f5c5c02020dd8274cc91e21e05&C=publish&M=file_upload_form&field_group=3&Z=1">http://localhost:8888/testsite/system/index.php?S=ba4a6ed282e132f5c5c02020dd8274cc91e21e05&C=publish&M=file_upload_form&field_group=3&Z=1</a>

    What do you want me to do in order to investigate why this happens?

    I’ve made several other sites, all with the SAEF, all with file upload, and they all work. I did not update these builds to 1.7.0 and I intend not to do so because of the current problems. I need to deliver this site to my client and wait desperately for an answer from you.

    Thank you very much for looking at this situation.

  • #10 / Jan 21, 2011 2:45pm

    Barry Cogan

    291 posts

    Hi Atelier,

    I am looking into replicating your problem. I will get back to you once I have done some testing.

  • #11 / Jan 21, 2011 6:18pm

    Barry Cogan

    291 posts

    Hi Atelier,

    To get this working you need to allow the group access to the upload directory.

    You can do this by going the “Admin” tab.
    Click on “Weblog Administration”.
    Click on “File Upload Preferences”.
    Click on “Edit” for the directory you wish your editors to upload to.
    Check and make sure that the editors member group has yes radio button selected for “Can upload files”.

    This should fix your problem.

    Best regards,
    Barry

  • #12 / Jan 21, 2011 10:31pm

    atelier2

    181 posts

    Hi Barry

    I did set there prefs from the beginning to ‘yes’

    Editors can upload to the main upload directory from the CP, but not from the SAEF.

    If I use the SAEF as superadmin, I cannot either upload images.


    So, the problem is somewhere else, but I’m stuck here.

  • #13 / Jan 23, 2011 4:41pm

    Greg Salt

    3988 posts

    Hi atelier2,

    In order for your users to upload files you also need to give them Admin area access in the permissions for their member group at Admin > Members and Groups > Member Groups > Edit Member Group then Control Panel Area Access.

    Cheers

    Greg

  • #14 / Jan 23, 2011 8:56pm

    atelier2

    181 posts

    Hi Greg

    Thanks

    This group has access to CP. I even made it acces to admin page. No change. Groupmembers can still NOT upload files throught the SAEF.

    There is something very strange here going on.

  • #15 / Jan 24, 2011 9:15am

    atelier2

    181 posts

    I discovered something interesting, that maybe shines a light on this problem.

    I logged in an editor-
    But in stead of logging in through my stand-alone log-in form, which redirects to a special landingpage, I logged in as editor right into the CP. And FROM THERE to this landing page.

    And NOW I could (as editor) upload my file.

    What does this mean? Is a cookie not read if i go directly to the landingpage without visiting the CP? I do NOT want my editors to visit the CP.

    Is something wrong with my code?

    I use

    {exp:member:login_form return="editors/editor"}

    rather straight out of the box.

    Thanks for looking at this again, I do hope it can be solved soon.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases