Discussion about Hot Spinner Joomla module.

Hot spinner module causes 500 error

  • admin8
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
1 year 10 months ago #49860 by admin8
Hi,
I have tried the Hot Spinner on the following page but when I enable the module I receive a error message (The server returned a "500 - Whoops, looks like something went wrong.")
www.carregtec.com/test
Thanks
 

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 10 months ago #49862 by milos
Hello,

What's your PHP version? Also, it's necessary to enable error reporting in Joomla global configuration and/or in hosting so we can see what causes the error.

Regards,
Milos

Please Log in to join the conversation.

  • admin8
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
1 year 10 months ago #49866 by admin8
Hi Milos,
PHO version is 8.1
I have enabled error reporting.
Thanks
John

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 10 months ago #49867 by milos
Hello,

Please edit the file /modules/mod_hot_spinner/tmpl/default.php and around line 88 change this part:
Code:
$imgfile = explode("?", $rotatingImage[$loop]); $mime = pathinfo($imgfile[0], PATHINFO_EXTENSION); $handle = fopen($imgfile[0], "r"); $imgbinary = fread($handle, filesize($imgfile[0])); fclose($handle); if(strtolower($mime) === 'jpg') $mime = 'jpeg';

to this:
Code:
$imgfile = explode("?", $rotatingImage[$loop]); $imgfileJ4 = explode("#", $imgfile[0]); $mime = pathinfo($imgfileJ4[0], PATHINFO_EXTENSION); $handle = fopen($imgfileJ4[0], "r"); $imgbinary = fread($handle, filesize($imgfileJ4[0])); fclose($handle); if(strtolower($mime) === 'jpg') $mime = 'jpeg';

You can also re-download the module from our website and re-install it if it's easier.

Regards,
Milos
The following user(s) said Thank You: admin8

Please Log in to join the conversation.

Time to create page: 0.239 seconds
Powered by Kunena Forum