Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Same thing happens if i try to create a new custom breadcrumb.
Some help?
Comment | File | Size | Author |
---|---|---|---|
#9 | custom_breadcrumbs-token_tree_link-1947948-9.patch | 464 bytes | artem_sylchuk |
error.jpg | 23.54 KB | modum |
Comments
Comment #1
mayur.pimple CreditAttribution: mayur.pimple commentedsame issue +
Comment #2
rutzmosh CreditAttribution: rutzmosh as a volunteer commentedsame issue any resolution thanks
Comment #3
Katharine_Gates CreditAttribution: Katharine_Gates as a volunteer commentedThanks 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
Comment #4
blackra CreditAttribution: blackra as a volunteer and at SK Plus commentedA 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.
Comment #5
blackra CreditAttribution: blackra as a volunteer and at SK Plus commentedTry 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.
Comment #6
andileco CreditAttribution: andileco commentedAdded what appears to be a related issue.
Comment #7
web226 CreditAttribution: web226 commentedThank you blackra, installing Token Tweaks according to your instructions at #5 worked well for me on http://iphonesbaby.co.uk
Comment #8
chicagomom CreditAttribution: chicagomom commentedI 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.
Comment #9
artem_sylchukHello, The token module documentation recommends using theme_token_tree_link over theme_token_tree:
Attached patch changes token_tree to token_tree_link. It fixes configuration page.
Comment #10
aryashreep CreditAttribution: aryashreep as a volunteer commentedThanks @james_kerrigan #9 fixes is working for me.
Comment #11
sean_e_dietrichI have been able to confirm that the following patch works for me and also helps load the page in a shorter amount of time.
Comment #12
sean_e_dietrichMarking RTBC as patch applies.
Comment #13
renatogReally works good!
+1 to it
Comment #15
renatogCommitted to the dev branch.
Thank you all for contributing.
Best,