Information Required ? ?
avatar bato3
bato3
30 Sep 2020

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

$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)

avatar bato3 bato3 - open - 30 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - edited - 30 Sep 2020
avatar chmst chmst - change - 30 Sep 2020
Labels Added: ?
avatar chmst chmst - labeled - 30 Sep 2020
avatar richard67
richard67 - comment - 30 Sep 2020

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.

avatar alikon alikon - change - 30 Sep 2020
Labels Added: Information Required
avatar alikon alikon - labeled - 30 Sep 2020
avatar richard67 richard67 - change - 30 Sep 2020
Status New Information Required
avatar richard67
richard67 - comment - 30 Sep 2020

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.

avatar chmst
chmst - comment - 30 Sep 2020

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?

avatar bato3
bato3 - comment - 1 Oct 2020

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:

  • Where it does not detect that the specified ItemId does not exist
  • Index with com_finder returns red null or "Data too long for column 'route' at row 1"
  • Does not process internal links in the content of articles and modules. #30818
  • I did not disable old extensions (e.g. com_search) #30843
avatar sakiss
sakiss - comment - 15 Oct 2020

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

avatar Quy
Quy - comment - 15 Oct 2020

Please test PR #31100

avatar Quy Quy - change - 15 Oct 2020
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2020-10-15 14:56:27
Closed_By Quy
avatar Quy Quy - close - 15 Oct 2020
avatar richard67
richard67 - comment - 17 Oct 2020

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.

avatar richard67 richard67 - change - 17 Oct 2020
Status Closed New
Closed_Date 2020-10-15 14:56:27
Closed_By Quy
avatar richard67 richard67 - reopen - 17 Oct 2020
avatar richard67 richard67 - close - 19 Oct 2020
avatar richard67
richard67 - comment - 19 Oct 2020

New pull request is #31156 . Please test. Thanks in advance.

avatar richard67 richard67 - change - 19 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-19 10:54:56
Closed_By richard67

Add a Comment

Login with GitHub to post a comment