Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » Errors referencing MVC Template?

Viewing 15 replies - 1 through 15 (of 68 total)
  • 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.

    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

    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?

    Plugin Author photocrati

    (@photocrati)

    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.

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

    Plugin Author photocrati

    (@photocrati)

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

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

    Thanks.

    Hello,

    I have same problame.
    🙁
    But a dont have backup from files…. to copy back it.
    🙁

    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

    Plugin Author photocrati

    (@photocrati)

    @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/

    thx.
    i did it.

    it’s working again

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

    Plugin Author photocrati

    (@photocrati)

    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.

    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

    Home

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

    Thanks in advance

    Paul

    Plugin Author photocrati

    (@photocrati)

    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

    RuntimeException thrown here as well 🙂

Viewing 15 replies - 1 through 15 (of 68 total)
  • The topic ‘Errors referencing MVC Template?’ is closed to new replies.