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

Red notifications and empty media folder #39674

Closed
jobrusche opened this issue Jan 20, 2023 · 9 comments
Closed

Red notifications and empty media folder #39674

jobrusche opened this issue Jan 20, 2023 · 9 comments

Comments

@jobrusche
Copy link

Steps to reproduce the issue

Display admin control panel after login
Display content Media

Expected result

GREEN-notifications

Media-folder

Actual result

RED-notifications

Empty-media

System information (as much as possible)

systeminfo-2023-01-20.txt

Additional comments

Situation returns to normal after using Usersmenu ->Accessibility->Close ->Login in ###backend.
This site is a clone of my testsite nicole.brusche.be where this problem is NOT exhibited

References:
PR #38172
https://issues.joomla.org/tracker/joomla-cms/38001

@carlitorweb
Copy link
Member

carlitorweb commented Jan 20, 2023

Please, press F12 in your browser after you open teh administrator, and in the console tab you will see there, check if you see any error attach to there.

@carlitorweb
Copy link
Member

carlitorweb commented Jan 20, 2023

I currently have a site with same problem, without able to fix it yet, even after try several hours on it.
So far I blaim the problem to some kind of hard cache in my chrome browser. if I use other browsers that I rarely use, everything works

And then in that console tab a error like this one show up:

Access to XMLHttpRequest at 'http://mysite.com/administrator/index.php?option=com_joomlaupdate&task=update.ajax&0fd45a7182452581ba78a737fa82fc76=1' from origin 'http://www.mysite.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Even when error say about CORS, I tried all avalaible combinations for setup this, and not fix the problem. But also, others browsers work okay without modify anything, chrome (my default browser) should do too.

@dgrammatiko
Copy link
Contributor

@carlitorweb fwiw http://mysite.com is not the same as http://www.mysite.com. The www is a subdomain of mysite.com so restrictions apply...

@carlitorweb
Copy link
Member

@dgrammatiko did not see that. But why then open in others browser? Is what confuse me....

@jobrusche
Copy link
Author

With F12 in chrome ,console displays
Access to XMLHttpRequest at
'https://www.nicolesaenen.be/administrator/index.php?option=com_joomlaupdate&task=update.ajax&bd05f19467342b5bf3401f0a70952a42=1'
from origin 'https://nicolesaenen.be' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
www.nicolesaenen.be/administrator/index.php?option=com_joomlaupdate&task=update.ajax&bd05f19467342b5bf3401f0a70952a42=1:1
Failed to load resource: net::ERR_FAILED

@dgrammatiko
Copy link
Contributor

Check https://observatory.mozilla.org/analyze/nicolesaenen.be

Screenshot 2023-01-21 at 16 00 23

Fix this (it's the server setup) and you'll fix your cors problems

@richard67
Copy link
Member

@jobrusche Please check @dgrammatiko 's comment above and report back if it helped you to fix your CORS problem. Thanks in advance.

@jobrusche
Copy link
Author

Added the following to .htaccess in the section IfModule mod_rewrite.c

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,QSA]

All symptoms are solved
Thanks alot.
Johan

@richard67
Copy link
Member

Closing as not an issue with the CMS core. Thanks @jobrusche for reporting back.

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