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:
Yeah definitely an issue there when I updated. This was the full message that popped up.
/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!
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.
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?
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?
Paul – Sure, you can safely roll back. See our guide here:
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
@csercsaba: You can roll back without having backed up first. There’s a link to the old NextGEN files on our guide above:
На версии 2.0 нельзя добавить новые анонсы, поле ввода не активно
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:
There are instructions, cautions, and known issues on that page as well.
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.
If not, that’s OK too.
- The topic ‘Errors referencing MVC Template?’ is closed to new replies.