Skip Navigation

[Resolved] Editing Pending Causes Critical Error

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.13 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year ago.

Assisted by: Waqar.

Author
Posts
#2612281

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.

#2612517

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

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.