Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1432384
    Andrea
    Guest

    Heelo,
    After adding several buttons in the “button row” I saved the home page, but there was an error. From then on, it was no longer possible to access the avia block editor, because as soon as the page was opened it went into a fatal error. All the rest of the site and pages continue to function normally.
    Thanks in advance
    Andrea

    PS Perhaps you could consider publishing the following among the sites made with Enfold, I think it is very choreographic. https://www.alfieridellatuscia.it/

    #1432389

    Hey Andrea,

    What happens if you change your site URL and location to https instead of http on the page in private? Also please try updating your PHP version to 8.0 or higher. If that doesn’t change anything, then please share server error logs with us.

    Best regards,
    Rikard

    #1432656

    Hello,
    I followed your instructions, changed the PHP version to 8.3 and corrected the homepage URL from http to https, clearly the problem remained unchanged. Below is the error log encountered:

    [Thu Feb 01 01:43:48.339618 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] PHP Warning: Trying to access array offset on false in /home/swfpkapi/public_html/wp-includes/class-wp-recovery-mode-email-service.php on line 368, referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.339450 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] PHP Warning: Trying to access array offset on false in /home/swfpkapi/public_html/wp-includes/class-wp-recovery-mode-email-service.php on line 367, referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308957 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] thrown in /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php on line 876, referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308820 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #33 /home/swfpkapi/public_html/wp-admin/post.php(187): require(‘/home/swfpkapi/…’), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308744 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #32 /home/swfpkapi/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308657 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #31 /home/swfpkapi/public_html/wp-includes/block-editor.php(750): array_reduce(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308530 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #29 /home/swfpkapi/public_html/wp-includes/rest-api.php(2918): rest_do_request(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308450 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #28 /home/swfpkapi/public_html/wp-includes/rest-api.php(551): WP_REST_Server->dispatch(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308370 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #27 /home/swfpkapi/public_html/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308260 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #26 /home/swfpkapi/public_html/wp-includes/rest-api/class-wp-rest-server.php(1193): WP_REST_Posts_Controller->get_item(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308153 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #25 /home/swfpkapi/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.308015 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #24 /home/swfpkapi/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1863): apply_filters(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307910 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #23 /home/swfpkapi/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307834 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #22 /home/swfpkapi/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307761 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #21 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307641 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #19 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307535 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #18 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_section->shortcode_handler(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307358 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #17 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section/section.php(1466): ShortcodeHelper::avia_remove_autop(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307215 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #16 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.307081 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #15 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306962 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #13 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306854 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #12 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_columns->shortcode_handler(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306694 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #11 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php(2072): ShortcodeHelper::avia_apply_autop(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306554 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #10 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306414 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #9 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306296 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #7 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306195 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #6 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_buttonrow->shortcode_handler(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.306037 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #5 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php(998): ShortcodeHelper::avia_remove_autop(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.305896 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #4 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.305762 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #3 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.305629 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #1 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): avia_sc_buttonrow->av_buttonrow_item(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.305535 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] #0 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php(1024): avia_sc_buttonrow->get_element_styles_item(), referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 01:43:48.305323 2024] [:error] [pid 1231808:tid 47169805854464] [remote 79.49.222.78:6391] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php:876, referer: https://www.romacittaperta.com/wp-admin/edit.php?post_type=page
    [Thu Feb 01 00:10:18.017888 2024] [security2:error] [pid 1075987:tid 47169793246976] [remote 79.49.222.78:4988] [client 79.49.222.78] ModSecurity: Warning. Match of “rx \\\\/wc-api\\\\/KCO_WC_Validation\\\\/” against “REQUEST_URI” required. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/005_i360_4_custom.conf”] [line “33”] [id “77140164”] [msg “IM360 WAF: PHP Injection Low value||T:APACHE||SC:/home/swfpkapi/public_html/wp-admin/admin-ajax.php”] [severity “DEBUG”] [tag “service_im360”] [hostname “www.romacittaperta.com”] [uri “/wp-admin/admin-ajax.php”] [unique_id “ZbrTVQtseN1D-0b6HemS_wAC1xA”], referer: https://www.romacittaperta.com/wp-admin/post.php?post=3&action=edit

    Thanks for your support
    Andrea

    #1432657

    Dettagli dell’errore
    Un errore di E_ERROR è stato causato nella linea 876 del file /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php. Messaggio di errore: Uncaught Error: Cannot unset string offsets in /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php:876
    Stack trace:
    0 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php(1024): avia_sc_buttonrow->get_element_styles_item(Array)
    1 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): avia_sc_buttonrow->av_buttonrow_item(”, ”, ‘av_buttonrow_it…’)
    2 [internal function]: do_shortcode_tag(Array)
    3 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(av_but…’, ‘do_shortcode_ta…’, ‘\n[av_butt…’)
    4 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode(‘\n[av_butt…’)
    5 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php(998): ShortcodeHelper::avia_remove_autop(‘\n[av_butt…’, true)
    6 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_buttonrow->shortcode_handler(Array, ‘\n[av_butt…’, ‘av_buttonrow’, Array)
    7 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ‘\n[av_butt…’, ‘av_buttonrow’)
    8 [internal function]: do_shortcode_tag(Array)
    9 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(av_but…’, ‘do_shortcode_ta…’, ‘[av_textbloc…’)
    10 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode(‘[av_textbloc…’)
    11 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php(2072): ShortcodeHelper::avia_apply_autop(‘[av_textbloc…’)
    12 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_columns->shortcode_handler(Array, ‘\n[av_textblock …’, ‘av_one_half’, Array)
    13 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ‘\n[av_textblock …’, ‘av_one_half’)
    14 [internal function]: do_shortcode_tag(Array)
    15 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(av_but…’, ‘do_shortcode_ta…’, ‘\n[av_hr class=’…’)
    16 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode(‘\n[av_hr class=’…’)
    17 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section/section.php(1466): ShortcodeHelper::avia_remove_autop(‘\n[av_hr class=’…’, true)
    18 /home/swfpkapi/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_section->shortcode_handler(Array, ‘\n[av_hr class=’…’, ‘av_section’, Array)
    19 /home/swfpkapi/public_html/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ‘\n[av_hr class=’…’, ‘av_section’)
    20 [internal function]: do_shortcode_tag(Array)
    21 /home/swfpkapi/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(av_but…’, ‘do_shortcode_ta…’, ‘[av_layerslider…’)
    22 /home/swfpkapi/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘[av_layerslider…’)
    23 /home/swfpkapi/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[av_layerslider…’, Array)
    24 /home/swfpkapi/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1863): apply_filters(‘the_content’, ‘

    #1432679

    Hi,

    Thank you for the update.

    We can’t reproduce the same error on our installation. Did you add any scripts or custom code to the Button Row element? Please set the builder to debug mode to make the shortcodes accessible from the shortcodes field.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode

    After adding the filter, you’ll find another field below the Advanced Layout Builder containing shortcodes. You can remove the shortcode of the Button Row element manually from the field, then update the page. Please create a site backup before proceeding.

    Best regards,
    Ismael

    #1432721

    Hello Ismael,

    I have set the builder to debug mode to make the shortcodes accessible from the shortcodes field according to your instructions.
    However, I can confirm that I do not have add any scripts or custom code to the Button Row element?

    I made a backup of the current site using duplicator.

    I didn’t understand how to remove the shortcode of the Button Row element manually from the field, then update the page, because as already specified it is impossible to enter the home page which goes into a fatal error when accessing.

    Thanks and best regards,
    Addrea

    #1432725

    Hi Ismail,

    Maybe I’m wrong, but I think the problem is related to the fact that the sixth row button wraps to the next line of the form. That was where the problem started. With 1 button first and then with 3-4 row buttons, everything worked normally.

    I hope this indication can help you understand the problem better.
    Thanks again
    Andrea

    #1432802

    Hi,

    Thank you for the info.

    We can’t reproduce the issue on our end, even after adding more than 6 items in the Button Row element. You can check the screenshot in the private field, showing 5 rows with 10 buttons each.

    Please provide the S/FTP details in the private field so that we can debug the issue further. We’ll try to extract the shortcodes of the home page so that you can apply the content on a different page.

    Best regards,
    Ismael

    #1432845

    Hi Ismael,

    I saw that the infinite string of buttons :-D you made did not give any errors, I deduce that the problem must be somehow linked to my environment. In this regard, I provide you with access to the backend of the hosting provider, asking you to proceed with particular attention. In addition to the possibility of accessing the file manager, you will also be able to check the configuration parameters of the PHP environment which could perhaps be the source of the problem.
    Sorry if I’m causing you all these problems, I haven’t had similar problems in the past with other hosting providers.

    Thanks for your help, have a good weekend
    Andrea

    #1432846

    PS this is not related with the bugs, but I’m curious to know what you of Kriesi think about the best site I created with enfold https://www.alfieridellatuscia.it/ … it seems very functional and nice to me. ;-)

    #1432967

    Hi,

    We were able to extract the shortcode of the home page, remove the button row shortcodes and apply it to a temp page. We also saved the content as template named “home template”. You can now delete the home page, create another page and apply the template to it. Please check the private field.

    Thank you for your patience.

    Best regards,
    Ismael

    #1433045

    Hello Ismael,
    Thank you so much for your valuable help. I basically recovered everything, I don’t know how to thank you enough!
    All is well in the end, just one question, did you manage to understand the reason for the problem, this point remains really unclear to me.
    When you come to Rome, let me know that you have a paid dinner! ;-)

    Truly thanks for everything
    Andrew

    #1433659

    Hi,

    You’re welcome! Glad we could be of help. Unfortunately, we’re still not sure about what caused the problem with the Button Row element. It might be the content or special characters but we can’t be sure. Let us know if you have more questions about the theme.

    Thanks for the dinner offer! Have a nice day!

    Best regards,
    Ismael

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Fatal error with button row’ is closed to new replies.