Go to article (without mod_rewrite) with wrong itemid
/index.php?option=com_content&view=article&id=187&Itemid=64
HTTP 200 / 404
HTTP 500
0 Call to a member function getParams() on null
From stack is line 29 in template/cassiopea/index.php
$pageclass = $menu->getParams()->get('pageclass_sfx');
My quick fix:
$pageclass = empty($menu)?'':$menu->getParams()->get('pageclass_sfx');
is not working completely correctly because the breadcrumbs are not working properly (shows the home page)
Labels |
Added:
?
|
Labels |
Added:
?
|
Labels |
Added:
Information Required
|
Status | New | ⇒ | Information Required |
Information required as stated in my previous comment.
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.
It can also happen if you try to access an article without a sef url.
E.g. /index.php/component/content/article/70-quick-icons
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-15 14:56:27 |
Closed_By | ⇒ | Quy |
Status | Closed | ⇒ | New |
Closed_Date | 2020-10-15 14:56:27 | ⇒ | |
Closed_By | Quy | ⇒ |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-19 10:54:56 |
Closed_By | ⇒ | richard67 |
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.