• Resolved beachman14

    (@beachman14)


    Having made no recent changes to my site, whenever a customer tries to add something from my store to their cart they get a message that says “A critical error has occurred on this website.” If I disable the Flexible Shipping plugin, the error goes away. I am on version 4.24.19 and my WooCommerce version is version 8.8.3. Please help, no one can order from my store. Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author grola

    (@grola)

    Hi @beachman14,

    if a fatal error occurs, there must be something in the server logs. Go to WooCommerce -> Status -> Logs and paste this error here.

    Best regards
    Grzegorz

    Thread Starter beachman14

    (@beachman14)

    Here is the contents of the log, and I really appreciate the help.

    2024-05-06T14:48:57+00:00 Critical Declaration of FSVendor\WPDesk\FS\TableRate\Logger\ShippingMethodLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = [])
    Additional context
    {
    "error": {
    "type": 64,
    "file": "\/home3\/marknewm\/public_html\/singletreeproducts\/wp-content\/plugins\/flexible-shipping\/vendor_prefixed\/wpdesk\/wp-wpdesk-fs-table-rate\/src\/Logger\/ShippingMethodLogger.php",
    "line": 23
    },
    "backtrace": [
    {
    "file": "\/home3\/marknewm\/public_html\/singletreeproducts\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php",
    "line": 378,
    "function": "critical",
    "class": "WC_Logger",
    "type": "->"
    },
    {
    "function": "log_errors",
    "class": "WooCommerce",
    "type": "->"
    }
    ]
    }
    Plugin Author grola

    (@grola)

    @beachman14 it could be an incomplete installation or something related to the opcache in PHP. Please reinstall the flexible shipping files completely.

    Thread Starter beachman14

    (@beachman14)

    First I made screen shots of all the setup I had done. Next I deactivated and then deleted the plugin. Surprisingly all my setup was still there, but my problem appears to be fixed. Thank you for the help. I will let you know if there is any more trouble.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error when adding to cart’ is closed to new replies.