[ERROR] Error in weather module

Hello,

 

I’m trying to load the page, but it shows this error:

 

Parse error: syntax error, unexpected '[' in /storage/ssd4/490/17158490/public\_html/core/modules/Weather/Weather.php on line 17

 

And this is the line 17 of the weather.php file

 curl\_setopt($ch, CURLOPT\_HTTPHEADER, ['X-API-Key: '.WeatherData::$api]);

I’ve tried to delete the [ but it shows me another error.

 

Hope you can help me

 

Regards.

phpVMS version?

PHP version?

MySQL or MariaDB version?

 

What weather module?

PHPVMS -> 5.5.2

PHP -> 5.2

MariaDB

 

and the weather module that comes with the StislaSkin

What MariaDB version?

 

Is Curl active on your server?

Is this a new install?

 

The developer of the Stisla skin hasn’t been active on the forum in quite some time. Chances of getting specific skin support or support for any modules that were included are slim.

Is this the skin you are using? If not, provide a valid link to the skin.

That skin is for phpVMS 5.5.2.72 - not phpVMS 5.5.2

Additionally, the weather module needs an API key as explained in the above topic.