• Resolved Robert

    (@hartlrobert)


    Version 3.5.8, latest WP. All sites. 3.5.5 was okay.

    E_ERROR, line 95, 
    /.../wp-content/plugins/seo-title-tag/seo-title-tag-3.5.php 
    Uncaught Error: Call to undefined function is_plugin_active() in /.../wp-content/plugins/seo-title-tag/seo-title-tag-3.5.php:95
    Stack trace:
    #0 /.../wp-includes/class-wp-hook.php(286): SeoTitleTag->detect_yoast_seo('')
    #1 /.../wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /.../wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /.../wp-settings.php(394): do_action('plugins_loaded')
    #4 /.../wp-config.php(48): require_once('/var/customers/...')
    #5 /.../wp-load.php(37): require_once('/var/customers/...')
    #6 /.../wp-login.php(12): require('/var/customers/...')
    #7 {main}
     thrown
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Robert

    (@hartlrobert)

    Solution/ workaround: https://wordpress.stackexchange.com/questions/9345/is-plugin-active-function-doesnt-exist

    seo-title-tag-3.5.php – Line 95

        public function detect_yoast_seo() {
            
            if ( ! function_exists( 'is_plugin_active' ) ) require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
         
            if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) {
                 /* Let's do cool things */
              #error_log( "Yoast SEO installed and active!" );
              $this->yoast_enabled = true;
    
              $this->current_title_tag_key        = "_yoast_wpseo_title";
              $this->current_meta_description_key = "_yoast_wpseo_metadesc";
    
            }
        }
    Plugin Author Stephan Spencer

    (@netconcepts)

    Change, as you described, added to version 3.5.9.

    Thanks.

    Thread Starter Robert

    (@hartlrobert)

    You’re welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The site is experiencing technical difficulties.’ is closed to new replies.