Forums

[Plugin: Wapple Architect Mobile Plugin for WordPress] Fatal Error undefined esc_attr() (3 posts)

  1. mobile_guy
    Member
    Posted 3 weeks ago #

    When I go to the plugins page inside the wordpress admin section I see the following error:

    "Fatal error: Call to undefined function esc_attr() in ***\wp-content\plugins\wapple-architect\admin\functions.php on line 208"

    I am able to view the Architect module on the left (it doesn't actually show under plugins... correct?) and edit settings, however, the plugin is not actually working and "may" be preventing me viewing another particular plug-in I would like to activate.

    I'm using wordpress 2.7 w/ Wapple Architect 1.5.9.

    http://wordpress.org/extend/plugins/wapple-architect/

  2. uwonder
    Member
    Posted 2 weeks ago #

    This plugin now seemingly requires at least Wordpress version 2.8, not 2.0 as stated on the plugin website. The WP function “esc_attr()” is only in WP 2.8 and later.

    If you want to “fix” this error and maintain your older WP version, do something like this at the top of architect/admin/functions.php file:

    if(!function_exists(’esc_attr’))
    {
    function esc_attr($string)
    {
    return htmlspecialchars( $string, ENT_QUOTES);
    }
    }
  3. rgubby
    Member
    Posted 2 weeks ago #

    Hi!

    thanks for the bug report and the suggested fix!

    I've put something similar into the latest version but have grabbed the actual "esc_attr" (and accompanying functions) as they are in 2.8.0.

    If you upgrade to 1.5.11 (when it's available on your site) it'll fix your problem!

Reply

You must log in to post.

About this Topic