Hi to everyone.
I can't anymore edit my custom breadcrumbs.
Those i created works perfectly but for some reason i can't edit them anymore because when i try to enter in an edit page, it returns a blank page with only some code inside.
This is what i see on the custom breadcrumb edit page.
error
Same thing happens if i try to create a new custom breadcrumb.
Some help?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mayur.pimple’s picture

same issue +

rutzmosh’s picture

Issue summary: View changes

same issue any resolution thanks

Katharine_Gates’s picture

Thanks all for a great module.

However, I have a similar problem to above in that attempting to access this link: /admin/structure/custom_breadcrumbs/node/add results in a hanging browser. PHP timeout perhaps?

All admin runs through Bartik theme, so it shouldn't be theme problem.

I am in 7.x-2.0-beta1 fwiw.

--KG

blackra’s picture

A very small amount of investigation suggests that this is related to generating a large list of tokens. This can hang (although it does eventually finish - after an hour in my case), timeout or run out of memory.

I vaguely remember there being a similar issue with pathauto about 6 months ago. I wonder whether they are related.

blackra’s picture

Try installing the token_tweaks module and see whether that fixes the issue. I had to set the token depth to 2 to make it work for me.

andileco’s picture

Added what appears to be a related issue.

web226’s picture

Thank you blackra, installing Token Tweaks according to your instructions at #5 worked well for me on http://iphonesbaby.co.uk

chicagomom’s picture

I can confirm that this issue can be worked around by installing the token_tweaks module and setting the token depth to 2. It appears to be a token memory exhaustion issue. In the server logs I found:

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in
[module location]/token/token.pages.inc

However, even with token depth set to 2, on admin/structure/custom_breadcrumbs I am still getting this error on the page:

Strict warning: Only variables should be passed by reference in custom_breadcrumbs_paths_form() (line 272 of /[module location]/custom_breadcrumbs/custom_breadcrumbs_paths/custom_breadcrumbs_paths.module).

I can, however, edit the token paths now. Thanks blackra for the workaround.

artem_sylchuk’s picture

Status: Active » Needs review
FileSize
464 bytes

Hello, The token module documentation recommends using theme_token_tree_link over theme_token_tree:

The preferred method for displaying the token browsing UI is via the theme_token_tree_link() function provided by the token module. Using this method will place a link on the page that when clicked will open a modal window displaying a tree like interface for browsing available tokens. This method is preferred because the list of tokens can get quite large and displaying the entire token tree and the JavaScript required to provide the collapsible interface can slow down loading of pages. Since the token tree is likely not used the majority of time we prefer to defer loading until someone clicks the links requesting the list of tokens and then load it via and ajax call.

Attached patch changes token_tree to token_tree_link. It fixes configuration page.

aryashreep’s picture

Thanks @james_kerrigan #9 fixes is working for me.

sean_e_dietrich’s picture

I have been able to confirm that the following patch works for me and also helps load the page in a shorter amount of time.

sean_e_dietrich’s picture

Status: Needs review » Reviewed & tested by the community

Marking RTBC as patch applies.

renatog’s picture

Really works good!

+1 to it

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Committed to the dev branch.

Thank you all for contributing.

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.