Console errors in Header Builder: multiple headers problem

This topic has 17 replies, 3 voices, and was last updated 2 years, 1 months ago ago by Olga Barlow

  • Avatar: jrmoscardi
    Jorge
    Participant
    March 2, 2022 at 17:23

    Hello,

    I´m trying to duplicate the Default header, and then I can´t move forward on editing. I see various erros in console log: https://prnt.sc/80gawGsGjQ99

    (In previews attempts I already had a second header but I couldn´t publish changes).

    Can you help me figure out what the problem is?

    This is a copy of the site in production for testing purposes.
    I provide you a user to access the admin.

    Thanks!

    Please, contact administrator
    for this information.
    16 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 3, 2022 at 02:32

    Hello, 

    Thank you for contacting us,
    The issue is not related to header builder and it actually comes from WordPress customizer security behavior. I’m trying to describe it in easy terms. you can see there is a code on url and of course on your page which you can not see and particularly give you access as admin to your customizer, In other world security system is always ensure you as admin is requesting legit URL with enough capability, Meanwhile you have production and dev which is distinguishing by simple query string so it is easy for WP to get into the some conflict when security system is always checking your code with URL which is redirecting to another URL. For fixing this issue please turn off your redirection policy and clear your cache then check it again.

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 9, 2022 at 02:01

    Hello,

    Continuing with this issue, I’m going to give you access to the admin in production.
    The server is Nginx and the parameter client_max_body_size is set to 256M.
    These are the steps until I encounter the problem:

    Xstore menu > Header Builder
    Click in Multiple Headers (it takes a while here)
    Click Edit from Header Home, then it loads “Where do you want to display your header?” but the preview of the site never ends loading (and never will…)
    Then click in Edit Desktop (from Header Home)
    Click in Settings from Main Menu.
    In section “Select The Menu” choose Main Desktop Megamenu (id-1394). It never shows correctly in the preview for some reason.
    Then just click SAVE (maybe console errors will appear already)

    This is the error I get in the console: https://prnt.sc/Sld2WH86F_V2

    I also got this using firefox: https://prnt.sc/m0O2zJysCYdO

    Please don´t change anything in Default Header. In Header Home you can do whatever you want, it´s not productive yet.

    I hope you can reproduce the issue and figure out what´s going on.

    Thanks very much!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 9, 2022 at 18:43

    Hello,

    Could you, please, provide us with the server error logs and FTP access? We’ll check the issue in more detail.

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 10, 2022 at 00:42

    Hello!

    I found something testing again in dev. If I activate the parent theme, not the child one, I can edit multiple headers without problem and no errors occur. The problem is when I active the child theme. I figured something in functions.php maybe was affecting. So I installed the clean xstore child theme provided. But the problem continues.

    Can you check this? I´ll give you admin access again in dev and ftp access.
    I hope you can help me. Thanks.

    This is what I found in debug.log:
    [08-Mar-2022 19:36:46 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “custom_checkout_field_display_admin_order_meta” not found or invalid function name in /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-includes/class-wp-hook.php:307
    Stack trace:
    #0 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #1 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-includes/plugin.php(474): WP_Hook->do_action()
    #2 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(448): do_action()
    #3 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-admin/includes/template.php(1395): WC_Meta_Box_Order_Data::output()
    #4 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-admin/edit-form-advanced.php(688): do_meta_boxes()
    #5 /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-admin/post.php(206): require(‘…’)
    #6 {main}
    thrown in /var/www/vhosts/mixtepijamas.com.br/dev.mixtepijamas.com.br/wp-includes/class-wp-hook.php on line 307

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 10, 2022 at 09:49

    Hello,

    Thank you. I passed your issue to our developers. I’ll inform you once they fix the issue.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 10, 2022 at 15:05

    Hello,

    Do you have any blacklists? Because our support member can’t connect to your FTP. His IP is 176.98.91.238

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 10, 2022 at 16:45

    Hello, I’ll provide you with new credentials.
    Let me know if you have any problems.
    Thank you!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 11, 2022 at 14:01

    Hello,

    It works, thank you. I’ll inform you about the results.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 11, 2022 at 17:00

    Hello,

    Fixed. Check now.

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 11, 2022 at 18:55

    Hello,

    Yes, it worked!
    May I ask how you solved it?
    Because I need the solution at the production site.

    Thanks very much!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 14, 2022 at 10:15

    Hello,

    We made some changes in files and also made reset of some fields related to our theme option in the BD. You won’t be able to do this by yourself. So, provide us with the WP Dashboard and FTP access to the site where you need to fix that.

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 14, 2022 at 17:15

    Hello!

    In private content I provide you with ftp and admin access to production site.
    My concern is: will this be considered in future updates?

    Thanks very much!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 14, 2022 at 18:46

    Hello,

    Thank you. I’ll inform you once developers fix the issue.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 16, 2022 at 16:00

    Hello,

    Fixed. Check now.

    Regards

    Avatar: jrmoscardi
    Jorge
    Participant
    March 16, 2022 at 16:57

    It worked just fine.
    Sorry to ask again, will i have to worry about this in future updates?
    Thank you very much!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 16, 2022 at 19:29

    Hello,

    You are welcome. Don’t worry, everything should be ok.

    Regards

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

The issue related to '‘Console errors in Header Builder: multiple headers problem’' 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.