PHP Fatal error:  Call to undefined function:  comment_page_new_query() in /var/www/modules/views/modules/views_comment.inc on line 218

This when any view that relies on a comment count field with the "With New Count" handler.

Comments

ricmadeira’s picture

Priority: Normal » Critical

I can confirm this too; I started getting this today, after I upgraded to the latest 4.7 views version.

petrescs’s picture

Confirm this is happening in 5.0-beta2 too, with Views 5.x-1.2-beta-1

ricmadeira’s picture

Status: Active » Fixed

This is now fixed, but I think you have to download the 4.7.x-dev version, because it seems the 4.7.x-1.2 version is still the same although the code change has been commited.

The latest 5.x version should work now too.

petrescs’s picture

Still not working - tried in 5.0-beta2 using latest views-5.x-1.2-beta1.tar.gz

When adding a new comment, and then somebody loads /tracker page that should mention the new comment added, they get a blank page instead - at the same time, log displays following:

Call to undefined function comment_page_new_query() in /path/to/modules/views/modules/views_comment.inc on line 195

petrescs’s picture

Version: 4.7.x-1.2 » 5.x-1.2-beta1
Status: Fixed » Active

sorry - forgot to mention version and update status

merlinofchaos’s picture

Status: Active » Fixed

No, ric was right, this is fixed, but it is fixed in the -dev versions, not in the 1.2-beta versions. It'll go out in the next release. SInce you probably can't wait, feel free to download a -dev and use that until a release comes out.

Axel_V’s picture

That is a problem. I have the new module (4.7.x-1.2) up on my running site and it seems I can not move back to the dev version. And yes, I was careful: I have first installed 1.2 on my testsite. All looked fine. The problem is that the error message does not occur to the superadmin, only for normal users but it strangely does not show in the logfiles. So I was convinced everything was fine. Is there anything I can do?

merlinofchaos’s picture

Why can you not go back to a -dev version?

Axel_V’s picture

Just exchanging the 1.2 module for the -dev wouldn't work. Same error message recoccured, probably due to an update in the db when upgrading to 1.2? As I had done changes in the views since my last general update this morning I didn't want to restore to this morning's views db. But I've done that now and everything is sorted.
xl

TheFazz’s picture

Version: 5.x-1.2-beta1 » 4.7.x-1.2

That is a problem. I have the new module (4.7.x-1.2) up on my running site and it seems I can not move back to the dev version.

i too am using the 4.7.x-1.2 version. i would like to know how i can revert to the dev version.

merlinofchaos’s picture

Get the 1.3 version.

TheFazz’s picture

thanks merlinofchaos for quick update. 4.7.x-1.3 works ok now.

Anonymous’s picture

Status: Fixed » Closed (fixed)
Chill35’s picture

Status: Closed (fixed) » Active

Where is the 1.3 version ???? I am having the same problem on a live site !

Blank page with :

Fatal error: Call to undefined function: comment_page_new_query() in /........../sites/default/modules/views/modules/views_comment.inc on line 218

When any REGISTERED & LOGGED-IN non-admin user clicks on 'Recent Posts'.

Chill35’s picture

That version is not on the project page.

Please attach it here.

For people who require a working version of the views module they may not know how to go on CVS. I certainly don't.

Best regards,

Caroline

Chill35’s picture

Status: Active » Fixed

I found where to get it.

http://drupal.org/node/38878/release

A note should be put on the project page because this is a serious bug.

merlinofchaos’s picture

That bug existed only in 1.2 -- 1.3 AND ALL LATER VERSIONS do not have this bug. Please get your version numbers correct.

Chill35’s picture

Very sorry. I am downloading the release now.

Anonymous’s picture

Status: Fixed » Closed (fixed)