JavaScript error on post edit screen when changing language
-
When changing the language dropdown for a post on the Add New Post screen, I noticed that the ajax response was producing this error:
Uncaught TypeError: Cannot read property 'length' of undefined
When investigating the response that was returned from the server, I noticed that it contained this:
Fatal error: Call to a member function get_help_tabs() on a non-object in /wp-admin/includes/meta-boxes.php on line 765
It looks like the error originates in the ajax action PHP function,
post_lang_choice()
, when it makes a call topage_attributes_meta_box()
. Looks like in this context, the call toget_current_screen()
within that function returns null.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘JavaScript error on post edit screen when changing language’ is closed to new replies.