The current code does not check if the 'image' module is installed. This leads to an error on the styles config page.

TODO:

  • Add a module_exists() to see if the image module is available.

Original:

I just installed openlayers 2.x (Feb-26), and i can't add, edit nor clone styles.

This is the error:
Fatal error: Call to undefined function image_style_options() in sites\all\modules\openlayers\modules\openlayers_ui\plugins\export_ui\openlayers_styles_ui.class.php on line 3
As far as i can see, i searched for "image_style_options" function, and it only appears in the detailed file. So i guess something is missing within the file or out of it.

Thanks for your time.

Comments

FAAREIA’s picture

What i meant is: Function is not defined, and it's called from line 30 (not 3, missing 0).
Hope it's clear enought.

FAAREIA’s picture

Status: Active » Fixed

Fixed. Needed to enable image module...

rob c’s picture

Component: OL Styles » OL UI
Priority: Major » Normal
Status: Fixed » Needs work

Sounds more like the backend could use a small check module_exists() to see if the 'image' module is available.

pol’s picture

Assigned: Unassigned » pol
pol’s picture

Issue summary: View changes

Updated issue summary.