Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#331 2021-01-04 00:53:31

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,303
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

kees-b wrote #327879:

I have rather a large number of sections (60+) and after adding two new ones I got this error when accessing adi_menu: ‘fatal error: allowed memory size of 134217728 bytes exhausted’.

Hmm … a couple of possibilities spring to mind, but then again they don’t really make sense:

  1. adi_menu does use recursion and could be disappearing into a loop … but I’m sure I put some code in to prevent it.
  2. arrays are used for internal storage, but I can’t believe that 128MB is being chewed up for only 60 sections

Do you see the error on the admin or public side? May be worth checking there’re no loops – e.g. child1 belongs to parent1 which belongs to grandparent1, grandparent1 belongs to child1. What’re your TXP/adi_menu versions?

Bruce Bowden wrote #327979:

I just hit the same bug but with many fewer sections. Boosting the PHP memory allocation didn’t fix the error But..

My new sections had numeric names: 2020, 2021, etc. Changing the names to 2020events fixed the problem. I was able to leave the title as 2020 so the change won’t impact the final appearance of the site.

Interesting …! Leave it with me, but could you confirm the TXP & adi_menu versions, thanks.

Offline

#332 2021-01-04 02:16:08

Bruce Bowden
Member
From: Melbourne, Australia
Registered: 2020-10-22
Posts: 28

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

TXP version 4.8.4 and adi_menu version 1.4beta13

Offline

#333 2021-01-05 09:34:55

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,303
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Hi kees-b & Bruce Bowden.

Very interesting indeed! Took me a little while to work out what was going on but thanks to the numerical section name clue (thanks Bruce) I was able to nail it … hopefully.

Try this one & let me know how you get on.

Offline

#334 2021-01-05 20:33:45

Bruce Bowden
Member
From: Melbourne, Australia
Registered: 2020-10-22
Posts: 28

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Hi Adi,
That works for me. No problems anymore with numeric section titles.

Thank you for the quick response.

Stay safe
Bruce

Offline

#335 2021-01-06 05:55:01

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,303
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Bruce Bowden wrote #328058:

That works for me. No problems anymore with numeric section titles.

Great … and to draw a line under this long drawn out string of betas here’s the official 1.4 release.

If you’ve been a previous 1.4beta user, visit the adi_menu admin tab immediately after installing 1.4 in order to automatically run an upgrade process.

There’s a raft of updates to the plugin which I’ve listed in the initial post on this thread.

Please note that although it hasn’t been updated fully for TXP 4.7+, it will still be fully functional – albeit with a couple of untranslated language strings in the admin tab. It’s on my to-do list … honest.

Last edited by gomedia (2021-01-08 01:21:37)

Offline

Board footer

Powered by FluxBB