Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms and Website builder not working: You do not have access to the requested area/action #46

Open
stepcellwolf opened this issue Jul 26, 2023 · 18 comments

Comments

@stepcellwolf
Copy link

Describe the bug

I'm not able to create fields in a forms and building a website in a builder - drag and drop or select any type does not work. When I try to create a form I get the following message: You do not have access to the requested area/action
I have reported this issue on March on mautic forum but no answer yet: You do not have access to the requested area/action

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.3 (stable)
  • I have access to my server: Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch:
  • If upgrading, current package version: sudo yunohost app upgrade mautic -u https://github.com/YunoHost-Apps/mautic_ynh/tree/testing --debug
  • Also with stable version does not work same issue

Steps to reproduce

  • This issue can be reproduced in in Safari, Chrome and Firefox
    1. Go to Components
    2. Click on Forms
    3. Click on any Select - both same issue new campaign or standalone form
    4. Add name on the campaign form
    5. Click on Fields
    6. Try to select any add a new field dropdown
    7. Pop up shows that You do not have access to the requested are/actions

Expected behavior

I tried to troubleshoot it in several ways:

  1. Create a new admin or only form access role right, the issue is the same
  2. Disable yunohost firewall - via command no results
  3. Discuss this issue via Slack mautic channel in support and no solution
  4. Re-install and install several times still same issue
  5. Change permission, still same.
  6. Also tried all the steps in Troubleshooting | Mautic but nothing helped out.
  7. Tried via docker installation, upgrading and everything still the same issue.
    Even changed the php version to 7.4 still the same.

Logs

These errors are showing in the log:
/var/www/mautic/var/logs/mautic_prod-2023-03-17.php
[2023-03-17 10:52:57] mautic.WARNING: Grapesjs: no template in query {“hostname”:“[host]”,“pid”:1717621}

Even edit of the Submit button does not load anything.

XHRGEThttps://list.[HOST]/s/forms/field/edit/1?formId=1&_=1679051776739&mauticUserLastActive=11&mauticLastNotificationId=
[HTTP/2 200 OK 88ms]

