• I am using WordPress Bedrock which separates themes and plugins from WP core,
    the paths have been configured differently than the default/expected ones.

    In the function for determining the theme name,
    the path to themes folder is hardcoded in this Google Maps Easy plugin:

    [...]
    $temp = explode('wp-content/themes/', $url);
    [...]

    Notice: Undefined offset: 1 in /var/www/web/app/plugins/google-maps-easy/classes/utils.php on line 254

    An alternative that works with all WordPress installations and configuration varieties would be using wp_get_theme()->get(‘Name’); instead:

                if(!function_exists('wp_get_theme')) { // older WPs
                  $activeThemeName = get_current_theme();
                } else {
                   $activeThemeName = wp_get_theme()->get('Name');            
                }

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author supsystic

    (@supsysticcom)

    Hi!
    Thanks for reporting the issue and providing the solution. We will fix this in new version of Google Maps Easy plugin.

Viewing 1 replies (of 1 total)

The topic ‘Issues with WordPress Bedrock / different path than default’ is closed to new replies.