Jump to content

[ERROR] Error in weather module


enricsanz

Recommended Posts

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.

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...