Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1322862

    Hi Enfold Team,

    i noticed problems in the WooCommerce editing a product in the admin backend page some days ago, where trying to upload a product image did not result to the usual word press media upload lightbox pop-up, but opened this full screen page instead:
    2021-09-29-18-52-05-Piano-Revolution-Uploads-Word-Press

    Today I noticed more errors:
    1. on the edit product page really on the bottom the typical WordPress critical error message:
    “Es gab einen kritischen Fehler auf deiner Website. Bitte überprüfe den Posteingang deiner Website-Administrator-E-Mail-Adresse für weitere Anweisungen.
    Erfahre mehr über die Problembehandlung in WordPress.” [German, I think you understand it ;-)]
    but I didn’t get an E-Mail.
    The design of the different boxes at the bottom also looks weird, see the following screenshot:
    2021-09-29-18-53-20-Produkt-bearbeiten-Piano-Revolution-Word-Press

    2. Then I checked the status logs via WooCommerce Status => Logs and found in the fatal-errors-2021-09-29-5031f9e9da7ced79a89a9a3a601565b6.log a large number of these errors:

    
    2021-09-29T16:44:52+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to AviaBuilder::handler_wp_dbx_post_sidebar() must be an instance of WP_Post, instance of stdClass given, called in /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-includes/class-wp-hook.php on line 303 and defined in /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php:507
    Stack trace:
    #0 /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-includes/class-wp-hook.php(303): AviaBuilder->handler_wp_dbx_post_sidebar()
    #1 /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #2 /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-includes/plugin.php(470): WP_Hook->do_action()
    #3 /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-admin/edit-form-advanced.php(723): do_action()
    #4 /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-admin/post.php(206): require('/kunden/454493_...')
    #5 {main}
      thrown in /kunden/"REMOVED_CUSTOMER_NR"/webseiten/"MYPAGE"/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php in Zeile 507

    (I removed details of the log because this is public, the unfiltered one is in the private tags)

    All my page details/plugins and installed versions (everything is up to date) I also pasted into the private content below.

    Any help on this would be greatly appreciated, something seems seriously wrong here and I can’t edit images of products anymore…
    Thanks guys!
    Jörg

    • This topic was modified 3 years, 1 month ago by joerka27.
    #1323056

    Hey joerka27,

    Sorry for the problems.

    In file enfold\config-templatebuilder\avia-template-builder\php\class-template-builder.php around line 507 you find

    
    public function handler_wp_dbx_post_sidebar( WP_Post $post )
    

    Replace this with:

    
    public function handler_wp_dbx_post_sidebar( $post )
    

    Do not forget to make a backup of the original file for a fallback and clear server cache.

    If you need help please create an admin account for us (with ability to edit theme files) and our moderator can do it for you.

    Fix will be in next update.

    Best regards,
    Günter

    #1323116

    Hi Günter,

    thanks a lot, your solution works like a charm!
    As this is a replacement in the live enfold theme, wouldn’t this be replaced with the next Enfold update? Because than I would have to replace this file after every update…
    Or will that be fixed in general in the next Enfold update?

    Apart from that this issue can then be closed, have a great weekend!
    Cheers,
    Joerka

    #1323125

    Hi,

    This fix is already part of the next update (you can follow the oncoming changes here: https://kriesi.at/support/topic/enfold-upcoming-fixes/)

    Enjoy the theme and have a great day.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.