GET
https://list/.[HOST]/s/forms/field/edit/1?formId=1&_=1679051776739&mauticUserLastActive=11&mauticLastNotificationId=
Status
200
OK
VersionHTTP/2
Transferred840 B (13 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest

access-control-allow-credentials
true
access-control-allow-headers
Origin, X-Requested-With, Content-Type, Authorization
access-control-allow-methods
PUT, GET, POST, DELETE, OPTIONS
access-control-allow-origin

access-control-max-age
36000
cache-control
max-age=0, must-revalidate, private
content-security-policy
upgrade-insecure-requests
content-type
application/json
date
Fri, 17 Mar 2023 11:16:28 GMT
expires
Fri, 17 Mar 2023 11:16:28 GMT
permissions-policy
interest-cohort=()
server
nginx
strict-transport-security
max-age=63072000; includeSubDomains; preload
x-content-type-options
nosniff
x-download-options
noopen
X-Firefox-Spdy
h2
x-frame-options
SAMEORIGIN
x-permitted-cross-domain-policies
none
x-sso-wat
You've just been SSOed
x-xss-protection
1; mode=block

Accept
application/json, text/javascript, /; q=0.01
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Connection
keep-alive
Cookie
messagesUtk=3791286360f643c0b6eca74dbb6415e5; mautic_device_id=di7n5rig60i5a72x8fefc4e; 723b8415532a45d02f3a7b6b06e8bdd1=e0i0ee6c91554kon9g76ra3mrq
DNT
1
Host
list.host
Referer
https://[HOST]/s/forms/edit/1
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
TE
trailers
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
X-Requested-With
XMLHttpRequest

@stepcellwolf
Copy link
Author

More info from the browser console:

Refused to apply style from 'https://[host]/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Refused to apply style from 'https://[host]/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
XHR finished loading: GET "https://[host]/s/forms/field/new?type=date&tmpl=field&formId=2&inBuilder=1&_=1690461528983&mauticUserLastActive=24&mauticLastNotificationId=".

@tituspijean
Copy link
Member

I see XHRGEThttps://list.[HOST] then GET https://list/.[HOST], is that normal (note the unmatching slashes and dots)? Are you actually on a subdomain named list?

@stepcellwolf
Copy link
Author

Yes I'm on a subdomain.

@tituspijean
Copy link
Member

Can you correct your logs then? The SSO is quite sensitive to the URLs, we need to be sure of what we are looking at.

@stepcellwolf
Copy link
Author

Yes of course, here are the logs.

Refused to apply style from 'https://crm.host/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
/s/sysinfo:106 Refused to apply style from 'https://crm.host/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
ynh_portal.js:1     Failed to load resource: the server responded with a status of 404 ()
custom_portal.js:1     Failed to load resource: the server responded with a status of 404 ()
/s/sysinfo:1 Refused to execute script from 'https://crm.host/ynh_portal.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
/s/sysinfo:1 Refused to execute script from 'https://crm.host/ynhtheme/custom_portal.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
/s/sysinfo:1 Refused to apply style from 'https://crm.host/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
/s/sysinfo:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://crm.host/app/bundles/CoreBundle/Assets/css/libraries/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0
/s/sysinfo:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v35/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVIUwaEQbjA.woff2
/s/sysinfo:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhs.ttf
/s/sysinfo:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUuhs.ttf
/s/sysinfo:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Zdcg.ttf
/s/sysinfo:1 Refused to apply style from 'https://crm.host/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
hook.bundle.js:1 [locatorjs]: loading: No valid renderers found.
o @ hook.bundle.js:1
i1.wp.com/crm.host/index.php/media/images/avatar.png?ssl=1:1     Failed to load resource: the server responded with a status of 404 ()
hook.bundle.js:1 [locatorjs]: loading: No valid renderers found.
o @ hook.bundle.js:1
hook.bundle.js:1 [locatorjs]: loading: No valid renderers found.
o @ hook.bundle.js:1
hook.bundle.js:1 [locatorjs]: No valid renderers found.
o @ hook.bundle.js:1
hook.bundle.js:1 [locatorjs]: No valid renderers found.
o @ hook.bundle.js:1
hook.bundle.js:1 [locatorjs]: No valid renderers found.
o @ hook.bundle.js:1
DevTools failed to load source map: Could not load content for chrome-extension://iidnbdjijdkbmajdffnidomddglmieko/sourceMap/detect-editors.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for chrome-extension://iidnbdjijdkbmajdffnidomddglmieko/sourceMap/quillbot-content.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
new:1 Refused to apply style from 'https://crm.host/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
new:1 Refused to apply style from 'https://crm.host/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

On the mautic end there are no system logs. Hope this helps. I'm running mautic with administrative role rights.

@stepcellwolf
Copy link
Author

Is this somehow helpful, or I would need to extract more logs and details?

@tituspijean
Copy link
Member

I was able to replicate the bug btw, but not to identify its source. So the issue lies with the packaging of the app.

@stepcellwolf
Copy link
Author

Please let me know if there is somehow I could help.

@stepcellwolf
Copy link
Author

hi @tituspijean any updates or how can I help you to identify the source. I would very much appreciate if we fix this soon. Thanks.

@tituspijean
Copy link
Member

Unfortunately not. I have enabled debugging, and no log entry is created upon the triggering of this error.
I am worried that all similar errors on Mautic's forum have not been answered or resolved, so I am now thinking Mautic's people should help you out. I have ran out of ideas debugging this.

@stepcellwolf
Copy link
Author

@tituspijean I already talked to them and they are not able to reproduce it, as this issue is only related to yunohost and nothing else. Thus I'm asking here.

@tituspijean
Copy link
Member

tituspijean commented Aug 8, 2023

Then may you ask them how to debug that specific error ? Such a warning displayed to admins should be reflected in the logs.

@stepcellwolf
Copy link
Author

@tituspijean suggestion from the mautic team is to use xdebug to see what code is being triggered

@stepcellwolf
Copy link
Author

Hi @tituspijean I have reviewed the yunohost scripts, and it is as recommended in Mautic documentation. Should we try to install as a development version 5.0.0-alpha1 to see if we will face the same issue? As the major version of Mautic 5 is scheduled for the end of September.

@stepcellwolf
Copy link
Author

Maybe another suggestion to troubleshoot the issue with to try without the SSO only for the specific subdomain and to see if the issue still exists.

@xirua
Copy link

xirua commented Dec 5, 2023

Same issue here. No console errors or logs here either. This is old but have you guys seen this.

@stepcellwolf
Copy link
Author

Did someone manage to find a workaround for this? I just tested the 5.0.2 version and still the same issue.

@xirua
Copy link

xirua commented Jan 23, 2024

Did someone manage to find a workaround for this? I just tested the 5.0.2 version and still the same issue.

Same for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants