You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the editor fails because it can't handle unexpected responses from the server.
This is another example, where an unresolved, repeatable, but randomly occurring bug can cause the editor to fail.
When editing a post in my local development Windows server environment, which uses symlinked plugins, I sometimes encounter situations where a symlinked plugin's realpath has not been determined; the value stored in global $wp_plugin_paths is null. This can lead to the following
Warning: strpos(): Empty needle in C:\apache\htdocs\hm\wp-includes\plugin.php on line 658.
This unexpected text is returned to the browser and the editor fails.
Steps to Reproduce (for bugs)
It's not easily reproducible I'm afraid.
Expected Behavior
Current Behavior
This unexpected text is returned to the browser which then fails with
the "The editor has encountered an unexpected error." message box.
The following appears in the console
TypeError: terms.filter is not a function
at FlatTermSelector.<anonymous> (https://qw/hm/wp-content/plugins/gutenberg/editor/build/index.js?ver=1520285415:28269:57)
at getStateFromUpdate (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:6564:21)
at processUpdateQueue (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:6646:23)
at updateClassInstance (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:7125:18)
at updateClassComponent (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:8390:22)
at beginWork (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:8767:16)
at performUnitOfWork (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:10766:16)
at workLoop (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:10830:26)
at HTMLUnknownElement.callCallback (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:580:14)
at Object.invokeGuardedCallbackDev (https://qw/hm/wp-content/plugins/gutenberg/vendor/react-dom.d3299c8d.js:619:16)
other variations are
Uncaught TypeError: l.map is not a function
at r (index.js?ver=1520096660:11)
at updateFunctionalComponent (react-dom.d3299c8d.js:8361)
at beginWork (react-dom.d3299c8d.js:8765)
at performUnitOfWork (react-dom.d3299c8d.js:10766)
at workLoop (react-dom.d3299c8d.js:10830)
at HTMLUnknownElement.callCallback (react-dom.d3299c8d.js:580)
at Object.invokeGuardedCallbackDev (react-dom.d3299c8d.js:619)
at invokeGuardedCallback (react-dom.d3299c8d.js:476)
at renderRoot (react-dom.d3299c8d.js:10908)
at performWorkOnRoot (react-dom.d3299c8d.js:11556)
What can we do here? Thinking about closing this issue as it doesn't seem related to Gutenberg.
Generally, I think Gutenberg needs to be more fault-tolerant about API responses. However, we can handle this more broadly. I don't think this particular issue is actionable.
Issue Overview
Sometimes the editor fails because it can't handle unexpected responses from the server.
This is another example, where an unresolved, repeatable, but randomly occurring bug can cause the editor to fail.
When editing a post in my local development Windows server environment, which uses symlinked plugins, I sometimes encounter situations where a symlinked plugin's realpath has not been determined; the value stored in global
$wp_plugin_paths
is null. This can lead to the followingThis unexpected text is returned to the browser and the editor fails.
Steps to Reproduce (for bugs)
It's not easily reproducible I'm afraid.
Expected Behavior
Current Behavior
This unexpected text is returned to the browser which then fails with
the "The editor has encountered an unexpected error." message box.
The following appears in the console
other variations are
Possible Solution
Fix the underlying core bug.
Screenshots / Video
Related Issues and/or PRs
#4936
Todos
The text was updated successfully, but these errors were encountered: