Не работает редактор темы (Theme Options)

This topic has 16 replies, 3 voices, and was last updated 4 years ago ago by Olga Barlow

  • Avatar: VLD
    VLD
    Participant
    January 29, 2021 at 03:11

    Добрый день.
    Скажите пожалуйста в чем может быть причина, при нажатии на редактор темы(Theme Options) выдает следующую ошибку: (На сайте возникла критическая ошибка. Пожалуйста, проверьте входящие сообщения почты администратора для дальнейших инструкций.)
    Сообщений никаких неполучили!
    Как можно устранить это?

    15 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 29, 2021 at 08:04

    Hello,

    Enable debug mode in WordPress – https://wordpress.org/support/article/debugging-in-wordpress/ to find out what error appears on your site, it will point you in the right direction what needs to be fixed.
    Contact your hosting provider and ask about server error log.

    Regards

    Avatar: VLD
    VLD
    Participant
    January 30, 2021 at 18:55

    Hi,
    Host provider told us that the problem is the site itself. Alternatively, you may need another php version. We tried to change the PHP version, it did not help. Plugin Query Monitor shows us this error:

    Fatal error: Uncaught Error: Call to a member function preview() on null
    in /home/eurostyl/public_html/wp-includes/class-wp-customize-widgets.php on line 518

    Стек вызовов:

    WP_Customize_Widgets::customize_register()
    wp-includes/class-wp-customize-widgets.php:353
    WP_Customize_Widgets::schedule_customize_register()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-includes/class-wp-customize-manager.php:933
    WP_Customize_Manager::wp_loaded()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-settings.php:579
    require_once()
    wp-config.php:80
    require_once()
    wp-load.php:37
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/customize.php:13

    Please tell me how to fix it?

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    January 31, 2021 at 10:14

    Hello,

    Contact your hosting provider and ask them to give you server error logs. Such issue could be caused by some server limit (like SubstituteMaxLineLength or something similar). So, WordPress error logs could be empty but server error logs will have the error.
    Provide us these logs.

    Regards

    Avatar: VLD
    VLD
    Participant
    February 1, 2021 at 20:39

    Hi,
    here’s the info in erorr log:

    [10-Jan-2021 20:10:43 UTC] База данных WordPress возвратила ошибку You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)
    AND meta_key IN (‘attribute_pa_%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80′)’ at line 3 в ответ на запрос
    SELECT post_id as variation_id, meta_key as attribute_key, meta_value as attribute_value
    FROM vanow_postmeta
    WHERE post_id IN ()
    AND meta_key IN (‘attribute_pa_%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80’)
    , выполненный require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Automattic\WooCommerce\Blocks\StoreApi\Routes\AbstractRoute->get_response, Automattic\WooCommerce\Blocks\StoreApi\Routes\Products->get_route_response, Automattic\WooCommerce\Blocks\StoreApi\Schemas\ProductSchema->get_item_response, Automattic\WooCommerce\Blocks\StoreApi\Schemas\ProductSchema->get_variations
    [10-Jan-2021 20:10:44 UTC] База данных WordPress возвратила ошибку You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)
    AND meta_key IN (‘attribute_pa_%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80′)’ at line 3 в ответ на запрос
    SELECT post_id as variation_id, meta_key as attribute_key, meta_value as attribute_value
    FROM vanow_postmeta
    WHERE post_id IN ()
    AND meta_key IN (‘attribute_pa_%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80’)
    , выполненный require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Automattic\WooCommerce\Blocks\StoreApi\Routes\AbstractRoute->get_response, Automattic\WooCommerce\Blocks\StoreApi\Routes\Products->get_route_response, Automattic\WooCommerce\Blocks\StoreApi\Schemas\ProductSchema->get_item_response, Automattic\WooCommerce\Blocks\StoreApi\Schemas\ProductSchema->get_variations

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2021 at 10:19

    Hi,

    Try to reinstall wp via dashboards settings -> http://prntscr.com/y05em5 (Reinstall now – button)
    or you can try to reinstall with steps of this article -> https://www.wpbeginner.com/wp-tutorials/how-to-uninstall-and-reinstall-wordpress/ (a save method if you have some content on your site added)

    Regards

    Avatar: VLD
    VLD
    Participant
    February 3, 2021 at 20:19

    I did reinstall the WP, but it didn’t help.
    I have not yet taken the step to remove the WP and reinstall it, since I am not sure whether all the information will be saved after this step.
    Please, Can you looking at my admin panel and evaluate the error, I sent you in private.

    Regards

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 4, 2021 at 09:32

    1) Please check if you have the same problem with Appearance > Customize when a default theme (storefront) is activated on your site?
    2) Disable all 3rd party plugins and check then.
    Let us know the results.

    Regards

    Avatar: VLD
    VLD
    Participant
    February 4, 2021 at 23:01

    I activated default theme and check how working, with default theme everything is OK, Theme options working correctly, after i activate XSTORE theme and check, still doesn’t work Theme options and shows critical error!
    I disable all 3rd plugins and check > still doesn’t work Theme options and shows critical error!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 5, 2021 at 09:31

    Rename slugs of all attributes using English words – https://prnt.sc/ydv7og https://prnt.sc/yduifm

    Please provide temporary FTP access (FTP host, FTP username, FTP password, FTP port. If you don’t know what the FTP is then you need to contact your hosting provider. Hosting support knows), we will check the situation more deeply.

    Regards

    Avatar: VLD
    VLD
    Participant
    February 6, 2021 at 10:07

    Sent to private.
    I rename slugs.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 8, 2021 at 13:44

    Hello,

    The mentioned error was caused by symbols in the custom widget area that you used https://prnt.sc/youcd5 . Why did you use the shortcode as the widget area title?
    We have removed that widget area. Check customizer ow and don’t use any special symbols in the custom widget area title. Check customizer now.

    Regards

    Avatar: VLD
    VLD
    Participant
    February 8, 2021 at 23:13

    Hi,

    yes, I inserted it by mistake into the widget area, but I immediately deleted it, but apparently it did not disappear and was displayed again …
    Thank you very much for helping to sort out this problem !!!

    But I had another problem with the product filter: on the main page and on the product page, when you click on the button filter to open them, they open (show) and immediately close! But when I customize it through the Theme options, the product filter button working correctly only in Theme options! What can be wrong?
    And the filter button bar is horizontally on the right side, how can I make the filter button bar appear horizontally in the middle?
    Thanks

    Regards,

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 9, 2021 at 17:46

    Hello,

    Check now, please.

    Regards

    Avatar: VLD
    VLD
    Participant
    February 9, 2021 at 20:16

    Hi,

    Thank you very much, you are the best support!!!

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 9, 2021 at 21:05

    Hello,

    You are welcome!
    Could you please rate the theme here?
    https://themeforest.net/item/xstore-responsive-woocommerce-theme/reviews/15780546

    Regards

  • Viewing 16 results - 1 through 16 (of 16 total)

The issue related to '‘Не работает редактор темы (Theme Options)’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.