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

All settings pages just read "{" #3722

Open
leo-brown opened this issue Feb 11, 2019 · 2 comments
Open

All settings pages just read "{" #3722

leo-brown opened this issue Feb 11, 2019 · 2 comments

Comments

@leo-brown
Copy link

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
Copy link
Author

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

@lmpixelsteam
Copy link

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 - #3660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants