WordPress.org

Forums

NextGEN Gallery
[resolved] Errors referencing MVC Template? (69 posts)

  1. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    We're seeing a fair number of users with this and we're working actively on it now. I will post here with additional details.

    If you are having this issues, can you post any details here. You may also want to sign up to get notifications on this thread since this is where we'll post any news on it.

    If you are having serious problems and just need to get your site working, consider rolling back to 1.9.13 until we resolve this. You an see our rollback guide here:

    http://www.nextgen-gallery.com/how-to-rollback-a-version/

    Thanks!
    Erick

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

  2. Space Ship News
    Member
    Posted 1 year ago #

    Yeah definitely an issue there when I updated. This was the full message that popped up.

    RuntimeException thrown

    /home/spaceship/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/templates/display_gallery.php is not a valid MVC template

    Please let us know once this is resolved!

    Thanks.

  3. Delphino
    Member
    Posted 1 year ago #

    Seems that the problem is caused by function join_paths() in class.fs.php. For details refer to line 281:

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

    Here, all url segments are merged and every duplicate is killed. As I noticed on my server, I have two directories named "www", so one "www" is killed out of the queue.

    /var/www/vhosts/webpage/httpdocs/www/wp-content/[...]

    the second "www" is ereased by the array_unique and now all following rebuilding of a valid path fails:

    $retval = /var/www/vhosts/webpage/httpdocs/wp-content/

    Now the exception is thrown. I thought about a short workaround in class.mvc_view.php, replacing the $retval assignment starting at line 242 with the following line:

    $retval = $this->object->get_registry()->get_module_dir($module) . '/' . $settings->mvc_template_dirname . '/' . $path;

    now this thing works fine, but now I have several other problems. I did a rollback on my live system and now I'm testing on my development system again. I'll test again, when the error above is fixed, maybe other calls are done for join_paths() from other places, too and so some of the other following problems are caused by this.

    Hopefully this helps you fixing the problems

  4. PaulCashmere
    Member
    Posted 1 year ago #

    Similar problem. After upgrading the gallery no longer works and the error message [Not a valid template] comes up. How do I fix it to get the gallery showing again?

  5. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    Paul - You'll need to wait for a fix on this one. We've been working on this today and we think we have a fix. But given this fix and some others we're implementing, we're probably going to do an internal testing round, so it may take a couple days to push out the next release.

  6. PaulCashmere
    Member
    Posted 1 year ago #

    thanks. Is there a way to go back to the previous version then and reactivate the gallery until the fix is ready?

  7. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    Paul - Sure, you can safely roll back. See our guide here:

    http://www.nextgen-gallery.com/how-to-rollback-a-version/

    Thanks.

  8. csercsaba
    Member
    Posted 1 year ago #

    Hello,

    I have same problame.
    :-(
    But a dont have backup from files.... to copy back it.
    :-(

  9. IQmatrix
    Member
    Posted 1 year ago #

    I have the same issue:

    /home3/studymat/public_html/products/wp-content/plugins/nextgen-gallery/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php is not a valid MVC template

  10. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @csercsaba: You can roll back without having backed up first. There's a link to the old NextGEN files on our guide above:
    http://www.nextgen-gallery.com/how-to-rollback-a-version/

  11. csercsaba
    Member
    Posted 1 year ago #

    thx.
    i did it.

    it's working again

  12. pminaeff
    Member
    Posted 1 year ago #

    На версии 2.0 нельзя добавить новые анонсы, поле ввода не активно

  13. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all, we think we've resolved this issue for most users. It will come out in public release next week, but if you are having this issue and would like to update to our latest hotfix/beta, you can download it here:

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

    There are instructions, cautions, and known issues on that page as well.

    Thanks.

  14. PaulCashmere
    Member
    Posted 1 year ago #

    Hi Photocrati, I have upgraded to the beta but still cannot display my galleries

    The message is:

    [Not a valid template]

    at http://www.noise11.com/galleries

    and main page

    http://www.noise11.com

    Is there a php file I need to rename? I recall have to do that on a previous version.

    Thanks in advance

    Paul

  15. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    Paul,

    I don't recall a fix that includes renaming a specific php file. Is there any chance you'd be willing to share login credentials so we can see what's happening on your site?

    If so, you can submit them via our bug report forms. Be sure to include a link to this thread and say Erick asked you to send credentials.

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

    If not, that's OK too.

    Thanks,
    Erick

  16. tullemomsemor
    Member
    Posted 1 year ago #

    RuntimeException thrown here as well :)

  17. Greensneak
    Member
    Posted 1 year ago #

    I have a lot of problems after 2.0 installing.
    http://www.nextgen-gallery.com isn't working and i can't get the downgrage instructions :(

  18. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @tullemomsemor: Can you check if the errors specifically says "is not a valid MVC template"? If so, the fix linked above should resolve it for you. If it's different, can you please submit a bug report, and if you are open to doing so, include login credentials (ideally WP and FTP). We'll look into it directly.

    @Greensneak: Download instructions are currently available at: http://www.nextgen-gallery.com/how-to-rollback-a-version/

    If you are posting in this forum and getting the same error, again, a fix is available at the link above.

    If you are getting a different error and want more troubleshooting, can you post in a separate thread?

  19. TestCUCLEAR
    Member
    Posted 1 year ago #

    Receiving the following message after downloading your plugin and attempting to go into any of its options.

    RuntimeException thrown

    /home/content/o/z/ozzyr/html/testing/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/templates/nextgen_basic_album_gallery_display_type.php is not a valid MVC template

    Can you please advise at soonest? Many thanks.

  20. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @TestCUCLEAR: There's a fix available for this. It will be in the next official release but if you would like to upload the fix sooner, you can update to our latest beta that we've made available here:

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

    There's information about what's included and how to update on that page.

    Thanks,
    Erick

  21. Zurd
    Member
    Posted 1 year ago #

    The beta 2.0.2 doesn't show the error about 'MVC Template' but when clicking on an image, it doesn't show, it's like it's invisible. Background do fade but that's it.

    I rollback to 1.9.13 and it's all good, will wait.

  22. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @Zurd - Good to hear it resolved the MVC Template, sorry to hear about the lightbox not working correctly. If anyone else experiences that, I'm wondering if any of you wouldn't mind temporarily deactivating all plugins (including NextGEN) and then clear your browser cache and reactivate NextGEN Gallery only. Does that help? If not, would you also mind temporarily switching to a WP Default Theme like Twenty Thirteen and see if that helps? I know this is an inconvenience, we're very sorry. But it would help us diagnose if this error may be a plugin/theme incompatibility.

    Thanks!
    --Becky

  23. Usmano
    Member
    Posted 1 year ago #

    Hello,
    I have installed your beta. But somethings are not working.
    Seems that the url paths are wrong from Backend

    like: http://mydomain.de//is/htdocs/wp11213867_3CUWPC1JCW/www/myWeb/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow_preview.jpg

    when I change this Path with my firebug to: http://mydomain.de/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow_preview.jpg
    then the image is shown.

    So why this wrong path "/is/htdocs/wp11213867_3CUWPC1JCW/www/myWeb"

    Its same for CSS-files.

    Please Help

  24. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @Usmano - Would you mind creating a new forum thread with this error? This appears to be a different one than this thread topic addresses (Errors referencing MVC Template?).

    Thanks!
    -Becky

  25. bigdawggi
    Member
    Posted 1 year ago #

    Looks like this issue still exists with 2.0.11:
    /Users/matt/web/example.com/html/wp/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php is not a valid MVC template

    The file's looking for the plugin in the WordPress directory (wp) instead of in the defined wp-content directory. The file exists without the 'wp' in the path.

    I'm guessing it's because of non-standard WP_CONTENT directory location.

    define("WP_HOME", 'http://www.example.com');
    define("WP_SITEURL", 'http://www.example.com/wp');
    define("WP_CONTENT_URL", WP_HOME.'/wp-content');
    define("WP_CONTENT_DIR", dirname(__FILE__) . '/'. 'wp-content');

    Site structure is as follows:
    {webroot}/wp == WordPress files
    {webroot}/wp-content == custom wp-content directory (as defined by WP_CONTENT_DIR constant)

    Environment:
    PHP 5.3.25
    Apache/2.2.22 (Unix)
    WP 3.6

    Hope that helps!

  26. bigdawggi
    Member
    Posted 1 year ago #

    Oh, and it had been working previously in 1.9.13. Thanks!

  27. TestCUCLEAR
    Member
    Posted 1 year ago #

    Photocrati, I just transferred a testing website from one domain to a different live domain. All is well with the entire transfer except that the gallery is not appearing on the pages I have them on and I'm getting an error "on those pages" that is reading [Not a Valid Template]. All settings from the testing site are identical to those on the new live site. All images were transferred successfully as well and did verify that the galleries still exist. I deactivated and reactivated the plugin, but no joy. Can you assist by shedding some light. Thanks.

  28. avocado
    Member
    Posted 1 year ago #

    For a WordPress install on a cPanel host with the wp-content directory located elsewhere, I solved this by removing line 242 ($fs->get_document_root(),) of class.mvc_view.php, so that the $retval assignment is:

    $retval = $fs->join_paths(
    	$this->object->get_registry()->get_module_dir($module),
    	$settings->mvc_template_dirname,
    	$path
       );
  29. uncommondepth
    Member
    Posted 1 year ago #

    Getting a "not a valid template" on album attach to post code using both extended and compact. I've tried various settings and can't get it to work.

  30. LesleyannB
    Member
    Posted 1 year ago #

    Still got issue with nextgen plugin - Error "not a valid templete". Went back to 2.27, now upgraded to 2.33, but still not working. Where can I get help with what should be in the settings? Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.