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.

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 10 months, 3 weeks 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

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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 WPML client and need related help, please open a new support ticket.