Code Monkey home page Code Monkey logo

Comments (8)

jkldgoefgkljefogeg avatar jkldgoefgkljefogeg commented on June 23, 2024

functionality broken, when I tried to move a page I got, page not moved

Fatal error: Call to undefined function getRevisions() in lib/plugins/move/helper.php on line 402

from dokuwiki-plugin-move.

TheTomcat14 avatar TheTomcat14 commented on June 23, 2024

This bug seems to be caused by the removal of deprecated code from the dokuwiki codebase.
(reference to the commit dokuwiki/dokuwiki@aa13c9a)

As a quick & dirty fix I added the code for getRevisions() to the file lib/plugins/move/helper.php (at the end of the file, outside the class declaration).
Adding the deprecated code to the plugin "should" protect the functionality from future dokuwiki updates.

A permanent/better solution would be to fix the 2 getRevisions() calls made in the plugin.

Code pasted at the very end of the file lib/plugins/move/helper.php

function getRevisions($id, $first, $num, $chunk_size = 8192, $media = false) { dbg_deprecated('class PageChangeLog or class MediaChangelog'); if($media) { $changelog = new MediaChangeLog($id, $chunk_size); } else { $changelog = new PageChangeLog($id, $chunk_size); } return $changelog->getRevisions($first, $num); }

from dokuwiki-plugin-move.

micgro42 avatar micgro42 commented on June 23, 2024

Your version of the plugin is outdated. Please update the move plugin to the current version.

from dokuwiki-plugin-move.

jkldgoefgkljefogeg avatar jkldgoefgkljefogeg commented on June 23, 2024

How did you determine the version I have is outdated? Did you read the comment above?

from dokuwiki-plugin-move.

micgro42 avatar micgro42 commented on June 23, 2024

lib/plugins/move/admin.php and lib/plugins/move/helper.php do not exist in the current version of the plugin.

from dokuwiki-plugin-move.

jkldgoefgkljefogeg avatar jkldgoefgkljefogeg commented on June 23, 2024

I am confused. These files are not in 2015-10-18 tag either. And the version from dokuwiki store has never been updated?
plugin.info.txt can probably get some update.

from dokuwiki-plugin-move.

jkldgoefgkljefogeg avatar jkldgoefgkljefogeg commented on June 23, 2024

There seems to be some issue with the dokuwiki extension manager. I reinstalled this extension but there were still files modified in 2014 (admin.php, helper.php, even .gitignore). Uninstall and install the plugin solved the problem. Sorry for the noise.

from dokuwiki-plugin-move.

micgro42 avatar micgro42 commented on June 23, 2024

It seems one must explicitly tell the extension manger to remove those old files. The linked pull request should solve this problem in the future.

from dokuwiki-plugin-move.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.