PHP Error - round(): Argument #1 ($num) must be of type int|float, string given

Don Brown via WEB400 <[email protected]> Mon, 9 Sep 2024 16:55:10 +1000
Newsgroups gmane.comp.systems.as400.web
Message-ID <OFC79F2A50.29CF5CC7-ON4A258B93.0020BA42-4A258B93.002602D8@msd.net.au>
Hi All

Hoping someone may have come across this error and have a work around

We are running Seiden PHP Version 8.2.11 

We are getting an error message "round(): Argument #1 ($num) must be of 
type int|float, string given" 

We were not getting this error on Zend version 7 

Our google search on this error indicates upgrading to php 9 may resolve 
the problem but I don't believe that version 9 upgrade is  available from 
Seiden group. 

I also found a hit on google that suggests to edit the Style.php file to 
change round($val) to round((int)$val) but I cannot find this file or a 
version of this file with that code in it.

Any suggestions would be appreciated. 


Thanks 

Don


--
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments..
-- 
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.