• Resolved bobwey1

    (@bobwey1)


    My sites crash with 1.22.16 update. I am running the Photocrati theme and the error I get is ” Class ‘Photocrati_Style_Manager’ not found”. If I deactivate the NextGEN plugins, I get an extended version of the error, with more information.

    Photocrati support says the problem is caused by the UpdraftPlus BackUp/Restore plugin. Deactivating UpdraftPlus returns sites to working correctly.

    I will attempt to back-level UpdraftPlus.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Please can you ask Photocrati why they believe that is an UpdraftPlus error? Did they say? The class Photocrati_Style_Manager, as its name suggests, is part of their plugin, and its their plugin that’s trying to load it. A backup plugin has no interest in attempting to load the “Photocrati Style Manager” (and to be explicit, UpdraftPlus does not!), so I think whoever gave you that answer was very confused about something or other.

    David

    Plugin Author David Anderson

    (@davidanderson)

    If you post the “extended version of the error”, I could tell you more.

    Thread Starter bobwey1

    (@bobwey1)

    Extended Error message:

    Fatal error: Uncaught Error: Class 'Photocrati_Style_Manager' not found in /homepages/36/d685786107/htdocs/_bobw/wp-content/themes/photocrati-pro/header.php:2 Stack trace: #0 /homepages/36/d685786107/htdocs/_bobw/wp-includes/template.php(770): require_once() #1 /homepages/36/d685786107/htdocs/_bobw/wp-includes/template.php(716): load_template('/homepages/36/d...', true, Array) #2 /homepages/36/d685786107/htdocs/_bobw/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /homepages/36/d685786107/htdocs/_bobw/wp-content/themes/photocrati-pro/page-without-content.php(6): get_header() #4 /homepages/36/d685786107/htdocs/_bobw/wp-includes/template-loader.php(106): include('/homepages/36/d...') #5 /homepages/36/d685786107/htdocs/_bobw/wp-blog-header.php(19): require_once('/homepages/36/d...') #6 /homepages/36/d685786107/htdocs/_bobw/index.php(17): require('/homepages/36/d...') #7 {main} thrown in /homepages/36/d685786107/htdocs/_bobw/wp-content/themes/photocrati-pro/header.php on line 2

    The 1st 22 lines of the header.php file:

    <?php
        $preset = Photocrati_Style_Manager::get_active_preset();
        extract($preset->to_array());
    
    	$rcp = $wpdb->get_results("SELECT fs_rightclick,lightbox_mode,lightbox_type FROM ".$wpdb->prefix."photocrati_gallery_settings WHERE id = 1");
    	foreach ($rcp as $rcp) {
    		$fs_rightclick = $rcp->fs_rightclick;
    		$lightbox_mode = $rcp->lightbox_mode;
    		$lightbox_type = $rcp->lightbox_type;
    	}
    	$music = $wpdb->get_results("SELECT music_blog,music_blog_auto,music_blog_file,music_blog_controls,music_cat,music_cat_auto,music_cat_file,music_cat_controls FROM ".$wpdb->prefix."photocrati_gallery_settings WHERE id = 1");
    	foreach ($music as $music) {
    		$music_blog = $music->music_blog;
    		$music_blog_auto = $music->music_blog_auto;
    		$music_blog_controls = $music->music_blog_controls;
    		$music_blog_file = $music->music_blog_file;
    		$music_cat = $music->music_cat;
    		$music_cat_auto = $music->music_cat_auto;
    		$music_cat_controls = $music->music_cat_controls;
    		$music_cat_file = $music->music_cat_file;
    	}
    ?>

    Photocrati Support’s response to the problem:

    “…but as weird as it may sound – it appears to be a conflict between the theme and UpdraftPlus”.

    And deactivating UpdraftPlus enables the website to stop having the error.

    Bob

    Plugin Author David Anderson

    (@davidanderson)

    It may indeed be a conflict, but, the chain above is their code from start to finish, so the conflict is caused by a coding error in their plugin and only they have any ability to fix it.

    My bet is that they have a line in their code that tries to load a file called bootstrap.php without specifying that they want the file from their plugin to be loaded, rather than from any plugin that happens to have a file by that name in it (such as UpdraftPlus). (If correct, again, only they can fix that).

    David

    Thread Starter bobwey1

    (@bobwey1)

    I rolled UpdraftPlus back to 1.22.12, and there is no error when opening the site.

    Bob

    Plugin Author David Anderson

    (@davidanderson)

    That’s because UpdraftPlus 1.22.12 doesn’t include a file named bootstrap.php. So, when Photocrati runs a command (if I am right) “load a file with that name” (instead of “load this specific file from our plugin with that name”), then it doesn’t cause a problem. But as you see, that still means that the problem needs to be fixed at its source.

    David

    Hi,

    same here. 1.22.16 crashes my site too.

    Not using the Photocrati, but problem causes by the plugin “Video Background” (https://pushlabs.co/docs/video-background/)

    Thomas

    Plugin Author David Anderson

    (@davidanderson)

    @bisdanner Please post in your own new topic (since you have a different plugin), and include the PHP error log (if you don’t know where to find it, ask your web hosting company where it lives on their setup).

    Thread Starter bobwey1

    (@bobwey1)

    Updated to 1.22.18 and no longer crashes on loading website.

    Thanks for ‘fixing’ the problem that Photocrati wouldn’t address because release 5 is EOS.

    Bob

    Plugin Author David Anderson

    (@davidanderson)

    I do strongly recommend replacing unsupported components. It’s not easy to do so, but on the other hand it’s always going to be a bit nerve-wracking wondering every time you update a plugin whether it will also have code that will re-expose the Photocrati bug again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘1.22.16 Update Crashes My Sites’ is closed to new replies.