Advertisement

Error blocking access to articles (backoffice)

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
yammi
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Feb 07, 2025 11:28 am

Error blocking access to articles (backoffice)

Post by yammi » Fri Feb 07, 2025 11:32 am

Good morning,

I've been experiencing a problem since last night without making any recent changes to the site (no updates).

The site is in J5.2.3 and PHP 8.2.27

The site seems to be working but when I go to the backoffice and go to the articles I get this message:

Code: Select all

count(): Argument #1 ($value) must be of type Countable|array, bool given

I tried reinstalling the Joomla core.

I activated the debug and I get this:

Code: Select all

Call Stack
#	Function	Location
1	()	JROOT/administrator/components/com_content/src/View/Articles/HtmlView.php:119
2	Joomla\Component\Content\Administrator\View\Articles\HtmlView->display()	JROOT/libraries/src/MVC/Controller/BaseController.php:697
3	Joomla\CMS\MVC\Controller\BaseController->display()	JROOT/administrator/components/com_content/src/Controller/DisplayController.php:65
4	Joomla\Component\Content\Administrator\Controller\DisplayController->display()	JROOT/libraries/src/MVC/Controller/BaseController.php:730
5	Joomla\CMS\MVC\Controller\BaseController->execute()	JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
6	Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()	JROOT/libraries/src/Component/ComponentHelper.php:361
7	Joomla\CMS\Component\ComponentHelper::renderComponent()	JROOT/libraries/src/Application/AdministratorApplication.php:150
8	Joomla\CMS\Application\AdministratorApplication->dispatch()	JROOT/libraries/src/Application/AdministratorApplication.php:205
9	Joomla\CMS\Application\AdministratorApplication->doExecute()	JROOT/libraries/src/Application/CMSApplication.php:306
10	Joomla\CMS\Application\CMSApplication->execute()	JROOT/administrator/includes/app.php:58
11	require_once()	JROOT/administrator/index.php:32

I don't really know what to do with it so I'm appealing to your knowledge, which is much better than mine!

Thank you!

Advertisement
User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44987
Joined: Sat Apr 05, 2008 9:58 pm

Re: Error blocking access to articles (backoffice)

Post by Webdongle » Fri Feb 07, 2025 4:23 pm

Welcome to the forum
https://forumpostassistant.github.io/docs/ please
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
ceford
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3089
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Error blocking access to articles (backoffice)

Post by ceford » Fri Feb 07, 2025 4:29 pm

I don't have an answer to your question. However, the count() function on line 119 needs an array which should come from the call to get('Items') on line 111. So the stack trace is not telling us where the real problem is. You might look in the server PHP error log if there is one.

Advertisement

Post Reply

Return to “Administration Joomla! 5.x”