I am trying to:Edit a pending custom post type
Link to a page where the issue can be seen:When clicking edit on any pending post on hidden link
I expected to see:The usual edit screen. Published posts can be edited normally.
Instead, I got: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /var/web/site/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/lib/adodb-time.inc.php:1048
Believe that the hosting environment dropped support for every PHP version under v8 so have no choice but to use PHP v8.0.
Hi,
Thank you for contacting us and I'd be happy to assist.
The Toolset's "Date" type field, stores the value in the UNIX timestamp format ( ref: hidden link ).
An error message like this would appear if these fields have a value in a different format. Most likely, it can happen when importing custom field values from an external source.
Please make sure to always import date values in UNIX timestamp format. For the posts already imported, you can either change their values directly from the database, using a tool like phpMyAdmin or run the import again.
( if temporary downgrade of PHP is not an option )
I hope this helps and please let me know if you need further assistance.
regards,
Waqar