giving WordPress its own directory will break this plugin.
I have my content directory set to /content, while WordPress i located in /wordpress. This will give errors in admin like:
/wordpress/content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php is not a valid MVC template
This is because the plugin is using ABSPATH to locate template files, instead of plugin_dir_path() (ABSPATH is for loading WordPress files). The method find_template_abspath() in Mixin_Mvc_View_Instance_Methods, will not be able to locate template files, because $_document_root is wrong!
The use of ABSPATH to locate plugin files should be completely removed.
- The topic ‘Error loading MVC templates’ is closed to new replies.