Support » Plugin: Yoast SEO » Fatal Error with update to 2.3.2

  • Hi

    Recently updating to the latest version of YaostSEO has caused a fatal error in the admin section (white screen).

    The error is
    Fatal error: Call to undefined function is_customize_preview() in /wp-content/plugins/wordpress-seo/admin/class-admin-init.php on line 104

    Which is this:

    // Only add the notice on GET requests and not in the customizer to prevent faulty return url.
    			/*if ( 'GET' !== filter_input( INPUT_SERVER, 'REQUEST_METHOD' ) || is_customize_preview() ) {
    				return;
    			}*/

    As you can see from the copy and paste I have commented out that section of code which looks like fro the comment only affecting GET requests. Commenting out fixes the fatal call and the plugin still works but not sure exactly what this is for.

    Hoping Yoast can comment on this to shine some light onto the problem.

    https://wordpress.org/plugins/wordpress-seo/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also getting a fatal error message:

    Fatal error: Call to undefined method DateTime::getTimestamp() in /xxx/xxx/sitename.com/wp-content/plugins/wordpress-seo/admin/google_search_console/class-gsc-issue.php on line 82

    Hi guys,

    Im not a technical guy by any means and am really freaking out because All i did was install the yoast plugin to a clients business wordpress site and and soon as i hit activate plugin something happenned and now I get this message

    Fatal error: Call to undefined function is_customize_preview() in /home/avonlea/public_html/wp-content/plugins/wordpress-seo/admin/class-admin-init.php on line 104

    can someone please help me out i dont know what to do.

    I cant do anything in the dashboard now without it going to a white screen with this message displayed, is this the same problem you guys had and how did you fix it ?

    My email is Theesanpanther@gmail.com

    thanks

    @theesanpanther: Reason could be an outdated WordPress 3.x version, is_customize_preview() was introduced with WordPress 4.0 one year ago.

    Thanks for replying really appreciate it.

    Yeah a web dev friend of mine said the same thing, Ill go in through the TFP and manually delete yoast to get control of the dashboard again.
    He thinks that should fix it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error with update to 2.3.2’ is closed to new replies.