Support » Plugin: Stout Google Calendar » [Plugin: Stout Google Calendar] php warnings running plugin

  • I get many errors (warnings?) when using the stout-google-calendar plugin (1.2.3) on our Windows server, running Apache 2.2:

    PHP Warning: is_readable() []: open_basedir restriction in effect. File(D:\home\\WWW\wordpress/wp-content/plugins/D:\home\\WWW\wordpress\wp-content\plugins\stout-google-calendar/languages/ is not within the allowed path(s): (d:\home\ in D:\home\\WWW\wordpress\wp-includes\l10n.php on line 334

    I changed some lines in the code:


    old code:
    $plugin_dir = dirname(__FILE__);
    load_plugin_textdomain( ‘stout-gc’,’wp-content/plugins/’.$plugin_dir, $plugin_dir);

    new code:
    $plugin_dir = dirname(plugin_basename(__FILE__));
    load_plugin_textdomain( ‘stout-gc’, false, $plugin_dir);


    old code:
    load_plugin_textdomain( ‘stout-gc’,null, dirname(__FILE__).’/languages/’);
    new code:
    load_plugin_textdomain( ‘stout-gc’,null, dirname(plugin_basename(__FILE__)).’/languages/’);

    Can you implement these changes into the next release of the plugin?


  • The topic ‘[Plugin: Stout Google Calendar] php warnings running plugin’ is closed to new replies.