• Resolved heiglandreas

    (@heiglandreas)


    Hi.

    In a setup where WP_PLUGIN_URL and WP_PLUGIN_DIR are already set the plugin can not be activated due to a fatal error in line 39 of googleanalytics.php.

    This is because of line 27 and 30 where – despite a previously defined WP_PLUGIN_URL/DIR – the path to the plugin is defined via WP_CONTENT_URL/DIR . '/plugins/' . GA_NAME.

    Replace those two lines with the safe WP_PLUGIN_URL/DIR . '/' . GA_NAME and everything works like a charm!

    Alternative would be to use plugin_dir_path resp. plugin_dir_url.

    Cheers

    Andreas

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin breaks when WP_PLUGIN_DIR and WP_PLUGIN_URL are set’ is closed to new replies.