RuntimeException thrown – not a valid MVC template
-
RuntimeException thrown
(full server name and path…) \wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\templates\upload_images.php is not a valid MVC templateI have been frustrated by this problem for over a week and probably read every forum out there. Although I’ve seen similar postings re. “the not valid MVC template”, mine seems to be a bit different. At first, I thought this was a migration issue, but now it seems that it is not.
Yes, I’m using a Windows hosting server. It’s IIS 7.5 which is apparently the most compatible with php and often used for wordpress. It’s running php 5.6, my wordpress is 4.5.2 and NextGen gallery Version 2.1.43.
I developed a complete wordpress site with several NextGen galleries locally on my Windows PC using Wampserver3 and everything worked as intended. When I migrated to the live Windows webserver “correctly”, I could not go to any page that contained a NextGen gallery as I would get a similar Runtime Exception thrown with reference to the full server name along with the “\nextgen_addgallery_page\templates\ <file>.php is not a valid MVC template”. Furthermore, I could not add a gallery, I could not get into the Gallery Settings or Other Options. At each attempt I got the Runtime Exception. I could not even Customise my theme because when I clicked, I got…
“Edit Add NextGEN Media RSS
NextGEN Media RSSRuntimeException thrown
(full path)\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\widget\templates\form_mediarss.php is not a valid MVC template”
By the way, in the error message, the server path name (or UNC name) is missing the 2 leading backslashes (a possible clue?)
When I deactivated and deleted NextGen, I could only then customise my theme without error. Since I could not get at the reset tool within settings, I download the stand-alone reset plugin – but that did not change anything. I then installed the previous version of NextGen (2.1.31), but that also made no difference.
I then deleted all my wordpress files on the server and deleted the database, followed by a fresh plain install of wordpress and fresh new database. After confirming all was good, I did not add any themes or any other plugin, I only installed NextGen. However, again, I cannot add a gallery, cannot go into gallery settings, cannot go into other options and I cannot customize my theme. I tried with Twenty Sixteen, Fifteen and Fourteen. I even installed the Reset tool again just in case and ran it – no difference. I contacted my hosting provider and got them to make sure all appropriate permissions were set on my web space along with writable folders. All other themes and plugins work fine, the only exception is NextGen. Again, I cannot customise any theme unless I remove NextGen from my site.
It seemed to me that NextGen was the best image gallery plugin for my needs and after investing so much time into this I really don’t want to move on to a different solution. So I hope I can get some help in resolving this – thanks!
- The topic ‘RuntimeException thrown – not a valid MVC template’ is closed to new replies.