A) System > Global Configuration (administrator/index.php?option=com_config)
B) System > Manage > Extensions (administrator/index.php?option=com_installer&view=manage)
C) Home Dashboard > Modules > BreadCrumbs
D) Home Dashboard> Modules > Main Menu
E) Home Dashboard> Modules > Login Form
Admin screens to be displayed, without error
A) System > Global Configuration (administrator/index.php?option=com_config)
RESULT blank white page
B) Go to System > Manage > Extensions (administrator/index.php?option=com_installer&view=manage)
RESULT white page with the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/libraries/src/Language/Associations.php on line 149
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1
C) System > Module > BreadCrumbs
RESULT white page with the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/administrator/components/com_admin/src/Model/SysinfoModel.php on line 439
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1
D) System > Module > Main Menu
RESULT white page with the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/layouts/joomla/toolbar/base.php on line 1
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1
E) System > Module > Login Form
RESULT white page with the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/layouts/joomla/toolbar/standard.php on line 1
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes) in /home/myJoomlaInstall/public_html/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1
Attached
I encountered this after upgrading from 4.0.3 to 4.0.4
I encountered this with a fresh manual install of 4.0.4
I encountered this with a fresh install of 4.0.4 using Softalicious in cPanel
Labels |
Added:
No Code Attached Yet
|
Title |
|
Hi thank you for your response. I increased to the following:
max_input_vars: 5000
post_max_size: 64M
upload_max_filesize: 32M
And this helped in most cases. However, when I have error reporting enabled, I'm still hitting memory issues (blank white page) when I try to open a custom module I built. The module has a lot of fields, but it is by no means complicated. In order to be able to open the module in the backend without getting a blank white screen, I have to set the following value in php.ini
memory_limit: 256M
Should Joomla debugging require this much? It seems high but I don't have a frame of reference -- I am not well-versed in cPanel, or Joomla 4 debugging memory requirements. I'm just a novice module developer.
The module does not query any databases. The modules I write are what I would call rudimentary. They use xml fields (mostly list, radio, and text) to collect values which are applied to the CSS styling/layout of the module's text content.
The module does have nested subforms (three subforms total), and I noticed if I removed some of the fields from the last subform, then the module's backend will display normally.
I ran the subform through an XML validator, and tried removing particular fields to see if there was an error in one of them. But the issue does not appear to be with the content of the XML fields, but rather the quantity of XML fields. If I turn off Joomla debugging, the module's admin will display using
memory_limit: 128M
Other modules appear to work fine with if the memory_limit is 64M. Am I abusing Joomla's memory usage because of nesting subforms, or too many XML fields, or both?
Module's xml: 47 fields
Subform: 1 field
Sub-Subform: 5 fields
Sub-Sub-Subform: 38 fields
Not all fields are displayed at once because a lot of them are conditional (they use showon=)
Am I abusing Joomla's memory usage because of nesting subforms, or too many XML fields, or both?
@boldc I have no idea
Anyway it seems not to be an issue or a bug with the CMS core. The ini values which I had advised to use are our recommended minimum values times 1.5 to have some reserve.
So I think this issue can be closed as not a core issue (if we don't get some other opinion within a reasonable time).
The problem is the total number of fields. showon only visually hides the field
This was the reason you had to increase the max_input_vars
Sub-Subform: 5 fields
Sub-Sub-Subform: 38 fields
That seems not much, but when you create 10 rows it will be huge.
You better find a way to do what you doing in other way.
Subform not very memory friendly, especially with a loot nested subforms.
Thank you Richard, Brian & Fedik for the info! If had better dev skills I would convert the module into a component. Perhaps I can find fields to migrate to the main xml (or triage them).
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-29 15:19:21 |
Closed_By | ⇒ | boldc |
Thanks
@boldc I've noticed following in your PHP configuration which could be improved.
If you say you have had 4.0.3 working with these settings then they might not be the reason for the issue.
But it's worth a try because to me they seem to be too small.
Your hosting provider's documentation might tell how you can modify PHP ini values. In most cases you just need to place a suitable php.ini file into the folder with your Joomla installation.
Please check and report back the result. Thanks in advance.
I suggest to increase this to 64M at least.
This should be increased to 24M at least.
This should be increased to 24M at least, and it should not be smaller than the previously mentioned upload_max_filesize.
This should be increased to 5000.