No Code Attached Yet
avatar joomlabeat
joomlabeat
20 Sep 2023

Similar to #34531

I have encountered this in a few occasions so far with Joomla4.
The last occurrence is on the category blog layout.
/components/com_content/tmpl/category/blog.php
Trying to run var_dump($this->category) - it will never happen.
Memory is exhausted (I have raised the memory limit up to 4GB, just for testing).

It happens in other locations with other similar variables - only that I don't have them at hand right now.

But, also the article layout ...
/components/com_content/tmpl/article/default.php
var_dump($this);

Will also produce the same.

Steps to reproduce the issue

Add var_dump($this->category) in /components/com_content/tmpl/category/blog.php

and try to load a category blog page.

Expected result

The category blog layout + the output of the var_dump() command.

Actual result

Fatal error: Allowed memory size of ... bytes exhausted...

System information (as much as possible)

Joomla 4.x versions - PHP 8x up to 8.1.x

avatar joomlabeat joomlabeat - open - 20 Sep 2023
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Sep 2023
avatar joomlabeat joomlabeat - change - 20 Sep 2023
The description was changed
avatar joomlabeat joomlabeat - edited - 20 Sep 2023
avatar Fedik
Fedik - comment - 20 Sep 2023

This is because you trying to var_dump a loot of data.
The reason is that you have many articles in category and category children. And so in result var_dump produce a huge output which PHP cannot handle.

I am closing it, because it is not joomla issue.

avatar Fedik Fedik - close - 20 Sep 2023
avatar Fedik Fedik - change - 20 Sep 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-09-20 12:43:01
Closed_By Fedik

Add a Comment

Login with GitHub to post a comment