var_dump or print_r $table in Joomla\CMS\MVC\Model\AdminModel save method or
Joomla\Component\Banners\Administrator\Model prepareTable method
Add new baner and save
Dump $table var
Error: 1GB memory exhausted
Joomla 4 beta 7
Linux, Apache, PHP 7.2.28
Tested with J4 RC3 dev.
Still can't dump $table var. print_r causes Error OutOfMemoryError Error: Allowed memory size of 134217728 bytes exhausted. var_dump causes "white screen".
I think method usage looks like: Joomla\CMS\MVC\Model\AdminModel::save -> Joomla\CMS\MVC\Model\BaseDatabaseModel::getTable -> Joomla\CMS\MVC\Model\BaseDatabaseModel::_createTable -> Joomla\CMS\MVC\Model\DatabaseAwareTrait::getDbo - return $this->_db is the problem.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-17 09:29:39 |
Closed_By | ⇒ | Fedik |
It is very much depend of what exactly data you dumping,
It is not a Joomla issue.
Hint: try var_dump only for needed properties, instead of whole Object
Please test with the nightly builds to see if the issue persists. https://developer.joomla.org/nightly-builds.html