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.
Add var_dump($this->category)
in /components/com_content/tmpl/category/blog.php
and try to load a category blog page.
The category blog layout + the output of the var_dump() command.
Fatal error: Allowed memory size of ... bytes exhausted...
Joomla 4.x versions - PHP 8x up to 8.1.x
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-20 12:43:01 |
Closed_By | ⇒ | Fedik |
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.