The area you are attempting to access is forbidden when launching image gallery

Last post 07-19-2010, 12:12 PM by Eric. 8 replies.
Sort Posts: Previous Next
  •  07-15-2009, 7:20 AM 53995

    The area you are attempting to access is forbidden when launching image gallery

    On this site I get the message "The area you are attempting to access is forbidden" whenever I click on any of the buttons in the group with image gallery, image insert, pdf...
     
    I have tried to a full upload of the default files, and using the default.php example file, still get the message. I realize it's some anomoly with this server but is there a work around??
     
    example where it errors out:  http://wellbalancedliving.org/CuteEditor_Files/default.php
     
    Bernie
     
     

    MAKO Web Sales
    Sarasota's Only Certified PayPal Developer
  •  07-15-2009, 4:11 PM 54013 in reply to 53995

    Re: The area you are attempting to access is forbidden when launching image gallery

    bcaa8ra,
     
    Have you modified Cute Editor code or have you disabled the sesssion of this server?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-14-2009, 4:39 PM 54701 in reply to 53995

    Re: The area you are attempting to access is forbidden when launching image gallery

    I ran into the same issue.  For me it was a matter of I was changing the session name using the session_name PHP function.  What I did to fix it was to include the same session_name function call in include_CuteEditor.php and Include_Secutiry.php file just before the session_start function.  What I belive is happening is when you build the CuteEditor via the class call it is registering a session variable in the name space I specified (using the session_name function) but when the CuteEditor PHP code is ran it is not able to find the session variable it registered because it is looking in the wrong name space.  By adding session_name to those two files it corrects this.
  •  09-16-2009, 4:30 AM 55674 in reply to 54701

    Re: The area you are attempting to access is forbidden when launching image gallery

    I had the same problem and can confirm that the option above works. Both on my local laptop (with Apache) and on the webserver at the hosting company I got the message access is forbidden. In the script I use to make the editor I start a session with PHP. I have added this session name to the two files above and it works.
     
    Some extra instructions, to find everything quickly:

    /CuteEditor_Files/include_CuteEditor.php
    1. <?php  
    2. error_reporting(E_ALL ^ E_NOTICE);  
    3. session_name("YOUR SESSION NAME");  
    4. session_start();  
    5. class CuteEditor {  
    6. ... 
    These are the first 5 lines of the script. I have added line 3 where I replaced "YOUR SESSION NAME" of course by the session name I used for my own sessions.
     
    /CuteEditor_Files/Dialogs/Include_Security.php
    1. <?php  
    2. session_name("YOUR SESSION NAME");  
    3. session_start();  
    4. error_reporting(E_ALL ^ E_NOTICE);  
    5. ...
    And here I have added line 2.
     
    This fixed my problem, hope it's useful info.
  •  09-16-2009, 6:57 AM 55680 in reply to 55674

    Re: The area you are attempting to access is forbidden when launching image gallery

    Thanks,
    If I run into the problem again that will come in handy. I actually moved the site to a different server and the problem went away. It was a new client that had hosting already. I don't know what kind of cheesy server setup it was but I even had to do work arounds for a MySQL connection.
     
    So I am adding that to my advice for anyone with the issue. Change hosts.

    MAKO Web Sales
    Sarasota's Only Certified PayPal Developer
  •  07-19-2010, 6:56 AM 62568 in reply to 55680

    Re: The area you are attempting to access is forbidden when launching image gallery

    Hello all,
     
    did anybody found why session is not there in Include_Security.php for CESecurity???
     
    Admin Please guide ... So many people are reporting this issue and it should qualify for a bug status now.
     
    Please help.
    Regards,
    Atta
  •  07-19-2010, 8:59 AM 62570 in reply to 62568

    Re: The area you are attempting to access is forbidden when launching image gallery

    I solved the problem by making sure on both instances I use the same "ImageGalleryPath".
     
     
     
    i.e.
     
    $editor1->ImageGalleryPath = "/Uploads";
     
     ...
     ...
     
     
     
    $editor2->ImageGalleryPath = "/Uploads";
     
    Hope this helps...
     
    Bernie
     

    MAKO Web Sales
    Sarasota's Only Certified PayPal Developer
  •  07-19-2010, 10:43 AM 62577 in reply to 62570

    Re: The area you are attempting to access is forbidden when launching image gallery

    Bernie
    I have single editor on page and it does not catch sessions in include_security.php page.
     
    Atta
  •  07-19-2010, 12:12 PM 62578 in reply to 62577

    Re: The area you are attempting to access is forbidden when launching image gallery

    This message is thrown from "cuteeditor_files/Dialogs/browse_Img_gallery.php",  you can find the following code:
     
    if(str_contains($current_Path, $ImageGalleryPath))
     {
     }
     else
     {
       print "The area you are attempting to access is forbidden";
       exit();
     }
     
    Please check what's the value of "$current_Path" and "$ImageGalleryPath". You can also send your ftp access to eric@cutesoft.net, we can check this issue for you.
     
    Regards,
    Eric
View as RSS news feed in XML