backlinks not showing up

Events happening in the community are now at Drupal community events on www.drupal.org.
bob_irving's picture

I'm on chapter 6 of Bill's book. I've successfully created 2 students (Helen and Lucy). They have created blog posts. The links between the posts are working, but the conversations block ("What links here")says "No backlinks found."

I double-checked the links from post to post, and they work correctly. I also went back through setting up the conversations view and I believe I did it correctly.

Any ideas?

I'm really enjoying setting this up and would love to get it rolling in the next week.

Comments

URL alias culprit?

ebrittwebb's picture

I've experienced this same problem. I haven't investigated it, but I wonder if it works only when the path to the node is /node/#. In other words, is backlinks not smart enough to decode a URL alias?

Erik Britt-Webb
drupal@ebrittwebb.com

Has cron been run?

bonobo's picture

The backlinks view is triggered off the search index, which gets built when cron runs. Setting up cron jobs is covered in the Maintenance chapter, and in the handbook at http://drupal.org/cron

To trigger cron manually, go to http://example.com/cron.php (with example.com being the url of your site) -- it helps if you are logged in as UID1

RE URL alias -- that shouldn't matter.

Cheers,

Bill

EDIT: also, re: "the conversations block ("What links here")says 'No backlinks found.'" -- edit the "Empty text" within the view. Deleting the empty text will make it so the block only appears when there are backlinks; customizing the empty text allows for a less generic message. Editing the Empty Text is covered on pg. 152; triggering cron jobs to build the search index is covered on 154.


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

I just deleted the view and

bob_irving's picture

I just deleted the view and redid it all.

I had run cron manually, and the second time I did delete that text for the Empty text field.

Still got the same result however. Hmm.

Could it possibly be conflicting with some other module? For instance, when I ran the cron job, it got some RSS feeds that I had set up with Aggregator. I also noticed I had the Book module activated (from your tutorial on doing a portfolio). I also had the Tapestry theme active, so I went in and set it to Garland.

I'll keep banging away at it. Thanks for the suggestions.

Bob

What happens when you use

bonobo's picture

What happens when you use the core, unmodified backlinks module that comes with Views?


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

nothing happens

bob_irving's picture

I enabled the default backlinks module with no changes, then deleted the conversations view (since I couldn't disable it, which puzzles me).

Same result: nothing.

It's not a deal-breaker, since I doubt that most of my students will go to the trouble to make links back to another post, but will instead just use the comment function. But I do like the functionality and would love to see it work.

On to chapter 8: podcasting and images!

Update -- solved!

bob_irving's picture

Thanks to Bill F for volunteering to log in to my site and see what the problem was. As near as we can figure, I think I modified the block display on the view, but didn't change the default display. This is all new territory to me, and I am very grateful for everyone's help here.

Glad to see others making their way through the book

DBC_'s picture

It's good to hear that others are working their way through Bill's book. I'm just finishing off chpt.13 Tracking Student Progress.

I'd love to see what other people have done when their sites are up and running.

I would also love to see these sites --

bonobo's picture

Really, that would be great -- on a personal level, I would love to see that.

People could add them to this wiki page.

Cheers,

Bill


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

Same Problem

exione's picture

I also had the same problem, I am following the book and get no backlinks. I am using Drupal 6x, thus I had to get the backlinks from the Search module.

Any help will be appreciated.

2 questions

bonobo's picture
  1. Have you run cron on your site?

  2. Do you get any backlinks when using the default, unedited backlinks view?

Also, in the book I recommend pulling the empty text so that the block will not appear when there are no backlinks. However, it can be useful to leave empty text in place while building the view, as you will then see the block whether or not there are any backlinks present.

Cheers,

Bill


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

backlinks problem

exione's picture
  1. No, I have not run cron

  2. I didn't try using the unedited backlinks view. I left the empty text "no backlinks", so I would always see the block with the message "no backlinks"

what is the solution?

exione's picture

Is your solution running cron? I am not sure what do you want me to do.

thanks

Run cron

bonobo's picture

The search index is built when cron is run. If cron has not been run, there is no search index, and therefore no backlinks.


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

Cron

exione's picture

So every time a post occurs, I have to run cron?

Thanks

Yes, but cron isn't designed

jlevy's picture

Yes, but cron isn't designed to be run manually. You should configure cron to be run automatically by your server. For example, on most of my sites, cron runs every hour. You can find more information on cron and instructions on setting it up here:

http://drupal.org/cron

Jeff

My site without reading the book!

aniruddhay's picture

Hello All,

I created this site as my thesis/project and would like our group members to give me feedback. I have not read the book but hope to get my own copy soon.

you can visit my site at httP://research.poly.edu/~epoly Once you log in, please navigate to the CP 900 course.

You can use two credentials,
1)
Login: student
password: student

2)
Login: instructor
password: instructor

For each type of role you will have two different set of course tools as you navigate through the 'CP 900" course. Any comments and suggestions are welcome.

Moved this discussion

bonobo's picture

In order to not hijack the original thread, I moved this to here: http://groups.drupal.org/node/18121


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

filter_format_allowcache($node->format)

donquixote's picture

The search_index() function does a check on filter_format_allowcache($node->format), where $node is the linked node. If the check returns false, the link will not be indexed.

Troubleshooting:
Find the line of code in search.module where this check happens, and add "|| TRUE" to bypass the check. Re-index your nodes (in Site configuration > Search settings), and run cron. If it works now, you are one step further. I assume there is a reason for the check, so I don't know if it is safe to remove it. But for troubleshooting it's a good idea.

The problem is reported here,
http://drupal.org/node/205202#comment-2618298
but probably deserves its own bug report.

URL aliases

lev_lafayette's picture

Hi DonQuixote,

I've tried this - against a personal preference of modifying core modules - with no benefit.

I have found however if the URL path that I add in the page that is doing the linking gives an absolute path name rather than a URL alias then backlinks seems to work.

In order to make the

blackhailang's picture

In order to make the backlinks view available, you need to enable Drupal's core search module. The reason for this is that the backlinks view works off of the search indexes.

The creator of GLOOLS. www.glools.com

@donquixote: [#664124]

gpk's picture

@donquixote: http://drupal.org/node/664124 "{search_node_links} entries are not created if the target is uncachable (e.g. PHP input format)"

backlink not working

biosv's picture

I ran cron job, I enabled Drupal's core search module, but the backlink example from Bill's chap6 still does not work.
It did not work when I first tried about 6 months ago. I reinstalled Drupal 6 and tried again, but it is not still working.
bob_irving, could you tell me exactly what you did to make it working?
thx

Drupal in Education

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: