-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0][Cassiopea] Wrong ItemId: Call to a member function getParams() on null #30812
Comments
I can't reprodue that here on a clean, current 4.0-dev with blog sample data, SEF URLS=off, no URL rewriting. And I know at least one other contributor who can't reproduce. Could you provide some more information about your configuration regarding SEO options in Global Configuration, and if you have an .htaccess file and so on. How does it normally work for you when having a 404? Do you see the template's error.php, or do you see the server's generic error page? Or have you set up custom error pages? The more relevant information we get, the better we can reproduce it. |
Information required as stated in my previous comment. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30812. |
In general, a Joomla site has as at least one menuItem and no matter where you are there is always an active menuItem. Can you describe in detail how you got this error? |
This is probably some sort of bug due to migration issues. I am happy to prepare database dumps to illustrate the problem. After migration, I have a few problems:
|
I confirm that. |
Please test PR #31100 |
Re-opening the issue because the pull request #31100 has been closed. We can close the issue again as soon as there is a new pull-request. |
New pull request is #31156 . Please test. Thanks in advance. |
Steps to reproduce the issue
Go to article (without mod_rewrite) with wrong
itemid
/index.php?option=com_content&view=article&id=187&Itemid=64
Expected result
HTTP 200 / 404
Actual result
HTTP 500
0 Call to a member function getParams() on null
System information (as much as possible)
Additional comments
From stack is line 29 in
template/cassiopea/index.php
My quick fix:
is not working completely correctly because the breadcrumbs are not working properly (shows the home page)
The text was updated successfully, but these errors were encountered: