• Resolved abc

    (@unrealpixel)


    Hi there,
    I need to add a tiny bit of backstory here since I have made significant changes to the system my site is running on.

    I tested the checkout on my old server running Apache and PHP 5.4.
    I have now transferred to a new server running CloudPanel on Debian 10 (NGINX) with PHP 7.4.

    After testing the checkout system today I was greeted with a message that said:
    “It was not possible to process your order. Try again.” (translated from Dutch).

    I’ve checked the PHP logs and found a rather worrying error. Here it is:

    [04-Apr-2022 14:38:47 Europe/Berlin] PHP Warning: require(ABSPATHWPINC/option.php): failed to open stream: No such file or directory in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-includes/functions.php on line 8
    [04-Apr-2022 14:38:47 Europe/Berlin] PHP Fatal error: require(): Failed opening required 'ABSPATHWPINC/option.php' (include_path='.:/usr/share/php') in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-includes/functions.php on line 8
    [04-Apr-2022 15:01:31 Europe/Berlin] PHP Warning: Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33
    [04-Apr-2022 15:01:31 Europe/Berlin] PHP Warning: require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33
    [04-Apr-2022 15:01:31 Europe/Berlin] PHP Fatal error: require(): Failed opening required 'ABSPATHwp-includes/version.php' (include_path='.:/usr/share/php') in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33

    Here is my ABSPATH in the WP-config file:

    /* That's all, stop editing! Happy publishing. */
    
    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
        define( 'ABSPATH', __DIR__ . '/' );
    }
    
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';

    I don’t really see anything wrong with this. I have already tried the following things:
    1. Rewrite all the permissions.
    2. Deleted all files (except wp-config.php & /wp-content) and uploaded from a clean download.
    3. Disabled (except necessary plugins (WooCommerce, Elementor, JetWooBuilder)) all plugins.
    4. Completely restarted the server.

    You can try adding a product in the cart and go to checkout and will see it does not work.

    Here is a link to the systemreport: https://www.toptal.com/developers/hastebin/udibepotaf.yaml

    Hopefully someone can help me I’ve been trying all day ??

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @unrealpixel,

    I just tried adding some products to the cart then went to the checkout page on your site and didn’t face any issues. Screenshot → https://snipboard.io/gpYJGQ.jpg

    If you still face the issue then can you please try changing your site’s Permalink structure(Settings ? Permalinks) then “Save Changes” and see if it solves the issue?

    permalink
    Link to image: https://snipboard.io/apx9kX.jpg

    Thread Starter abc

    (@unrealpixel)

    Hi there @shaonback2,
    Have you tried clicking checkout? (the button on the right). It doesn’t do anything…

    Hi @unrealpixel,

    Have you tried clicking checkout? (the button on the right). It doesn’t do anything…

    I think I am on the Checkout page.
    checkout
    Link to image: https://snipboard.io/gpYJGQ.jpg

     

    Can you please try changing your permalink structure and see if it helps?

    Thread Starter abc

    (@unrealpixel)

    Yes, that is the checkout page. I have clicked on save permalinks. The problems shows when filing out all the info, selecting a payment method (test payments are turned on so you can select credit card for example) and click on place order. (the blue button on the right)

    Hi @unrealpixel,

    Thanks for trying those. I went through the checkout process with an Amsterdam address and it did redirect me to Mollie. I didn’t try to progress any further than that.

    Is there anything else we need to do to reproduce this problem?

    Thanks!

    We haven’t heard back from you in a while, so I’m marking this thread as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ABSPATH not defined on checkout?’ is closed to new replies.