When trying to add the Node:Vote Results relationship in Views, I was getting an ajax error.

After turning off Javascript on views and trying to add the relationship again, the following error appeared:

Fatal error: Call to undefined function content_types_install() in sites/all/modules/fivestar/fivestar.module on line 1801

I guess this is because I don't have CCK installed. However CCK is not required since I'm only using the fivestar widget not the fivestar rating field with axis etc.

CommentFileSizeAuthor
#7 fivestar-618734.patch1.94 KBdawehner

Comments

parasolx’s picture

yeap.. i also having this same problem.

what i remember is i clear views cache under tools then facing this problem concurrently.

iori57’s picture

Status: Fixed » Active

I have the exact same issue! Just managed to fixed it :) See below post

iori57’s picture

Status: Active » Fixed

FIXED:
I guessed we're all wrong, CCK is REQUIRED! I went to http://drupal.org/project/cck and installed CCK and the issue is fixed. :)

Status: Active » Closed (fixed)

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

psampaz’s picture

Status: Closed (fixed) » Active
Issue tags: +CCK, +views, +Fivestar, +relationships, +votingapi

this worked for me also. CCK is REQUIRED!

quicksketch’s picture

We should simply skip over that function call with an if module_exists('content') {. It does not need to be run if CCK is not installed.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new1.94 KB

Here is a patch

EmanueleQuinto’s picture

Works for me

Aracon’s picture

Had the same issue. The patch worked for me.
It has also fixed AJAX error.

jaypan’s picture

I'm surprised this hasn't been fixed yet.

The patch worked for me.

whiteph’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

We can no longer support the Drupal 6 version of Fivestar. It is in security maintenance mode only. When the Drupal 8 version of Fivestar is released, the Drupal 6 version will be officially deprecated.

whiteph’s picture