We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54264
    • 1 Posts
    I am facing an issue after integration of site editor plugin. When i hit edit icon in front end it shows Access Denied message in console filename connector.php. Help me in debugging this error.
      • 17301
      • 932 Posts
      Not familiar with site editor plugin, but it sounds like a permissions issue. Can you upload the image to somewhere like imgur and paste it here? Image attachments aren't working in the forum at the moment.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 46580
        • 167 Posts
        Quote from: sachinsharma at May 16, 2018, 12:58 AM
        I am facing an issue after integration of site editor plugin. When i hit edit icon in front end it shows Access Denied message in console filename connector.php. Help me in debugging this error.

        Hello

        Are you logged in back-end ?

        I'm just testing the extra with MODX 2.6.1-pl. This 'problem' occurs when I'm not logged in back-end or logged and in another context than 'web'.

        To work in multi-context I made some modifications (see siteeditor.js, the 'web' context is passed as param).

        I just added:
        p = JSON.parse(prefs);//required in template header: <script>var prefs='{"ctx":"[[*context_key]]"}';</script>
        var xctx = p.ctx;
        


        before:
        this.ajax = new Ext.data.Connection({


        here is the code:
        this.ajax = new Ext.data.Connection({
           url: this.config.connectorUrl,
           disableCaching: true,
           extraParams: {
               //ctx: 'web'
               ctx: xctx
           }
        });
        
        [ed. note: johnxx last edited this post 8 years, 4 months ago.]
          MODX lover
          -
          Développeur MODX / Webdesign / Solutions web