• Resolved dantekavala

    (@dantekavala)


    In the latest WordPress/Woocommerce/Divi/Rank Math SEO versions, I get a strange issue. With zero customised theme, when I have only Woocommerce and Rank Math SEO installed in a Divi theme, when I try to save as draft a product I get an error popup asking to try again. If I try the visual builder instead, I get an empty page with an admin-ajax.php 500 error.

    Checking the logs, I get this error

    [Sun May 22 21:55:48.061334 2022] [proxy_fcgi:error] [pid 8737:tid 139640962758400] [client 127.0.0.1:27240] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_ids() on null in /public_html/wp-content/themes/Divi/includes/builder/feature/woocommerce-modules.php:1004\nStack trace:\n#0 /public_html/wp-content/themes/Divi/includes/builder/module/woocommerce/Images.php(323): et_builder_wc_render_module_template('woocommerce_sho...', Array, Array)\n#1 /public_html/wp-content/themes/Divi/includes/builder/module/woocommerce/Images.php(392): ET_Builder_Module_Woocommerce_Images::get_images(Array)\n#2 /public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3331): ET_Builder_Module_Woocommerce_Images->render(Array, '', 'et_pb_wc_images', '', '', '', '', '')\n#3 /public_html/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '', 'et_pb_wc_images...\n', referer:

    I was able to reproduce it several times by enable/disable the plugin.

    This is the status clipboard from the production site. I tried the same in stage server with everything disabled

    
    ### rank-math ###
    
    version: 1.0.89.1
    database_version: 1
    plugin_plan: Free
    active_modules: link-counter, seo-analysis, sitemap, rich-snippet, woocommerce, local-seo, image-seo, analytics, content-ai
    refresh_token: No token
    permissions: 
    	Search Console: Not Given
    rank_math_404_logs: 32 KB
    rank_math_redirections: 32 KB
    rank_math_redirections_cache: 32 KB
    rank_math_internal_links: 160 KB
    rank_math_internal_meta: 16 KB
    rank_math_analytics_gsc: 80 KB
    rank_math_analytics_objects: 32 KB
    rank_math_analytics_inspections: Not found
    
    ### wp-core ###
    
    version: 5.9.3
    site_language: el
    user_language: en_US
    timezone: +00:00
    permalink: /%postname%
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1266
    dotorg_communication: true
    
    ### wp-dropins (1) ###
    
    advanced-cache.php: true
    
    ### wp-active-theme ###
    
    name: divi child (divi child)
    version: 1.0.0
    author: divi child
    author_website: 
    parent_theme: Divi (Divi)
    theme_features: core-block-patterns, block-templates, widgets-block-editor, post-thumbnails, custom-background, automatic-feed-links, menus, title-tag, post-formats, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, wp-block-styles, editor-style, widgets
    auto_update: Disabled
    
    ### wp-parent-theme ###
    
    name: Divi (Divi)
    version: 4.17.4
    author: Elegant Themes
    author_website: https://www.elegantthemes.com
    theme_path: /home/120520.cloudwaysapps.com/ebaeauhxbu/public_html/wp-content/themes/Divi
    auto_update: Disabled
    
    ### wp-mu-plugins (1) ###
    
    ManageWP - Worker Loader: author: ManageWP, version: (undefined)
    
    ### wp-plugins-active (20) ###
    
    Advanced Order Export For WooCommerce: version: 3.3.0, author: AlgolPlus, Auto-updates disabled
    Alpha Bank gateway - WooCommerce Gateway: version: 1.0, author: Antreas Gribas, Auto-updates disabled
    Bloom: version: 1.3.12, author: Elegant Themes, Auto-updates disabled
    Breeze: version: 2.0.4, author: Cloudways, Auto-updates disabled
    Elfsight Instagram Feed CC: version: 4.0.2, author: Elfsight, Auto-updates disabled
    Facebook for WooCommerce: version: 2.6.14, author: Facebook, Auto-updates disabled
    Google Tag Manager for WordPress: version: 1.15.1, author: Thomas Geiger, Auto-updates disabled
    Mailchimp for WooCommerce: version: 2.6.2, author: Mailchimp, Auto-updates disabled
    ManageWP - Worker: version: 4.9.13, author: GoDaddy, Auto-updates disabled
    Payment Gateway Based Fees and Discounts for WooCommerce: version: 2.6.4, author: Tyche Softwares, Auto-updates disabled
    Post SMTP: version: 2.0.27, author: Post SMTP, Auto-updates disabled
    Product Feed PRO for WooCommerce: version: 11.5.6, author: AdTribes.io, Auto-updates disabled
    Rank Math SEO: version: 1.0.89.1, author: Rank Math, Auto-updates disabled
    WooCommerce: version: 5.8.1, author: Automattic (latest version: 6.5.1), Auto-updates disabled
    WooCommerce Dynamic Pricing & Discounts: version: 2.4.3, author: RightPress, Auto-updates disabled
    WooCommerce Email Customizer with Drag and Drop Email Builder: version: 1.5.16, author: Flycart Technologies LLP, Auto-updates disabled
    WooCommerce Filter Orders by Product: version: 3.2, author: Md. Kowsar Hossain, Auto-updates disabled
    WooCommerce PayPal Checkout Gateway: version: 2.1.3, author: WooCommerce, Auto-updates disabled
    WooCommerce Product Add-ons: version: 3.9.1, author: WooCommerce, Auto-updates disabled
    Wordfence Security: version: 7.5.10, author: Wordfence, Auto-updates disabled
    
    ### wp-server ###
    
    server_architecture: Linux 4.9.0-13-amd64 x86_64
    httpd_software: Apache/2.4.25 (Debian)
    php_version: 7.2.34-28+0~20211119.67+debian9~1.gbpf24e81 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 6500
    time_limit: 3600
    memory_limit: 3072M
    max_input_time: 1000
    upload_max_filesize: 5M
    php_post_max_size: 5M
    curl_version: 7.52.1 OpenSSL/1.0.2u
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.34-log
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
    max_allowed_packet: 134217728
    max_connections: 4190
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/120520.cloudwaysapps.com/ebaeauhxbu/public_html/wp-content
    WP_PLUGIN_DIR: /home/120520.cloudwaysapps.com/ebaeauhxbu/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 3072M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dantekavala,

    Thank you for contacting the support and sorry for the inconvenience caused.

    Do you have the module “Woo Product Add To Cart” enabled on the product pages?

    If so, can you please disable the Link Counter module from the Rank Math dashboard and see if you can save the product information after that?

    We are looking forward to helping you.

    Thread Starter dantekavala

    (@dantekavala)

    It worked. I have no idea why, but I don’t get the error any more. Thank you!

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dantekavala,

    We’ve seen this error in the past where the “Woo Product Add To Cart” module of Divi conflicted with the “Link Counter” of Rank Math. We released a fix for the issue and the issue was fixed.

    The problem behind this error is that the $product variable is returning NULL when the function get_gallery_image_ids() function gets called on it.

    This usually means that there’s an issue with the template that you are using for your products. Please get in touch with the Divi support and make sure that the global $product variable always gets the correct product object.

    Let us know how that goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incompatibility with the Divi theme’ is closed to new replies.