Notifications
Clear all

ERROR 8192, Image Magick Support & Enable SEO urls trouble

4 Posts
2 Users
0 Reactions
586 Views
(@mytinytown)
Posts: 5
Active Member
Topic starter
 

The full error in the Debug file

09.16.2022 18:14:39 (en) - ERROR 8192 in s.*.com/inc/showfolders.inc.php, line 371: Implicit conversion from float 64318.200000000004 to int loses precision

 

Full Image Magick Support error

Fatal error: Uncaught Error: Call to undefined function shell_exec() in /home//public_html/subs/photos..com/inc/filefunctions.inc.php:3825 Stack trace: #0 /home//public_html/subs/photos..com/admin/info.php(346): execute_command('convert "/home/...') #1 /home//public_html/subs/photos..com/admin/info.php(701): check_image_magic() #2 /home//public_html/subs/photos..com/admin/index.php(176): require('/home/tinytown/...') #3 {main} thrown in /home//public_html/subs/photos.***.com/inc/filefunctions.inc.php on line 3825

 

Enable SEO urls only refreshes the page when clicking a folder

 

I don't want my url posted, trying to keep it private, but you can message me for my email or leave your and I will send it to you, if you need it.

This topic was modified 2 years ago 2 times by mytinytown
 
Posted : 16/09/2022 7:22 pm
TinyWebGallery
(@admin)
Posts: 925
Prominent Member Admin
 

which php version do you use? In line 371 maybe could add a floor() to this line to round it.

shell_exec could be disabled in your php.ini. So you need to check if you can enable it. 

Best regards, 

Michael

 
Posted : 17/09/2022 1:48 pm
(@mytinytown)
Posts: 5
Active Member
Topic starter
 

I am sorry about the lag in response to this.

When PHP is set to 7.4 it works good, other than the SEO friendly urls. They do not work with PHP 7.4 or 8.1

I cannot find "shell_exec" in my php ini file on PHP 8.1.

This is liner 371, how would I add the floor() to this? My PHP skills are very beginner.

srand((double)microtime() * 100000);

 
Posted : 06/10/2022 2:17 pm
TinyWebGallery
(@admin)
Posts: 925
Prominent Member Admin
 

I even have better news for you. you do not need this anymore. This was setting the start value for the random generator.

Simply remove the line with srand. There are 2 more in this file. Delete them as well.

Please see e.g. https://bobcares.com/blog/how-to-enable-exec-function-in-php-ini/ about how to enable it.
In my current local php 8.1 I do not have any restrictions and there it also works fine.

a small test script I have used:

<?php
$output = shell_exec('dir');
echo "<pre>$output</pre>";
?>

on linux you can use "ls"

About seo urls. Do you have the pro version?

Best regards,

Michael

 
Posted : 07/10/2022 3:49 pm