MD MEgamenu apparently altering PHP memory limit?

smooresonetrics's picture
smooresonetrics
Wed, 08/22/2018 - 12:02
#1
MD MEgamenu apparently altering PHP memory limit?

As per my previous post about session cookies - we're hosting at Acquia, and they have identified some issues.

In particular, Awe Content/MD Megamenu is altering the PHP memory limit (increasing it). We need to find and disable the code that's doing this, as it's messing with the performance setup on the server.

Please advise.

smooresonetrics's picture
smooresonetrics
Wed, 08/22/2018 - 17:12

OK, found where this came from.
In awe_builder.module, I commented out the following, at line 1086:

//     $memory_limit = intval(ini_get('memory_limit'));
//     //change memory
//     if($memory_limit < 512)
//       ini_set('memory_limit', '512M');
//     // unlimit time
//     set_time_limit(0);
//     $form->updateLinksByNewBaseUrl($oldHost, $base_url);
//     //restore old memory
//     if($memory_limit < 512)
//       ini_set('memory_limit', $memory_limit.'M');

So far nothing broke.

smooresonetrics's picture
smooresonetrics
Fri, 08/24/2018 - 12:46

Update - this edit seems to have broken the site on the Acquia side, though not on my local dev environment.
Loooking for a more elegant solution...

cindy's picture
cindy
Mon, 08/27/2018 - 00:59

Hello,

In file awe_builder.module, please search function "awe_builder_theme" and comment: _awe_builder_auto_convert_url();

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.