WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#51842 new defect (bug)

Disabling pingbacks nulls the DB entry

Reported by: cool_recep Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5.3
Component: Pings/Trackbacks Keywords: reporter-feedback
Focuses: Cc:

Description

Disabling pingback option from Settings nulss default_ping_status thus crashing New Post function.

Have to change it to closed via phpMyAdmin to fix the issue.

Error:

<?php
WordPress veritabanı hatası: [Column 'ping_status' cannot be null]

INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`, `post_title`, `post_excerpt`, `post_status`, `post_type`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_parent`, `menu_order`, `post_mime_type`, `guid`) VALUES (2, '2020-11-21 23:28:50', '0000-00-00 00:00:00', '', '', 'Otomatik taslak', '', 'auto-draft', 'post', 'open', NULL, '', '', '', '', '2020-11-21 23:28:50', '0000-00-00 00:00:00', 0, 0, '', '')





Notice: Trying to get property 'post_type' of non-object in /public_html/wp-admin/includes/post.php on line 691



Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 729



Notice: Undefined property: stdClass::$ID in /public_html/wp-admin/post-new.php on line 67



Notice: Undefined property: stdClass::$post_date in /public_html/wp-admin/edit-form-advanced.php on line 173



Notice: Undefined property: stdClass::$post_date in /public_html/wp-admin/edit-form-advanced.php on line 175



Notice: Undefined property: stdClass::$post_status in /public_html/wp-admin/edit-form-advanced.php on line 231



Notice: Undefined property: stdClass::$post_type in /public_html/wp-admin/includes/meta-boxes.php on line 1426



Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 226



Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 229



Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-includes/functions.php:5229) in /public_html/wp-admin/admin-header.php on line 9



Notice: Trying to get property 'label' of non-object in /public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-utils.php on line 1056



Notice: Trying to get property 'labels' of non-object in /public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-utils.php on line 1057



Notice: Trying to get property 'singular_name' of non-object in /public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-utils.php on line 1057



Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php on line 1042



Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 226



Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 229



Notice: Undefined property: stdClass::$post_type in /public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php on line 306



Notice: Undefined property: stdClass::$post_type in /public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php on line 277



Notice: Undefined property: stdClass::$post_type in /public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php on line 281



Notice: Undefined property: stdClass::$post_type in /public_html/wp-content/plugins/wordpress-seo-premium/premium/classes/custom-fields-plugin.php on line 69

Change History (4)

#1 @desrosj
11 months ago

  • Keywords reporter-feedback added

Hi @cool_recep,

Thanks for this ticket!

Can you clarify what you mean by "disabling pinback option?" Do you mean unchecking the "Allow link notifications from other blogs (pingbacks and trackbacks) on new posts" setting on the Settings > Discussion screen?

Also, can you try disabling plugins and trying to reproduce the issue? Unfortunately, it's difficult to reproduce without the specific steps you are taking to reproduce.

#2 @cool_recep
11 months ago

Yes, after disabling the "Allow link notifications from other blogs (pingbacks and trackbacks) on new posts" can't post new content as "Column 'ping_status' cannot be null" error pops up.

Before that, I removed all the comments with pingback attribute from the Database.

Tried in Troubleshooting mode and the issue persists.

#3 @SergeyBiryukov
11 months ago

  • Component changed from General to Pings/Trackbacks

#4 @aristath
11 months ago

I can't replicate the issue.
What I tried:

  • Disabled the pingbacks option
  • Installed and activated the Yoast SEO Premium plugin (judging from the errors reported above it looks like that plugin is enabled)
  • Added a new post

I get no errors in the error-log.
Used latest WP with the default theme and no other plugins enabled except Yoast.

Note: See TracTickets for help on using tickets.