?
avatar cloudfaction
cloudfaction
31 May 2021

Steps to reproduce the issue

use a template, with a large xml manifest file (140kb or larger) enable debug system

Expected result

always have access to template settings

Actual result

with large xml file and debug system on, the template settings page causes http 500 error

System information (as much as possible)

4.0.9Beta8 DEV

Additional comments

making my template ready for J4 caused me this problem. Dunno if the error is from the size, but it seems. when making the xml manifest smaller, to a certain size, the template settings work with debugging enabled.

avatar cloudfaction cloudfaction - open - 31 May 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 May 2021
avatar cloudfaction
cloudfaction - comment - 31 May 2021

sorry system is 4.0.0-beta8-dev


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34309.

avatar brianteeman
brianteeman - comment - 31 May 2021

please check the php setting max_input_vars
if its at 1000 change it in php to 2000

avatar cloudfaction
cloudfaction - comment - 31 May 2021

set to 2k problem still occurs.

avatar cloudfaction
cloudfaction - comment - 31 May 2021

php 7.4

max_execution_time:30
max_input_time: -1
max_input_vars: 2000
memory_limit: 128m

avatar brianteeman
brianteeman - comment - 31 May 2021

was just an idea. sorry it didnt help

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

Please provide the exact XML file you are using.

avatar cloudfaction
cloudfaction - comment - 31 May 2021

http://joonextpro.com/joonextpro.zip is the template file i use to install

avatar brianteeman
brianteeman - comment - 31 May 2021

you have invalid xml - thats why you have the problem

avatar cloudfaction
cloudfaction - comment - 31 May 2021

ok. but works fine without debugging

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

Firstly on install you are doing something crazy that breaks Joomla 4 admin template...

Screenshot 2021-05-31 at 19 34 58

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

And I am able to edit the template ok:

Screenshot 2021-05-31 at 19 36 26

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

But editing template styles I get a Memory issue writing log files:

webserver_1  | 2021/05/31 18:37:23 [error] 29#29: *42 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /application/libraries/src/Log/LogEntry.php on line 121PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /application/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 307200 bytes) in Unknown on line 0" while reading response header from upstream, client: 172.19.0.1, server
avatar brianteeman
brianteeman - comment - 31 May 2021

Fix all the extra that you have on line 290

39,721 characters on one line is pretty crazy - no wonder you didnt see the errors

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

I can load the edit page now, and all I did was refresh the page a few times...

The problem is a simple running out of PHP Memory

Im guessing that the overhead of storing the debug information and logging is adding some memory use before the page gets to render your insanely large form fieldsets :)

Screenshot 2021-05-31 at 19 42 56

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

You might also want to fix this, when enabling your template and visiting the frontend:

Screenshot 2021-05-31 at 19 47 08

avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

The root problem is logging in Joomla 4... the following is called, which kills Joomla on 128Mb memory_limit

// Get the current call stack and back trace (without args to save memory).
$this->callStack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
avatar cloudfaction cloudfaction - change - 31 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-31 18:57:47
Closed_By cloudfaction
avatar cloudfaction
cloudfaction - comment - 31 May 2021

guys thank you so much. i will close this for now, i can move further with your valued tips! It's mainly the google fonts i load in the option boxes, i will fix that issue. thank you again!

avatar cloudfaction cloudfaction - close - 31 May 2021
avatar brianteeman
brianteeman - comment - 31 May 2021

there are other ways to do it if you really want to list all google fonts. Your current method is not sustainable as it will always be out of date as google add and remove fonts.

Add a Comment

Login with GitHub to post a comment