Home Forums WoodMart support forum Media Cleaner Plugin issue with WoodMart

Media Cleaner Plugin issue with WoodMart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #621226

    Madoo Webdesign
    Participant

    Hello, can you help me with this…see complete error in private content box.

    The log entries you provided show multiple PHP errors occurring on your WordPress site. Specifically, they describe a “Fatal error” caused by a TypeError in the PHP code. Here’s a breakdown of the issue:

    Error Summary:
    Error type: PHP Fatal error
    Cause: Uncaught TypeError: Unsupported operand types: string * int
    This means that the code is attempting to perform a multiplication operation (*) between a string and an integer, which is not allowed in PHP. PHP cannot multiply a string by an integer directly.
    Location of the Error:
    File: /home/tuincentranl/domains/tuincentra.nl/public_html/wp-content/themes/woodmart/inc/shortcodes/products.php
    Line: 387
    The error is happening in a function related to the woodmart_shortcode_products(), which is part of the Woodmart theme on your WordPress site.
    Stack Trace:
    The stack trace shows the path the execution takes leading up to the error:

    The error occurs in the woodmart_shortcode_products() function, which is called by the do_shortcode_tag() function in WordPress’s shortcode handling code.
    The issue is also related to the “Media Cleaner” plugin, which seems to be attempting to process URLs from the HTML in posts.
    What it means:
    There is likely an issue with how data is being passed to the woodmart_shortcode_products() function in the theme. Specifically, a string value is being multiplied by an integer, which isn’t a valid operation. This could be due to incorrect or unexpected data types being passed to the function.
    How to Fix:
    Check the code in products.php: Inspect line 387 and the surrounding code in the products.php file within the Woodmart theme. You will likely find an operation that is incorrectly trying to multiply a string with an integer. You’ll need to ensure that both operands are of compatible types (e.g., both should be integers or numbers).

    Debug the shortcode: If you’re using custom shortcodes or dynamic data in the page where this error occurs, review the data passed to the shortcode. Make sure any values passed are the correct types (e.g., avoid passing strings where numbers are expected).

    Check the Media Cleaner Plugin: Since the error is also triggered while the Media Cleaner plugin is running (Meow_WPMC_Core class in the trace), ensure that the plugin is configured correctly and that it’s not interacting incorrectly with the shortcode.

    If you’re not familiar with editing PHP code, you might want to ask a developer to fix the data type issue for you.

    #621243

    Artem Temos
    Keymaster

    Hello,

    Please send us your admin access and describe how we can reproduce this error in real time so we can check and fix it.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)