I'm getting a fatal error with the Wikitools module (specifically when I'm going to the revisions page).

===
PHP Fatal error: Call to undefined function pager_query() in /path/to/sites/all/modules/wikitools/wikitools.admin.inc on line 124
===

It looks like Drupal 7 no longer uses the pager_query() function.

CommentFileSizeAuthor
#5 wikitools-query.patch2.42 KBThoul
#1 1141616.patch2.39 KBjpmckinney

Comments

jpmckinney’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.39 KB

Try this patch. Untested.

Anonymous’s picture

Oh, thanks! I will try that tonight - sorry - I was out of town so I was unable to take a look at the issue. :)

Starminder’s picture

Are there any plans to continue progress on D7?

itman’s picture

The patch didn't work for me, sorry. I am getting an error:

PHP Fatal error: Call to a member function where() on a non-object in .../sites/all/modules/wikitools/wikitools.admin.inc on line 138,

Thoul’s picture

StatusFileSize
new2.42 KB

The patch in #1 didn't work for me either, but I used it as a starting point to craft a solution. It was pretty close and just needed a few tweaks to get it working. The result is this patch.

It has been tested a little, but not extensively. Please note, I am very new to Drupal, so I might not have done everything quite right. This is the very first bit of Drupal code I'm sharing with anyone.

sanduhrs’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Appears to be working fine!

davydog’s picture

This was the error message I got when I had the 7.x-1.0-alpha1 version installed:

Call to undefined function pager_query() in (path-to)/sites/all/modules/wikitools/wikitools.admin.inc on line 124.

Neither patch worked for me. My attempts to apply either patch were automatically aborted during each try.

I uninstalled the 7.x-1.0-alpha1 version and installed the 7.x-1.x-dev version instead.

So far, the 7.x-1.x-dev version appears to work, although some of the functionality has disappeared (like the ability to check for duplicate titles, for instance).

gisle’s picture

Title: Fatal error » Fatal error when looking for duplicate titles.
Issue summary: View changes
Parent issue: » #2350531: Drupal 7 port of Wikitools

The patch posted in this thread has been rerolled into wikitools-drupal7-port-rerolled-2014-oct-4-0001.patch to apply cleanly to the HEAD of 7.x-1.x.