Make WordPress Core

Opened 5 years ago

Closed 8 months ago

Last modified 4 months ago

#51842 closed defect (bug) (worksforme)

Disabling pingbacks nulls the DB entry

Reported by: cool_recep's profile cool_recep Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5.3
Component: Pings/Trackbacks Keywords: reporter-feedback close
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 (7)

#1 @desrosj
5 years 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
5 years 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
5 years ago

  • Component changed from General to Pings/Trackbacks

#4 @aristath
5 years 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.

#5 @mindctrl
9 months ago

  • Keywords close added

Hi all,

I'm also unable to reproduce the bug. Perhaps this bug was resolved at some point between now and 5 years ago when this was opened.

With no more reports of this and the inability to reproduce, I'm proposing we close this ticket to help clean up Trac.

Feel free to reopen if you think this is still an issue and can provide steps to reproduce.

#6 @callumbw95
8 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Hi all,

Seeing as this ticket has been open for 5 years at this point, and no one has been able to reproduce this issue, I believe it is safe to assume that this issue has been resolved since it was raised. As of such I am going to close this ticket, but if anyone can reproduce this, or wants to continue the conversation forward, please reopen the ticket. 😃

#7 @swissspidy
4 months ago

  • Milestone Awaiting Review deleted

Removing milestone from closed ticket.

Note: See TracTickets for help on using tickets.