WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
CRITICAL BUG - 'RuntimeException thrown', whole site down (22 posts)

  1. JosefP2
    Member
    Posted 8 months ago #

    I just freshly updated to version 2.0.0
    /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php is not a valid MVC template

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

  2. Petr Veprek
    Member
    Posted 8 months ago #

    Same here. Using WordPress 3.5.2. Adding myself to this thread for follow-up messages.

  3. photocrati
    Member
    Plugin Author

    Posted 8 months ago #

    @JosefP2, @Petr - I've send this over to our developers. Activation errors like this are going straight to the top of the list.

    Did either of you, by chance, install and test one of the NextGEN 2.0 betas on the WordPress instances where you are seeing this error?

    Thanks,
    Erick

  4. JosefP2
    Member
    Posted 8 months ago #

    Dear Eric,

    thank you for quick response. I did not install anything except the official updates available. I always checked to have the up-to-date version whenever WordPress notified me.

    Best Regards,
    Josef

  5. photocrati
    Member
    Plugin Author

    Posted 8 months ago #

    Would either of you be willing to send us credentials for your site so we can see what's going on? If not, that's OK. But having them will allow us to solve this much more quickly.

    If you want to submit credentials, you can consider doing so via our bug report form here:

    http://www.nextgen-gallery.com/report-bug/

    Please note in your report that we asked you for credentials. That just goes directly to an email for our tech support and developers.

    Thanks,
    Erick

  6. datenwerk
    Member
    Posted 8 months ago #

    The problem is in class.fs.php's function join_paths(). The array_unique function will crop the path wrong if there is a word twice in the correct path.

    Short workaround for me was removing array_unique from this function and in class.mvc_view.php's find_template_abspath() remove the first argument of join_paths().

    Dear photocrati members please check if this solution will work in all cases.

    kind regards
    Melanie

  7. dwsmart
    Member
    Posted 8 months ago #

    datenwerk's solution worked for me. Many thanks

  8. krzysiekh
    Member
    Posted 8 months ago #

    I got similar error, but in other location
    wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/templates/display_gallery.php is not a valid MVC template

    Got it right after update few minutes ago.

  9. jayant26
    Member
    Posted 8 months ago #

    Hi datenwerk,

    Could you possibly tell us which files to edit and lines please?

    Much appreciated.

  10. markcorder
    Member
    Posted 8 months ago #

    Same here - my site has crashed with this error :

    " ... public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_singlepic/templates/nextgen_basic_singlepic.php is not a valid MVC template "

  11. admin_purmersteijn
    Member
    Posted 8 months ago #

    Same her - our site also has this error

    "var/www/domains/purmersteijn.eu/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php is not a valid MVC template"

  12. Internus
    Member
    Posted 8 months ago #

    @datenwerk: When I remove the first argument in function join_paths(), it has no effect :-/

    So this solution didn't help me.

  13. datenwerk
    Member
    Posted 8 months ago #

    2 changes are required:

    1. in nextgen-gallery/products/photocrati_nextgen/modules/fs/class.fs.php l. 281 remove array_unique call

    $retval = array_merge($retval, preg_split('/[\/\\\]/', $segment));

    2. in nextgen-gallery/products/photocrati_nextgen/modules/mvc/class.mvc_view.php comment or remove l. 243

    $retval = $fs->join_paths(
      //$fs->get_document_root(),
      $this->object->get_registry()->get_module_dir($module),
      $settings->mvc_template_dirname,
      $path
    );
  14. admin_purmersteijn
    Member
    Posted 8 months ago #

    I've changed above settings and now it's working better, but I get the below error in the widget NextGen Slideshow.

    "Slideshows require the Flash Player and a browser with Javascript support."

    I've tried it in IE, Chrome and Firefox, and all three gives the same error.

  15. Internus
    Member
    Posted 8 months ago #

    @datenwerk: It works fine! Thumbs up! Thank you so much...

  16. jjenkins300
    Member
    Posted 8 months ago #

    My site crashed and shows these messages.

    Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(D:\Inetpub\apollosunguard/wp-content/plugins/D:\Inetpub\apollosunguard\wp-content\plugins\nextgen-gallery\lang/nggallery-en_US.mo) is not within the allowed path(s): (D:\;C:\php5;C:\Temp;C:\Windows\Temp) in D:\Inetpub\apollosunguard\wp-includes\l10n.php on line 339

    Warning: require_once(D:\Inetpub\apollosunguard\wp-content\plugins\nextgen-gallery/wordpress_helpers.php) [function.require-once]: failed to open stream: No such file or directory in D:\Inetpub\apollosunguard\wp-content\plugins\nextgen-gallery\nggallery.php on line 122

    Fatal error: require_once() [function.require]: Failed opening required 'D:\Inetpub\apollosunguard\wp-content\plugins\nextgen-gallery/wordpress_helpers.php' (include_path='.;c:\PHP5') in D:\Inetpub\apollosunguard\wp-content\plugins\nextgen-gallery\nggallery.php on line 122

    I have attached the link for reference: http://apollosunguard.com/

    How may I correct this?

  17. germars
    Member
    Posted 8 months ago #

    I've sent a bug report to the link that you supplied. I'd rather not mess about with code, if I can help it!

  18. robert5
    Member
    Posted 8 months ago #

    tried datenwerk fix myself, got past the not a valid MVC template but my gallery is just text.

    I had an nggallery folder w gallery.php in my theme folder. It was being used by RoyalSlider (a js slider) to display [gallery=201] - does this not work any longer?

    also - if trying to add gallery to a page:
    Fatal error: Call to undefined function get_current_screen() in /home/username/public_html/usernamefolder/wp-content/plugins/advanced-page-manager/lib/pointers.php on line 42

    Rob

  19. Petr Veprek
    Member
    Posted 8 months ago #

    @datenwerk: I (finally) applied your 2-step fix and voila... thanks!

  20. photocrati
    Member
    Plugin Author

    Posted 8 months ago #

    Hi all,

    We've introduced a fix for the "is not a valid MVC template" error. It will be included in the next update, hopefully next week.

    For now, we've package that fix and a number of others into a beta update (currently 2.0.2) that you can download an update to your sites. You can get details and download the hotfix / beta here:

    http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/

    Thanks!
    Erick

  21. Internus
    Member
    Posted 8 months ago #

    Hi Erick,

    thank you for positive information. I will download a beta package on Sunday. Then I will give a feedback.

    Regards,
    Lukas

  22. Qersdyn
    Member
    Posted 8 months ago #

    Hi,

    Here is a rundown that resulted in giving me an "Exception Thrown" fatal error (Could not find class.photocrati_settings_manager_base.php)

    1) I upgraded to Photocrati on my site from my previous version to 4.5.1

    2) I then upgraded my WordPress from 3.5.1 to 3.6

    3) I created a NextGen Gallery and added images successfully to add to Photocrati Gallery on a post.

    4) Went to Add the NextGen gallery and the "Import Gallery" button would not work at all.

    5) Added the images individually but the "Import" button would not work.

    6) Went over to my plugins and deactivated all plugins.

    7) Repeated step 5 but still would not allow to import.

    8) Went to my plugins and try to only activate NextGen Gallary for Photocrati which was 2.0 and still "Exception Thrown"

    9) Grabbed the 2.0.2 beta and uploaded it and removed 2.0 (downloaded to my drive just in case) and still the same error.

    Any assistance would be appreciated. Thanks again.

Reply

You must log in to post.

About this Plugin

About this Topic