Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync: Fatal error on PHP 7.2RC coming from WPCOM_JSON_API_Bulk_Delete_Post_Endpoint::callback #8186

Closed
oskosk opened this issue Nov 16, 2017 · 0 comments
Assignees
Labels
[Package] Sync [Type] Bug When a feature is broken and / or not performing as intended
Milestone

Comments

@oskosk
Copy link
Contributor

oskosk commented Nov 16, 2017

Declaration of WPCOM_JSON_API_Bulk_Delete_Post_Endpoint::callback is not compatible with WPCOM_JSON_API_Update_Post_v1_1_Endpoint::callback.

Steps to reproduce the issue

  • Get to Calypso and try to run a full sync for a site running on PHP 7.2

What I expected

  • No fatal in the site.

What happened instead

  • Logs on the site show this Fatal error
      Declaration of WPCOM_JSON_API_Bulk_Delete_Post_Endpoint::callback($path = '', $blog_id = 0) must be compatible with WPCOM_JSON_API_Update_Post_v1_1_Endpoint::callback($path = '', $blog_id = 0, $post_id = 0)
      Type: PHP Fatal error Line: 0
      File: json-endpoints/class.wpcom-json-api-bulk-delete-post-endpoint.php
    
  • Calypso shows this warning
    image
@oskosk oskosk added [Package] Sync [Type] Bug When a feature is broken and / or not performing as intended labels Nov 16, 2017
@oskosk oskosk added this to the 5.6 milestone Nov 16, 2017
@jeherve jeherve mentioned this issue Nov 16, 2017
13 tasks
@oskosk oskosk self-assigned this Nov 17, 2017
roccotripaldi added a commit that referenced this issue Nov 17, 2017
Callback should be called with the same params as the parent's callback.

fixes #8186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Sync [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants