Forums

[Plugin: NextGEN Gallery] Error: class-snoopy cannot be included (5 posts)

  1. nemo.vrusso
    Member
    Posted 3 years ago #

    ATTENTION: this issue only happens with WordPress Mu. I tested on latest classic WP and all goes fine.

    When I use the quickbutton in the rich-editor I get the following error:

    require_once(../wp-includes/class-snoopy.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/apache2-default/mysite/wp-admin/admin.php on line 10

    The inclusion of "class-snoopy" file in the admin.php only exists in WPMU. That inclusion works fine when NGGallery does not include wp-admin/admin.php in its sources. But when it does, the quick button open the little window containing the above error instead of the expected functionalities.

    Anyway, I have a suggestion for Alex (the plugin developer and mantainer): why do you not drop the quick button and handle all via the new media manager (from 2.5). I have seen you have already added tha ability to browse a NextGen Gallery via that manager. Why do you not add the ability to add a complete gallery/album via the same manager?

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Alex Rabe
    Member
    Posted 3 years ago #

    Is class-snoppy.php not a part of WPMU ? Maybe the direct call of windows.php causes this problem

  3. nemo.vrusso
    Member
    Posted 3 years ago #

    It is: /path/to/wpmuinstall/wp-includes/class-snoopy.php
    This file is included by the admin.php file of WPMU. This normally does not generate any issue. But when your plugin include admin.php, it does.

    I found this "hacky" solution. He provides a number of fix: some of them regards your plugin. Could you consider to include that fixes while I open a ticket on the WPMU trac to request the small core change needed?

    Thank you so much.

    Vincenzo.

  4. Alex Rabe
    Member
    Posted 3 years ago #

    Ok, I see

    i need to review this plugin for WPMU, after V1.00 I will have a look for it

  5. nemo.vrusso
    Member
    Posted 3 years ago #

    Glad to hear that! Thank you for your great effort about this awesome plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic