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.
I am seeing some weird behaviour where after I clear the cache by requesting the module page on the admin interface the profile will display on the account info page but on the second and subsequent loads it will not display. I have had a look at this with devel themer and it appears as if the template is getting called (I have my own themed template) but that both the $node and $tabs variables are not set.
Comments
Comment #1
fagohm, is it displayed afterwards again? Is the node still there?
Comment #2
yellek CreditAttribution: yellek commentedThe node is still there, I can see it in another view but the link never appears again. I can see static text put into the template but as I said the $node and $tabs variables have no data.
Comment #3
yellek CreditAttribution: yellek commentedAny ideas on this? It is still occurring and I need to get it resolved before my site goes live.
Comment #4
flevour CreditAttribution: flevour commentedFago,
I can confirm this bug. The way I can reproduce this is with following steps (performed in a not vanilla environment):
* have a content profile show up on the user profile page as a complete node
* refresh any time you want and get what you expect, the profile is there
* copy content_profile-display-view.tpl.php to your active theme folder
* IMPORTANT: go to user profile page
* clear cache
* see the output as before
* refresh: the content profile disappears.
Comment #5
fagoI've marked http://drupal.org/node/309116 as a duplicate of this.
Comment #6
fagoI've opened this drupal issue for this bug: http://drupal.org/node/314819
Comment #7
fagoFor now I've implemented an workaround, which manually includes the file when needed.
Comment #8
yellek CreditAttribution: yellek commentedWhat version of the plugin is this fix released in?
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
courtney CreditAttribution: courtney commentedI'm re-opening this since I can recreate exactly as described in comment #4 .
Using 6.x-1.0-beta3.
* have a content profile show up on the user profile page as a complete node
* refresh any time you want and get what you expect, the profile is there
* copy content_profile-display-view.tpl.php to your active theme folder
* IMPORTANT: go to user profile page
* clear cache
* see the output as before
* browser refresh: the content profile disappears.
If I then remove the content_profile-display-view.tpl.php from my theme folder and clear the cache, then the content profile shows up again and stays after browser refresh.
Comment #11
asak CreditAttribution: asak commentedI think i'm having this same issue going on... but not sure... it's tricky!
(subscribing...)
Comment #12
andypostif someone good with core please review #314819: file includes for theming hooks fail with theme overrides.
It seems to me fix this can help reduce .module size by moving preprocess functions to includes
Comment #13
fagoClosing old issue, please reopen if the problem persists.
Comment #14
andypostLet's postpone this until #314819: file includes for theming hooks fail with theme overrides.
This is a wellknown bug with php-templates in d6 now it's fixed in d7
If anyone review and rtbc patch for d6 we can close this issue.
Comment #15
davej CreditAttribution: davej commentedI was getting:
PHP Fatal error: Call to undefined function content_profile_get_add_path() in ...template.php
in theme override function phptemplate_content_profile_display_add_link (which is a copy of theme_content_profile_display_add_link with only text changes) - but only when viewing another user's account as admin. Version: 6.x-1.x-dev 2009-Sep-16 with patch from http://drupal.org/node/334292#comment-2090078 .
Fixed by replicating the existing workaround (content_profile.module line 512):
at line 525, i.e. for the
elseif
case as well as theif
case.Dave
Comment #16
andypost@davej please try patch from http://drupal.org/node/314819#comment-1600358
Comment #17
davej CreditAttribution: davej commented@andypost: I applied http://drupal.org/files/issues/theme_reg_hook_discovery-D6.patch, visited & saved admin/build/themes & admin/build/modules but still got the error described at comment #15. Which admittedly is not the same problem as the original poster's here - I posted here due to the comment in the code referring to this issue.
Dave