- Posts: 5
- Thank you received: 0
Discussion about Hot Spinner Joomla module.
Hot spinner module causes 500 error
-
admin8
Inactive member - Topic Author
- New Member
Less
More
1 year 11 months ago #49860
by admin8
Hot spinner module causes 500 error was created 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
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
Less
More
- Posts: 6743
- Thank you received: 716
1 year 11 months ago #49862
by milos
Replied by milos on topic Hot spinner module causes 500 error
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
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
Less
More
- Posts: 5
- Thank you received: 0
1 year 11 months ago #49866
by admin8
Replied by admin8 on topic Hot spinner module causes 500 error
Hi Milos,
PHO version is 8.1
I have enabled error reporting.
Thanks
John
PHO version is 8.1
I have enabled error reporting.
Thanks
John
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6743
- Thank you received: 716
1 year 11 months ago #49867
by milos
Replied by milos on topic Hot spinner module causes 500 error
Hello,
Please edit the file /modules/mod_hot_spinner/tmpl/default.php and around line 88 change this part:
to this:
You can also re-download the module from our website and re-install it if it's easier.
Regards,
Milos
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.161 seconds