index.php is not a valid MVC template
-
Hey there, just found a thread here that i think describes my problem but i am unsure on the resolution that was done at that time: https://www.ads-software.com/support/topic/errors-referencing-mvc-template/ (and unfortunately cannot comment on that thread which SUCKS because it breaks continuity of the problem but here we are)
Background: I have inherited a wordpress site that was “frozen in time” at version 4.1.18. This was developed for my company as a one off project and i was warned never to update the site because of some hacked custom code or something like that. I am not a programmer.
We have decided to move all websites to AWS cloud. So in the process of moving this site, i broke the gallery.
Problem: Migrating the site to aws, and i get the error below on the gallery page:
/var/app/current/SITENAME/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php is not a valid MVC template
Additionally, in the apache error logs, the following is logged when i hit the gallery page:
PHP Fatal error: Using $this when not in object context in /SITENAME/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php on line 3
Other info: All files are the same, database is the same. We have moved from windows host to linux, but php is still version 5.6 on both (5.6.10 on windows 5.6.30 on aws).
It seems like the rest of the website works fine, its just this one component that does not load. And it works fine on the currently live site.
Any ideas? I tried to update just the “next gen” plugins but that breaks the site completely and i had to roll back. Doesnt seem like i can upload a picture to this forum, so i will just say that i am running the following versions of next gen plugins:
NextGEN 3D and 2D Animated Flux Slider Template = Version 1.1.1
NextGEN Flex Slider Template = Version 1.7
NextGEN Gallery by Photocrati = Version 2.0.40
NextGen Gallery Powertags = Version 1.6.4
NextGEN Public Uploader = Version 1.8.1
any help appreciated. Otherwise i have to leave this website running in house for now or decommission it, which no one wants to do. And they already said i cant hire a programmer to fix it.
Additionally, i can see that this problem exists all over the web too. Examples:
- The topic ‘index.php is not a valid MVC template’ is closed to new replies.