? Pending

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
5 Dec 2017

Pull Request for Issue #18979 .

Summary of Changes

Instead of one modal per module -> one generalized modal for ALL modules
Instead of specific js functions for each modal -> generalized js for ALL modals

Testing Instructions

  1. Have a lot of modules
  2. Edit a menu item

Expected result

Only one modal should be created and reused for all module editors.
Minimal, generalized js should be written to handle all modals.
More modules should not mean more js/html code.

Actual result

Before this patch, it's possible to get out of memory error if you have enough modules.
After, should not be possible.

Documentation Changes Required

Nope

avatar okonomiyaki3000 okonomiyaki3000 - open - 5 Dec 2017
avatar okonomiyaki3000 okonomiyaki3000 - change - 5 Dec 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2017
Category Administration com_menus
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

Using 250 Modules and edit a Menu-Item Site should crash on this Setting:

System information

3.8.3-rc
Multilanguage Site (4 Lang.) & Sample Data
macOS Sierra, 10.12.6
Firefox 57 (64-bit)

MAMP 4.2

  • PHP 7.0.22
  • MySQLi 5.6.35
avatar okonomiyaki3000
okonomiyaki3000 - comment - 8 Dec 2017

The key point would be PHP's memory setting. If it's very high, you might be fine but you shouldn't need to give PHP tons of memory to edit a menu item.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

Can you give a Memory Limit to test proper?

avatar okonomiyaki3000
okonomiyaki3000 - comment - 8 Dec 2017

I had less than 200 modules and a memory limit of 128MB and it was crashing. So try it with 32MB and you can probably crash it with 50 or so modules. Go down to 16 if you really want to be sure.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

@okonomiyaki3000 thanks for Info, will test. Can you update Test Instructions with above Limits so willing Testers have not to search for proper Information?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

Didn't get a Crash without PR:

  • 200 Modules
  • memory_limit 16M

System information

3.8.3-rc
Multilanguage Site (4 Lang.) & Sample Data
macOS Sierra, 10.12.6
Firefox 57 (64-bit)

MAMP 4.2

  • PHP 7.0.22
  • MySQLi 5.6.35
avatar brianteeman
brianteeman - comment - 8 Dec 2017

it is not the memory limit
the problem is almost certainly max_input_vars

This has been reported before (and closed) and PR submitted, rejected or abandoned

If you check the server logs you should see the error report there which explains it

avatar okonomiyaki3000
okonomiyaki3000 - comment - 8 Dec 2017

The crash happens when opening a menu item, not saving. What can input variables have to do with it? Raising my memory limit to 256MB allowed me to open the page at which point I could see the crazy loads of javascript and modals being written.

avatar csthomas csthomas - test_item - 8 Dec 2017 - Tested successfully
avatar csthomas
csthomas - comment - 8 Dec 2017

I have tested this item successfully on d1351e0

I have joomla staging with sample testing data installed.

Before patch page has ~240 KB
After ~100 KB


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

avatar Quy Quy - test_item - 8 Dec 2017 - Tested successfully
avatar Quy
Quy - comment - 8 Dec 2017

I have tested this item successfully on d1351e0


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

Ready to Commit after two successful tests.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 12 Dec 2017

For those of you not experiencing a crash, were you running in debug mode or not? I suppose that may make a difference.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Dec 2017

@okonomiyaki3000 no Debug-Mode running at Test.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 12 Dec 2017

@franz-wohlkoenig Debug mode will make it more likely that you'll experience an out-of-memory crash because it adds quite a bit of memory overhead. It could be that this crash is not likely to happen at all unless you are using debug mode.

avatar mbabker mbabker - change - 21 Dec 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-12-21 00:11:09
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 21 Dec 2017
avatar mbabker mbabker - merge - 21 Dec 2017

Add a Comment

Login with GitHub to post a comment