Forum - jschmidt-systemberatung.de

× jsWeather Joomla Module and Applications

images/close.png - Failed to load resource

  • Paul
  • Topic Author
  • Fresh Boarder
  • Fresh Boarder
More
4 months 5 days ago #1611 by Paul
Hi, I have recently implemented version 2.0 of jsweather on a joomla 5.4.0 website. Using layout: combined2 and my own lightly modified style sheet (although the same problem occurs with module style sheet: image background) 
When selecting a forecast date button the window opens and all looks normal except the close icon is not showing. On a chrome browser the following error is showing in the console: "Failed to load resource: the server responded with a status of 404 (Not Found) for close.png"
Looking more closely it appears that there is a call to a resource folder path that does not exist.
The server is being asked to look for www.rogerscitygolfclub.com/about/media/m...her/images/close.png
The file is located at www.rogerscitygolfclub.com/media/mod_js_...her/images/close.png
I have the weather forecast module located on the main menu option "about" so that seems to be the reason for the problem. 
I noticed the same problem with another site (not mine) see:  thisischinnor.co.uk/home/weather
Please advise if there is a setting I have missed when implementing you very useful weather module.
Thank you.

Please Log in or Create an account to join the conversation.

  • Paul
  • Topic Author
  • Fresh Boarder
  • Fresh Boarder
More
3 months 3 weeks ago #1613 by Paul
It was disappointing not to receive any comments or feedback from my post made over 10 days ago, so I took a look at the code behind the issue. I am not a php programmer, but after looking at the code within /modules/mod_js_weather/tmpl/combined2.php I discovered that by modifying line 175 with a '/' in front of the url for the close.png the problem was resolved. 
The corrected line 175 looks like this:
$close = "<img onclick=" . $onclick . " title='" . Text::_('BUTTON_CLOSE') . "' class='close-button' src='/media/mod_js_weather/images/close.png' width='20'></a>";
Perhaps Jochen can incorporate this small fix in his next release of js_weather.
Thanks again for a very useful joomla add-on module.
Paul 

Please Log in or Create an account to join the conversation.

Time to create page: 0.558 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.