Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ignasp

    (@ignasp)

    Oh, I think I found it

    I had to update both /plugins/event-tickets/src/resources/js/commerce/gateway/stripe/checkout.js and checkout.min.js

    So it would contain the code would have locale in there like so:

        obj.stripeElements = obj.stripeLib.elements( {
            clientSecret: obj.checkout.paymentIntentData.key,
            appearance: obj.checkout.elementsAppearance,
            locale: 'lt',
        } );

    Now – it works, though pretty sure that as soon as I update my plugin – this change will be gone, so this is another challenge to be solved

    ignasp

    (@ignasp)

    To get a clearer picture of what’s causing the error, you need to enable PHP error reporting. This can usually be done from your hosting control panel. Alternatively, you can manually enable it by adding these lines two files:

    wp-config.php:
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, true);


    If you’re using an Apache server, add these lines to your .htaccess file:
    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on


    After enabling error reporting, revisit your website. Instead of the generic “critical error” message, you should now see a specific error message, which can guide you to the root cause.

    If the error points to a specific plugin or theme, try to deactivate the plugin or theme causing the issue. If you can’t access the backend, use an FTP client to rename the plugin or theme folder, which will disable it. Once disabled, check if there are updates available for the plugin or theme, as updates often include fixes for known issues.

    If the error isn’t related to a plugin or theme, it might be an issue with the WordPress core files. You can safely reinstall them via SSH. Execute the following command in your public_html directory:
    wp core download –skip-content –force

    Disclaimer:
    It’s important to note that using the wp core download –skip-content –force command is a safe operation for your website. This command specifically targets WordPress core system files for reinstallation. It does not affect your website’s content, such as images, posts, or pages, nor does it alter your installed plugins or themes.

    • This reply was modified 1 year ago by ignasp.
    ignasp

    (@ignasp)

    Hey there! I can see that the pagination issue on your site seems to be fixed now – that’s great news! Could you share how you managed to resolve it? Your solution could really help others who might be facing similar challenges.

    ignasp

    (@ignasp)

    Given that you’ve confirmed the files are indeed present and contain code, the issue may not be with the files themselves, but rather with how they’re being accessed or executed. It’s a good idea to review and reset the file permissions on your server. Many hosting providers offer some feature or option that allows you to revert file permissions back to their default settings just with a single button press. If anything, you can find more information on WP permissions here

    Downgrading to PHP 7.4 could be a helpful as well since numerous plugins and themes are often more finely tuned for compatibility with PHP versions up to 7.4, rather than newer versions.

Viewing 4 replies - 1 through 4 (of 4 total)