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

Joomla 4.1.5 Status Error 409 - Not possible to load the backend Template #38376

Closed
coolcat-creations opened this issue Aug 2, 2022 · 24 comments

Comments

@coolcat-creations
Copy link
Contributor

Steps to reproduce the issue

Occurs on a customers site and I also read about others on Facebook and in Forums having this issue on their hosting

Expected result

Backend Template should load

Actual result

Backend assets are marked with status 409 and not loaded

grafik

I tried to solve it in various ways:

  • Downloading Template Files and uploading again
  • resetting htacces and removing all mod header stuff there
  • clear cache, disable cache
  • Creating a Child Template of Atum

The only way to fix it partially was to add $this->addStyleSheet(Uri::root() . 'media/templates/administrator/atum/css/template.css');
into the index.php of atum template.
(would need to add the other styles and scripts that way as well, but that does not look like a proper solution.

It seems as soon the versioning Number is added the file could not be loaded anymore.

@richard67
Copy link
Member

@coolcat-creations In the title of this issue you wrote „403“. Shouldn’t it be „409“?

@brianteeman
Copy link
Contributor

What browser?
Have you tested without any browser extensions?
What cache?
Are you using a cdn?

as a 409 is usually related to a local problem and not a server problem all of these are important to know/test

@coolcat-creations
Copy link
Contributor Author

coolcat-creations commented Aug 3, 2022

I tested with:
Safari on Mac
Opera On Mac
Chrome on Mac
Firefox on Mac
With/ Without Privacy Mode
Without extensions
Not using any CDN
Cache Disabled locally
Cache Disabled on the Site
Htaccess empty / core / core with mod.headers commented out / normal
Checked Permissions / Repaired Database

i read that the Status Code 409 might be Related to that a Request is delivering unexpected Data as something that is older than the version on the Server or something like that. So I had the Idea to implement the css without the Versioning Number in the Atum index.php as said above and that is fixing somehow the Error. So I think something is wrong with the Versioning Number.

@coolcat-creations
Copy link
Contributor Author

@coolcat-creations In the title of this issue you wrote „403“. Shouldn’t it be „409“?

Yes 409 sorry just tried to change it on my phone but it's not possible to scroll in the Edit window for me 😅

@richard67
Copy link
Member

Would be interesting to know if this happens also with a 4.2-dev nightly build on the same environment.

@richard67
Copy link
Member

… or if it happens also with older 4.1 or 4.0 versions.

@brianteeman
Copy link
Contributor

Do you have any other sites o the same host?

@zero-24 zero-24 changed the title Joomla 4.1.5 Status Error 403 - Not possible to load the backend Template Joomla 4.1.5 Status Error 409 - Not possible to load the backend Template Aug 3, 2022
@coolcat-creations
Copy link
Contributor Author

Site was an Upgrade from Joomla 3.10.10. to 4.1.5
There are other sites on the same host, Joomla 3 works well, Joomla 4.1.5 clean install same error.

@brianteeman
Copy link
Contributor

ok well thats good news as it clearly identifies that the issue is somewhere in the hosting config/setup even if we dont know yet what is causing it. Would it be possible to get the domain name of the clean install so we can check the response headers etc. Perhaps the host as a cahing layer of their own that is in play?

@coolcat-creations
Copy link
Contributor Author

I am having the Joomla Kids Lectures this week, I will contact the customer if its ok and share it as soon I can

@coolcat-creations
Copy link
Contributor Author

Can you test if you see the template Style on http://joomladevtest.torontocameraclub.com/administrator/ - its the 4.2 nightly. For me this one works for the customer not. While the staging site backend does not work for me but for my customer. It's a really weird issue. As mentioned above I have cache disabled completely and I test on different browsers.

@chmst
Copy link
Contributor

chmst commented Aug 4, 2022

I get the message "Warning! Internet Explorer should not be used for proper operation of the Administrator Backend. " on this site, FF on win11.

@brianteeman
Copy link
Contributor

brianteeman commented Aug 4, 2022

@chmst that message is because my pull request is sat untested and unmerged #37900

@brianteeman
Copy link
Contributor

@coolcat-creations Please check and review this https://stackoverflow.com/questions/55915264/scriptdocument-cookie-humans-21909-1-document-location-reloadtrue-scri

In other words it sounds like it could be a bad mod_security rule on the server

@brianteeman
Copy link
Contributor

and you will see that all reports of this issue are from the same hosting company :(

@brianteeman
Copy link
Contributor

I should have added that the server response to all thefiles with a 409 is
<script>document.cookie = "humans_21909=1"; document.location.reload(true)</script>

interesting analysis showing its a server issue https://www.hetogrow.com/account-registration-error-code-cookie-humans_21909

@coolcat-creations
Copy link
Contributor Author

Thank you for the evaluation @brianteeman I did not see the cookie at all. So the hoster is adding a cookie? strange...
I saw that issues also from bluehost customers and others.
Should I close the issue or leave it open now?

@brianteeman
Copy link
Contributor

This is where you can find it

image

I don't believe there is anything we can do about this and it should be closed and passed to the hosting company

@coolcat-creations
Copy link
Contributor Author

@brianteeman Thank you. I am suprised a hosted can attach cookies to files. Every day something new :) Thanks for your help!

@coolcat-creations
Copy link
Contributor Author

Just one more question: Joomla 3 works without issues, so there must be something in Joomla 4 confusing mod_security of such hosters. What could it be? Searching through the net I saw that the word register is causing problems. As implementing the css works, if it's implemented manually maybe "registering" the webasset Manager is the problem?

@richard67
Copy link
Member

Searching through the net I saw that the word register is causing problems.

@coolcat-creations Do you have some links so interested readers don't have to search again?

@coolcat-creations
Copy link
Contributor Author

@richard67
Copy link
Member

Well I don't think we can change our web asset manager to use something else than "register" without b/c breaks.

Reading the linked stackoverflow thread, one provider was able to change their mod_security settings, while another just recommended to disable mod_security completely.

Maybe it is possible to set some mod_security rules in the .htaccess file? I haven't investigated yet.

If that is not possible, I do not really see a way to solve it on our side without b/c breaks.

It would need to add some documentation on that issue at a good place, maybe the known J4 b/c issues or the J4 FAQ.

@brianteeman
Copy link
Contributor

You can't modify mod security with htaccess

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

No branches or pull requests

5 participants