Wordpress Toolkit issue. Call to a member function get_display_type()

Created:

2016-11-16 13:10:33 UTC

Modified:

2017-04-24 11:55:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Wordpress Toolkit issue. Call to a member function get_display_type()

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

WordPress installation shows error while trying to manage it:

PHP Fatal error: Call to a member function get_display_type() on a non-object in /var/www/vhosts/exaple.com/httpdocs/exaple.com/wp-content/plugins/ad-inserter/ad-inserter.php on line 237 Fatal error: Call to a member function get_display_type() on a non-object in /var/www/vhosts/exaple.com/httpdocs/exaple.com/wp-content/plugins/ad-inserter/ad-inserter.php on line 237

Cause

Corrupted/outdated ad-inserter plugin.

Resolution

  1. Disable/remove plugin via WordPress admin panel or manually:

    # mv /var/www/vhosts/example.com/httpdocs/wp-content/plugins/ad-inserter/ /var/www/vhosts/example.com/httpdocs/wp-content/plugins/ad-inserter_old
  2. Refresh installation information at:

    WordPress Toolkit - WordPress Instance - Synchronize

Have more questions? Submit a request
Please sign in to leave a comment.