I was enjoying this module, until relevant content block disappeared suddenly. I don't know what's wrong? I checked the settings a few times, disabled and reenabled it, changed block positions, themes, weight, etc. but it's still gone. Unfortunately I don't get any error reports to debug it.
With the following block configuration:
LEFT COLUMN
0. Fivestar: Rate this node
1. Community tagging form
2. Relevant Content: Benzer diziler
3. Popüler Diziler
I get this:
For example:
http://www.focagenc.net/tv/dizi/house-md
OK. Fivestar: Rate this node
OK. Community tagging form
NO. Relevant Content: Benzer diziler
OK. Popüler Diziler
All of these blocks are set to display only on dizi/* pages. I'd appreciate any help. Thanks in advance.
Comments
Comment #1
nicholasthompsonRelevant Content works by taxonomy - does this page have any taxonomy associated with it? Is it a node?
I assume your drupal root is...
http://www.focagenc.net/tv/
Because if I remove the 'tv' bit then I get a Joomla page!
If you use the Devel module, you could try this... Change this bit in function 'relevant_content_block':
to
That will print out the terms at the top of the page which are selected for this relevancy check.
What do you have the block settings configured as on the 'admin/settings/relevant_content' page?
Comment #2
drupaloSa commentedThanks for response. Yes, drupal is in the /tv sub-folder and yes, it is a node and there is a free tagging taxonomy and another normal taxonomy associated with it. When this block disappeared, i installed Similar by terms and it works at this page.
When i tried to add
dpr($term);I get this error:Fatal error: Call to undefined function: dpr() in /var/www/vhosts/focagenc.net/httpdocs/tv/modules/relevant_content/relevant_content.module on line 215At the 'admin/settings/relevant_content' page, there is only one content type "dizi" checked, it has a block title, a limit of 5, and a block header text. The strange thing is that it was working before, then suddenly disappeared.
Comment #3
nicholasthompsonThe function 'dpr' is only available if you have the devel module enabled, hence me asking "If you use the Devel module".
This is rather odd if it WAS working and now ISN'T...
I assume other nodes of the "dizi" type also use the same taxonomy that the example node uses... For example if that House MD node is tagged with terms 1, 2 & 3 then you need and least 1 other node of the "dizi" type tagged term 1, 2 and/or 3.
Do you know if you did anything to stop it working, like created, delete or reconfigure a vocabulary or install another module?
Comment #4
drupaloSa commentedSorry, i didn't know there was a module named "devel". I thougt you were referring to the dev version of relevant content :) I'll check it with devel, and return later.
Yes, nodes are tv-series and there are two vocabularies: One for genre (drama, action, scifi, etc.) and one for free tagging. There several nodes (series) with common genres. And since "similar by terms" works successfully in the same page, i suppose there isn't any problem with taxonomy.
I'm not sure this one. Is it possible that some other module interferes with this?
Comment #5
drupaloSa commenteddpr($term) returns an empty array:
Comment #6
nicholasthompsonOk - thanks for running the test. The issue appears to be that the module isn't picking up any terms at all - and if there are no terms you cant find anything similar!
I'm kinda busy right now - been in a meeting all day - I'll have to take a look at why that would happen.
Comment #7
drupaloSa commentedOk, i won't disable it in my site, perhaps you might need to check page source code, etc.
Comment #8
nicholasthompsonBeen no reply on this for a long time. I have tried to replicate this on the new code I submitted today and cannot replicate... Marking as "fixed" due to being unable to replicate.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.