Ghifari160 / g16WPIDML

Generate a Wordpress post from InDesign in just four easy steps.
MIT License
1 stars 2 forks source link

Cannot generate post in Wordpress 5 and above #7

Open Ghifari160 opened 5 years ago

Ghifari160 commented 5 years ago

The plugin fails to generate the post in the editor in Wordpress 5 and above (as reported by a user via email).

Wordpress Version: 5.0.3 Logs:

JQMIGRATE: Migrate is installed, version 1.4.1
g16WPIDML.min.js?ver=v0.1:2 [Deprecation] 'webkitURL' is deprecated. Please use 'URL' instead.
(anonymous) @ g16WPIDML.min.js?ver=v0.1:2
3?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
v @ ?v=2.0:6
g16WPIDML.min.js:2 Uncaught TypeError: Cannot read property 'click' of null
    at HTMLButtonElement.next_to_wizardDone (g16WPIDML.min.js:2)
21superpwa-sw.js:50 SuperPWA: Current request is excluded from cache.
Ghifari160 commented 5 years ago

Based on the error message Cannot read property 'click' of null, it seems that Wordpress 5 breaks a few Javascript functions. Unfortunately, the plugin ships with a minified version of the Javascript library. A debug cannot be done without reproducing the issue.

Updated ETA: Thursday, February 7, 2019

Current to do list:

Ghifari160 commented 5 years ago

Bug exists on a clean installation of Wordpress v5.0.3 and Post Generator from IDML v0.1. The client browser is Chrome 71.0.3578.98 (Official Build) (64-bit) (cohort: Stable)

Logs:

JQMIGRATE: Migrate is installed, version 1.4.1
g16WPIDML.min.js?ver=v0.1:2 [Deprecation] 'webkitURL' is deprecated. Please use 'URL' instead.
(anonymous) @ g16WPIDML.min.js?ver=v0.1:2
favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)
g16WPIDML.min.js?ver=v0.1:2 Uncaught TypeError: Cannot read property 'click' of null
    at HTMLButtonElement.next_to_wizardDone (g16WPIDML.min.js?ver=v0.1:2)

Logs with dev copy:

JQMIGRATE: Migrate is installed, version 1.4.1
g16WPIDML.dev.js?ver=v0.1:43 [Deprecation] 'webkitURL' is deprecated. Please use 'URL' instead.
(anonymous) @ g16WPIDML.dev.js?ver=v0.1:43
(anonymous) @ g16WPIDML.dev.js?ver=v0.1:85
(anonymous) @ g16WPIDML.dev.js?ver=v0.1:450
g16WPIDML.dev.js?ver=v0.1:253 Uncaught TypeError: Cannot read property 'click' of null
    at HTMLButtonElement.next_to_wizardDone (g16WPIDML.dev.js?ver=v0.1:253)