Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP errors #17

Open
bobl61 opened this issue Jul 17, 2024 · 0 comments
Open

PHP errors #17

bobl61 opened this issue Jul 17, 2024 · 0 comments

Comments

@bobl61
Copy link

bobl61 commented Jul 17, 2024

PHP issues:

PHP Fatal error: Uncaught mysqli_sql_exception: Column 'map' in order clause is ambiguous in C:\xampp\htdocs\includes\class_db.php:222\nStack trace:\n#0 C:\xampp\htdocs\includes\class_db.php(222): mysqli_query(Object(mysqli), '\n\t\tSELECT *, \n\t...')\n#1 C:\xampp\htdocs\pages\claninfo_mapperformance.php(141): DB_mysql->query('\n\t\tSELECT *, \n\t...')\n#2 C:\xampp\htdocs\pages\claninfo.php(191): require_once('C:\xampp\htdocs...')\n#3 C:\xampp\htdocs\hlstats.php(225): include('C:\xampp\htdocs...')\n#4 {main}\n thrown in C:\xampp\htdocs\includes\class_db.php on line 222

PHP Deprecated: Implicit conversion from float 1.0402777777777779 to int loses precision in C:\xampp\htdocs\sig.php on line 407, referer: https:///hlstats.php?mode=playerinfo&player=794
[Wed Jul 17 07:35:17.521273 2024] [php:notice] [pid 4744:tid 1916] [client 127.0.0.1:17382] PHP Deprecated: Implicit conversion from float 62.416666666666664 to int loses precision in C:\xampp\htdocs\sig.php on line 410, referer: https:///hlstats.php?mode=playerinfo&player=794

I forgot that the float issue was resolved with help from kicken https://forums.phpfreaks.com/topic/317018-php-deprecated-implicit-conversion-from-float-115-to-int-loses-precision/?do=findComment&comment=1610097

407 $hours += floor($timestamp / 3600 % 24);
fix $hours += floor($timestamp / 3600) % 24;

410 $min = floor($timestamp / 60 % 60);
fix $min = floor($timestamp / 60) % 60;

Server: XAMPP 8.2.4 (PHP 8.2.4). OS Windows 11

@bobl61 bobl61 changed the title Forum Signature and PHP errors PHP errors Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant