• Resolved artyus

    (@artyus)


    Hello!

    I plan to use your plugin on the new site. During testing by Query Monitor, it turned out that your plugin generates several php errors (see screenshot). Moreover, this does not happen on all pages of the site, but on the pages of goods (WooCommerce store). The site uses php 7.4.6.

    Here is a detailed description of the first error:

        wp-content/plugins/all-in-one-video-gallery/includes/player.php:666
        AIOVG_Player->get_params()
        wp-content/plugins/all-in-one-video-gallery/includes/player.php:76
        AIOVG_Player->create()
        wp-content/plugins/all-in-one-video-gallery/includes/functions.php:683
        aiovg_get_player_html()
        wp-content/plugins/all-in-one-video-gallery/includes/functions.php:1772
        the_aiovg_player()
        wp-content/plugins/all-in-one-video-gallery/widgets/video.php:90
        AIOVG_Widget_Video->widget()
        wp-includes/class-wp-widget.php:380
        WP_Widget->display_callback()
        wp-includes/widgets.php:805
        dynamic_sidebar('footer-widget-area')
        wp-content/themes/weaver-xtreme/includes/lib-layout.php:777
        weaverx_put_widgetarea()
        wp-content/themes/weaver-xtreme/footer.php:25
        load_template('wp-content/themes/weaver-xtreme/footer.php')
        wp-includes/template.php:672
        locate_template()
        wp-includes/general-template.php:76
        get_footer('page')
        wp-content/themes/weaver-xtreme/includes/lib-runtime.php:1447
        weaverx_get_footer()
        wp-content/themes/weaver-xtreme/includes/lib-layout.php:473
        weaverx_page_tail()
        wp-content/themes/weaver-xtreme/woocommerce.php:32

    Judging by the report, I see a connection with the placement of the widget of your plugin in the footer of the theme. I note that in my settings the display of this widget in the footer is permitted only on the product pages (through the Show only on Custom Post Types function, which is implemented using the “Widget Options” plugin from the Widget Options Team). Apparently, your plugin leads to errors with this setting, i.e. if are used any restrictions to display the widget on certain pages.

    I hope you can figure it out.

    Yours faithfully,
    Farid Taziev.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Aah. I see those errors are related to our brand settings. Our next version coming out tomorrow will have a permanent fix for this issue.

    As an immediate solution,

    1. Open the /wp-content/plugins/all-in-one-video-gallery/includes/player.php file.

    2. Find the following code (line #666),

    'logo_image'	       => $brand_settings['logo_image'],
    'logo_link'	       => $brand_settings['logo_link'],
    'logo_position'        => $brand_settings['logo_position'],
    'logo_margin'          => $brand_settings['logo_margin'],
    'copyright_text'       => $brand_settings['copyright_text'],

    3. Replace it as,

    'logo_image'	       => ! empty( $brand_settings['logo_image'] ) ? $brand_settings['logo_image'] : '',
    'logo_link'	       => ! empty( $brand_settings['logo_link'] ) ? $brand_settings['logo_link'] : '',
    'logo_position'        => ! empty( $brand_settings['logo_position'] ) ? $brand_settings['logo_position'] : '',
    'logo_margin'          => ! empty( $brand_settings['logo_margin'] ) ? $brand_settings['logo_margin'] : '',
    'copyright_text'       => ! empty( $brand_settings['copyright_text'] ) ? $brand_settings['copyright_text'] : '',

    4. Save the changes and check now.

    Hope, this solved your issue!

    Thread Starter artyus

    (@artyus)

    Hey.

    I can confirm that after the last update everything is fine. Thank.

    Yours faithfully,
    Farid Taziev.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP-errors on WooCommerce store product pages’ is closed to new replies.