I get the following php-errors:
[22-Jan-2022 11:04:18 Europe/Berlin] PHP Notice: Trying to get property 'rules' of non-object in .../www/libraries/src/Access/Access.php on line 548
[22-Jan-2022 11:04:18 Europe/Berlin] PHP Notice: Undefined offset: 33 in .../www/libraries/src/Access/Access.php on line 553
CentOS 8 | PHP 7.4.27 | MariaDB 10.3.28 | Apache 2.4.37 | Joomla 4.0.6
This Joomla-System was updated from 1.5.x --> 2.5 --> 3.x to 4.x
No idea what is going on here
Labels |
Added:
No Code Attached Yet
Removed: ? |
@richard67 I will try it, but this is my production website and the error was not generated by myself. But I check the access-log.
Since when do you get these errors? Have they started to appear after an update? We need more information.
At a first look it seems there has an extension not been uninstalled properly, so assets (i.e. access rules) were remaining for which no extension exists anymore.
@hsm-berlin Could you test and report back if the changes here solve your issue? https://github.com/joomla/joomla-cms/pull/36786/files
Of course make a backup of the original PHP file before you modify it or replace it by the modified version from my PR, so you can later revert it if necessary.
Thanks in advance.
O.K. I was able to find the link that caused the error. It was a menu entry to an article. The link was missing the .html. After I called the link with .html for the first time, the error was no longer displayed. Therefore, unfortunately, I can no longer test it. If I find the error again, I will test the new code.
@hsm-berlin You always do all works on the life site, not have a copy on a subdomain there for testing or on a local computer with a webserver? That's very courageous. Do you do at least backups of files and database (with or without the help of well known useful products) before updating the CMS or extensions or installing questionable extensions? If not: Would you mind if we call you "danger seeker"?
@richard67 I have a test-system on a local server, but that did not produce this error. So what should I do? O course I make daily backups. ;-) Thanks for your work!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-22 16:27:01 |
Closed_By | ⇒ | richard67 |
@hsm-berlin Could you switch on debug in the global configuration so you can see the complete call stack and report it back? Thanks in advance.