No Code Attached Yet
avatar jobrusche
jobrusche
20 Jan 2023

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

avatar jobrusche jobrusche - open - 20 Jan 2023
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jan 2023
avatar carlitorweb
carlitorweb - comment - 20 Jan 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.

avatar carlitorweb
carlitorweb - comment - 20 Jan 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.

avatar dgrammatiko
dgrammatiko - comment - 20 Jan 2023

@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...

avatar carlitorweb
carlitorweb - comment - 20 Jan 2023

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

avatar jobrusche
jobrusche - comment - 21 Jan 2023

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

avatar dgrammatiko
dgrammatiko - comment - 21 Jan 2023

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

avatar richard67
richard67 - comment - 22 Jan 2023

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

avatar jobrusche
jobrusche - comment - 22 Jan 2023

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

avatar richard67 richard67 - change - 22 Jan 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-01-22 13:13:01
Closed_By richard67
avatar richard67 richard67 - close - 22 Jan 2023
avatar richard67
richard67 - comment - 22 Jan 2023

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

Add a Comment

Login with GitHub to post a comment