Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

All settings pages just read "{"

Open leo-brown opened this issue 7 years ago • 2 comments

I am running a fresh install of Unyson 2.7.21 and latest Wordpress 5.0.3, with a fresh download of Kerge WP template with demo content. The Edit Page was not functional for all pages until I applied a hack listed here which was to add to the following file:

./wp-content/plugins/unyson/framework/extensions/megamenu/includes/functions.php

This code: if (!function_exists('_thz_filter_disable_block_editor_pt')) { function _thz_filter_disable_block_editor_pt($use_block_editor, $post_type) { $use_block_editor = false; return $use_block_editor; } } add_filter('use_block_editor_for_post_type', '_thz_filter_disable_block_editor_pt', 10, 2);

With or without this all settings pages return "{"

Any pointers? :O

leo-brown avatar Feb 11 '19 16:02 leo-brown

PS. It's PHP5.3.3 which I can't upgrade further but nothing I've read suggests this would cause such a problem.

leo-brown avatar Feb 11 '19 16:02 leo-brown

PS. It's PHP5.3.3 which I can't upgrade further but nothing I've read suggests this would cause such a problem.

You yourself answered your question, the problem is that your server uses the old version of PHP. WordPress Host Requirements - https://wordpress.org/about/requirements/

Regarding the code in functions.php, this was a temporary solution for WordPress 5, in the next version of the theme, we will remove this code. In more detail here - https://github.com/ThemeFuse/Unyson/issues/3660

lmpixelsteam avatar Feb 11 '19 17:02 lmpixelsteam