Skip Navigation

[Resolved] All Custom Post Types Missing, but I can see them in the database.

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Marisa 6 years, 3 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#307931
post-types-dashboard.PNG
missing-custom-post-types-that-are-in-database.PNG

All custom post types are missing. See screenshot "post types dashboard."

I can see them in the dashboard, for instance, news-story, see screenshot "missing custom post types that are in the database."

I am afraid to delete the custom post type in the database and recreate it because of its many relationships.

Custom fields, content templates and views are still present, as are taxonomies, I think.

It's as if they are in an invisible trashcan.

How can I restore these? This is very odd.

There are others with names like "partners", "case-story", etc. Once I know how to restore one I can do them all.

However if it is better to give you the entire list and access to the site and screenshots of the database I can do that as well.

Please tell me how to proceed to best help you assist me.

Many thanks in advance.

#307992

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Marisa,

Please try this:
1) deactivate other plugins and switch to wordpress default theme,
2) enable wordpress debug mode, repeat the actions you mentioned above, and post the debug logs here.
https://toolset.com/documentation/user-guides/debugging-types-and-views/

PHP Debugging

In case you think that Types or Views are doing something wrong (what we call a bug), you should enable PHP error logging. Again, edit your wp-config.php file and add the following:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . 'https://cdn.toolset.com/error_log.txt');
This will produce a file called ‘error_log.txt’ in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, user www-data).

#308295

Here is your login for the site:

luoy
luoy_password

I did as you requested. Still not working. Here are the results of the error log:

[04-Jun-2015 20:20:03 UTC] PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/aistaging/public_html/ehc/wp-content/plugins/CiviCRM_Gravity_Forms/includes/AdminSettings.php on line 847
[04-Jun-2015 20:20:08 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:20:08 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:20:08 UTC] PHP Notice: Undefined index: member_id in /home/aistaging/public_html/ehc/wp-content/plugins/CiviCRM_Gravity_Forms/includes/Common.php on line 549
[04-Jun-2015 20:20:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:20:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:20:35 UTC] PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/aistaging/public_html/ehc/wp-content/plugins/CiviCRM_Gravity_Forms/includes/AdminSettings.php on line 847
[04-Jun-2015 20:20:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:20:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:20:39 UTC] PHP Notice: Undefined index: member_id in /home/aistaging/public_html/ehc/wp-content/plugins/CiviCRM_Gravity_Forms/includes/Common.php on line 549
[04-Jun-2015 20:20:54 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:20:54 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:20:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:20:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:21:02 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:21:02 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:21:04 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:21:04 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:21:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:21:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:21:55 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:21:55 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:22:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:22:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:22:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:22:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:23:55 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:23:55 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:24:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:24:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:24:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:24:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:25:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:25:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:26:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:26:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:26:54 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:26:54 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[04-Jun-2015 20:26:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[04-Jun-2015 20:26:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:56:07 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:56:07 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:56:23 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:56:23 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:01 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:01 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:17 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:17 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:31 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:31 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:32 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:32 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:40 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:40 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:47 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:47 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:52 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:52 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:57:59 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:57:59 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:58:02 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:58:02 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:58:03 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:58:03 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:58:12 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:58:12 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:58:12 UTC] PHP Warning: ksort() expects parameter 1 to be array, string given in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 304
[05-Jun-2015 03:58:12 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:58:12 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:58:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:58:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:59:01 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:59:01 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:59:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:59:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:59:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:59:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68
[05-Jun-2015 03:59:17 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/includes/custom-types.php on line 281
[05-Jun-2015 03:59:17 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/aistaging/public_html/ehc/wp-content/plugins/types/embedded/classes/class.wpcf-post-types.php on line 68

#308296

site is ehc.aistaging.net/wp-amin

#308310

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

As I mentioned above, we need to know if there is any compatibility problem in your website, please
deactivate other plugins and switch to wordpress default theme, and test again.
in your debug logs:
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/aistaging/public_html/ehc/wp-content/plugins/CiviCRM_Gravity_Forms/includes/AdminSettings.php on line 847

It means the plugin CiviCRM_Gravity_Forms is activated.

And I can log into your website, but I can not modify your website without your permission, I suggest you backup your database first.

#308903

Since I was not able to deactivate all plugins due to the team of developer's work on the site and what they needed, I was able to have our team do a website restore from a past backup.