I am trying to: View a list of records for a custom post type and/or click on a custom post type record. We have 3 Custom Post Types: Partners, Service Providers, and Programs. There is a 1:many relationship between Partners and Service Providers; and Service Provider to Programs. From the wp-admin console I am attempting to view the list of Service Providers and select one of them for editing. I get a Critical Error message (see below). For Programs, it won't even load all the Programs in the list view.
Link to a page where the issue can be seen:
Go here: hidden link and click on a Service Provider record.
I expected to see: A list of all the records for that custom post type and/or the custom post type record details.
Instead, I got: Critical Error
2023/03/21 23:43:37 [error] 225#225: *124298 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /www/genthrive_444/public/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/adodb-time.inc.php:1048
Stack trace:
#0 /www/genthrive_444/public/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/adodb-time.inc.php(1048): abs('2023-03-20 19:4...')
#1 /www/genthrive_444/public/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/toolset-forms/classes/class.date.scripts.php(187): adodb_date('Y-m-d', '2023-03-20 19:4...')
#2 /www/genthrive_444/public/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/toolset-forms/classes/class.date.php(532): WPToolset_Field_Date_Scripts::timetodate('2023-03-20 19:4...', 'Y-m-d')
#3 /www/genthrive_444/public/wp-content/plugins/types/vendor/toolset/types/embedded/classes/class.wpcf-post-types.php(329): WPToolset_Field_Date::timetodate('2023-03-20 19:4...', 'Y-m-d')
#4 /ww" while reading response header from upstream, client: 66.90.149.76, server: genthrive.org, request: "GET /wp-admin/edit.php?post_type=program HTTP/1.1", upstream: "hidden link:", host: "genthrive.org:40800", referrer: "hidden link"
The primary plugins on the site are: Gravity Forms and Toolset Tools. Data had been previously imported using WP All Import Pro but the site had been working as expected after this import. The primary change in the site was a recent upgrade to PHP8 by the host (Kinsta).
Unfortunately the admin access details you shared to me is working but I could not able to access the wp-admin as it seems the admin capabilities are missing. Can you please grant admin capabilities so that I can visit the admin and review the things.
I have set the next reply to private which means only you and I have access to it.
Hello, I work with Sean on the website. Here is the link for the files to the website using the Duplicator plugin. This should have everything you need.
It seems are in opposite timezone. If you want I can assign the ticket who works in later timezone (in your timezone). Please let me know, once I get confirmation from your side I will assign the ticket to supporter who works in your timezone.
I checked on your install and the post having the issue is this one:
- hidden link
Now when I checked you have "Created" and "Last Updated" fields added as date custom fields and Toolset date custom field accepts the value and store its value as Unix Timestamp into the postmeta table.
But for the above specific post with ID 12670 the value for the custom date field "Created" is stored as date string " 2023-03-21 19:36:07" and due to that it break the site.
I suggest either you delete that post or delete the postmeta key for custom fields "Created" and "Last Updated" from postmeta table for the post ID 12670.
Additionally, I would like to update you that we have just published the hotfix version for most of Toolset plugins.
First of all, based on the debug information you shared I find that you are using the outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.
*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/
OR
You can install/update Toolset pluigins using the installer plugin:
-https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-otgs-installer-plugin-installed