YunoHost-Apps / mautic_ynh

Mautic package for YunoHost
https://www.mautic.org/
GNU General Public License v3.0
0 stars 1 forks source link

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

Open stepcellwolf opened 1 year ago

stepcellwolf commented 1 year ago

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

Steps to reproduce

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Yes I'm on a subdomain.

tituspijean commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

tituspijean commented 1 year ago

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 commented 1 year ago

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

stepcellwolf commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

stepcellwolf commented 1 year ago

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

stepcellwolf commented 1 year ago

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 commented 1 year ago

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 commented 10 months ago

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

stepcellwolf commented 8 months ago

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

xirua commented 8 months ago

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.