No Code Attached Yet
avatar boldc
boldc
28 Oct 2021

Steps to reproduce the issue

  1. Install or upgrade to Joomla 4.0.4
  2. Login
  3. Go to System > Global Configuration > System, set "Debug System" to yes
  4. Go to System > Global Configuration > Server, set "Error Reporting" to maximum
  5. Save changes
  6. Attempt to navigate to any of the following:

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

Expected result

Admin screens to be displayed, without error

Actual result

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

System Information

Attached

Additional comments

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

systeminfo-2021-10-28T17_11_10+00_00.txt

avatar boldc boldc - open - 28 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Oct 2021
avatar boldc boldc - change - 28 Oct 2021
The description was changed
avatar boldc boldc - edited - 28 Oct 2021
avatar boldc boldc - change - 28 Oct 2021
Title
Unable to reach certain admin pages after setting Error Reporting to maximum in v4.0.4
Fatal Error on certain admin pages after setting Error Reporting to maximum in v4.0.4
avatar boldc boldc - edited - 28 Oct 2021
avatar richard67
richard67 - comment - 28 Oct 2021

@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.

memory_limit: 32M

I suggest to increase this to 64M at least.

upload_max_filesize: 2M

This should be increased to 24M at least.

post_max_size: 8M

This should be increased to 24M at least, and it should not be smaller than the previously mentioned upload_max_filesize.

max_input_vars: 1000

This should be increased to 5000.

avatar boldc
boldc - comment - 29 Oct 2021

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.

avatar richard67
richard67 - comment - 29 Oct 2021

@boldc Maybe something is wrong with that module? Does it produce any database queries?

avatar boldc
boldc - comment - 29 Oct 2021

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=)

avatar richard67
richard67 - comment - 29 Oct 2021

Am I abusing Joomla's memory usage because of nesting subforms, or too many XML fields, or both?

@boldc I have no idea ? Maybe @Fedik has?

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).

avatar brianteeman
brianteeman - comment - 29 Oct 2021

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

avatar Fedik
Fedik - comment - 29 Oct 2021

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.

avatar boldc
boldc - comment - 29 Oct 2021

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).

avatar richard67
richard67 - comment - 29 Oct 2021

@boldc So we can close the issue or you close it yourself?

avatar boldc boldc - change - 29 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-29 15:19:21
Closed_By boldc
avatar boldc boldc - close - 29 Oct 2021
avatar richard67
richard67 - comment - 29 Oct 2021

Thanks

Add a Comment

Login with GitHub to post a comment