Search code examples
expressionengine

MX Google maps throws a "failed to open dir" php error


I have MX Google Maps installed on an ExpressionEngine website.

When editing a field ( any field ) I'm greeted by this error:

A PHP Error was encountered

Severity: Warning

Message: opendir(/opt/www/old_site/themes/third_party/mx_google_map/maps-icons/): failed to open dir: No such file or directory

Filename: mx_google_map/ft.mx_google_map.php

Line Number: 212

MX google maps tries to use the theme folder path specified in an old site. I've used the correct theme folder path in my general configuration and global template preferences, but MX google maps seems to stick to the old path.

Do I have to change it somewhere else, what am I doing wrong ?


Solution

  • Looking at the add-on source code, it appears to be checking a setting path_markers_icons, and if that is blank, defaulting to the EE theme path.

    You should be able to find the path_markers_icons setting under the global fieldtype settings (under Add-ons > Fieldtypes). I suggest you make the setting blank so that it uses the built in EE theme path and doesn't trip you up in future.

    Also, going by your line number it looks like you're not running the latest version (or at least the version that I just downloaded), so I suggest you upgrade.