• Hi,

    After installing this plugin on WP 2.9.2 and activating it, I get the error

    Plugin could not be activated because it triggered a fatal error.
    
    Fatal error: Call to undefined function home_url() in /homepages/23/d278046665/htdocs/free-jazz.net/wp-content/plugins/wp-moneybookers-shortcodes/wp-moneybookers-shortcodes_v1.php on line 53

    Sounds like get_option(‘home’) should be used to meet the claimed “Requires WordPress Version: 2.6 or higher”

Viewing 1 replies (of 1 total)
  • Replacing line 53 with

    define( "MONEYBOOKERS_URL_PLUGINS", plugins_url( '', __FILE__ ) );

    does the trick and should also work in WP3.x … in any case, hard-coding wp-content/plugins/ in a path is NOT a good idea as WP allows for alternative plugin locations. This means plugins do not have to be under wp-content/plugins/ in every installation. Also, there is /mu-plugins/ for multi-site installs. The function plugins_url() is created just for those cases.

Viewing 1 replies (of 1 total)
  • The topic ‘undefined function home_url() -> WP 2.9 incompatibility’ is closed to new replies.