Call to undefined function update_options

Call to undefined function update_options()One of the first plugins I installed on my website, was the WordPress SEO plugin by Yoast. A great tool to enhance your on site search engine optimization and this all for free. (Although the author seems to appreciate some gifts.)

 

 

You’ll find detailed information about the WordPress SEO Plugin on it’s own website http://yoast.com/wordpress/seo/.

 

“Call to undefined function update_options()”

Recently, an update to the newest version 1.2.8.1 has become available. This update should work with WordPress 3.4.1. The update went real smooth from within the backend of WordPress. However, a fatal error occurred as soon as you tried to navigate to a page or your backend.

PHP Fatal error:  Call to undefined function update_options() in /path/to/your/wordpress/root/wp-content/plugins/wordpress-seo/admin/class-admin.php on line 441

 

Correct line 441 in the file /path/to/your/wordpress/root/wp-content/plugins/wordpress-seo/admin/class-admin.php

Apparantly, there’s a little typo in the php file class-admin.php on line 441. This is the original statement:

update_options( 'wpseo', $options );

 

You have to change this line to:

update_option( 'wpseo', $options );

 

Don’t forget to save your file! Now you should be able to navigate to your website or backend again.

1 Comment

  1. BigWilly · August 29, 2012 Reply

    well done my son!

Leave a Reply


× 8 = sixteen

Odoo is a suite of open source Business Applications containing a Website Builder, an online Point of Sale (POS), ecommerce integration and a lot more! Learn more about how to get started with Odoo at Odorials.com.
Forget about WordPress, Joomla and Drupal... Discover Odoo, the future of all CMSs!