Viewing 15 replies - 31 through 45 (of 68 total)
  • I’m getting the ‘RuntimeException thrown’ with 2.0.40 and a fresh install of WordPress 3.8. I’m running the same combo on other servers without issue. This particular install is on a Network Solutions hosting account (not my choice!) and it’s only happening on certain settings pages.

    Plugin Contributor photocrati

    (@photocrati)

    @karks88 – Although I do not recall exactly what needs to happen, I do recall NetSol WordPress installations have something special that needs to be done for them to work correctly. You might want to look at what documentation they offer … I believe it has to do with “home URL” but I could be mistaken.

    – Cais.

    @photocrati – Thanks for your help! I figured it was something to do with NS.

    Plugin Contributor photocrati

    (@photocrati)

    @karks88 – You’re welcome, I hope it is all sorted out now.

    – Cais.

    @photocrati sorry to say but its not sorted out for me.

    MVC template issue is still there. e.g. goelji.com/wallpapers

    can you guide me to any solution?

    The issue is caused by this plugin not using the WordPress API for determining file paths and urls and instead doing their own thing.

    NGG assumes that everyone has their plugin dir located under the document_root, which is not true for a decent number of installations.

    As user avocado pointed out in his comment to this thread, the document_root is not necessarily the correct path to the plugin dir.

    This not only causes issues with the mvc templates, but also with embedding static js and css files. I will file a bug with them where I will go into more detail.

    Plugin Contributor photocrati

    (@photocrati)

    @goelji – I would recommend starting a new topic for the issues you are seeing … or submitting a Bug Report to address your specific site.

    @kwisatz – Thank you very much for your Bug Report and the suggestions you offered. I have put them forward to our developers for review.

    – Cais.

    Yesterday I upgraded to 2.0.40 and started receiving the following error. I followed your instructions to roll back to the previous version, which was 2.0.33, I’m still getting the same error. I have two questions.

    “RUNTIMEEXCEPTION THROWN

    /home/fwg/public_html/eventspace.floatingworld.com/wp/content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php is not a valid MVC template”

    1. How far do I need to go back to get this fixed.
    2. Is there a fix for this long term so that I can use the latest version.

    From what I’ve read this should have been fixed but I’m still having the issue.

    We’re using the latest version of WordPress, 3.8.

    I’m in agreement with @kwisatz — the problem, and fix as per @avocado works. There has been a long-standing and ongoing WP bug running on this topic too, that affects other plugins (like, W3TC), found here. Although it refers to symlinked plugins, the concept and issue is the same.

    For anyone lazy, here’s a patch as another way to roll this fix out:

    --- class.mvc_view.php.ORIG     2013-12-22 13:34:23.000000000 +1100
    +++ class.mvc_view.php  2013-12-27 19:35:53.000000000 +1100
    @@ -240,7 +240,7 @@
            $path = $path . '.php';
    
               $retval = $fs->join_paths(
    -                $fs->get_document_root(),
    +#               $fs->get_document_root(),
                     $this->object->get_registry()->get_module_dir($module),
                     $settings->mvc_template_dirname,
                     $path
    Plugin Contributor photocrati

    (@photocrati)

    @wheatland – If the error was not appearing prior to 2.0.40 and you were using 2.0.33 without issue then you should have been able to roll back to version 2.0.33 … since this is not the case, has there been any other updates you may need to review as well?

    @lingfish – Thanks for sharing that “patch” … I have forwarded it to our developers to review as well.

    – Cais.

    The issue, at least for me, is much larger. Most of the css etc isn’t loading either, due to WP_CONTENT_DIR buggery, or the wrong use of get_document_root().

    This is my first-time installed NGG, and it basically doesn’t work ??

    I’ll probably have to get around this by using mod_rewrite, until both Photocrati and/or the WP developers finalise the bugfixes. My issue is a double-punch — the NGG bug, and symlinking (due to using Debian).

    Adding more to this again — I just created/uploaded my first gallery, and it has been created under the “real” part of the filesystem, not the symlinked variant ?? Almost like, the plugin did its own choosing of paths at a filesystem level (I assume to create the wp-content/gallery parent), but of course when referring to images/thumbs, is relying on URI pathing.

    Gah, what a mess.

    I think I know why it is making the gallery/ subdirectory under DOCROOT. Within modules/ngglegacy/admin/functions.php:

    // define relative path to gallery inside wp root folder
            $nggpath = $defaultpath . $name;
    
                    // 2. Create new gallery folder
                    if ( !wp_mkdir_p (WINABSPATH . $nggpath) )

    And it would appear that wp_mkdir_p() creates relative to DOCROOT, and not WP_CONTENT_DIR ??

    Very inexperienced WP, Photocrati, NextGen user here. My site has been stable and functioning despite my lack of knowledge for a couple of years now. Site still live and functioning.

    On 24 Jan I received email notification that my site had been updated automatically to WordPress 3.8.1. (A first? Usually I update manually?) And today I updated two plugins. Now on my Dashboard my Photocrati menu shows 6 updates outstanding, and when I go to the Photocrati menu it says:
    “RuntimeException thrown. /home7/elizabw8/public_html/templates/admin_page.php is not a valid MVC template”

    Ahh, yes, I have also been struggling with changing my home page today. So I could have caused this myself through ignorance. The updates might be a red herring.

    Help? Please? If I’m not beyond all help… And assume no useful knowledge. Thanks.

    Any news concerning the issues desribed by kwisatz? Those bugs make the NGG plugin unusable for a considerable number of WP installs.

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