Question: 500 error on submit order at Shop

500 error on submit order at Shop

Dear Tecdiary team, I am getting 500 internal error after I submit an order on the shop checkout page. I can see that the orders are present when I look at My Orders page of the user (for c

C

cihad

Asked
Dear Tecdiary team,

I am getting 500 internal error after I submit an order on the shop checkout page.
I can see that the orders are present when I look at My Orders page of the user (for cash orders online).

Usually I should see a succespage with your order has been succesfully placed i guess?




I check my error log and the following is logged. No other error were present.

**::1 - - [13/Dec/2019:10:41:39 +0100] "POST /sma/shop/order HTTP/1.1" 500 -**

**::1 - - [13/Dec/2019:10:44:45 +0100] "POST /sma/shop/order HTTP/1.1" 301 240**

Could maybe be a htaccess issue?

***
htaccess:
DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>

RewriteEngine On
# RewriteBase /basepath/
RewriteCond $1 !^(index\.php|assets|install|update)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# For godady Shared Hosting Server uncomment the line below
RewriteRule ^(.*)$ index.php?/$1 [L]

# Please comment this if you have uncommented the above
# RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

</IfModule>

***

Please help!
  • C

    cihad

    Answered
    Dear Tecdiary team,

    I am getting 500 internal error after I submit an order on the shop checkout page.
    I can see that the orders are present when I look at My Orders page of the user (for cash orders online).

    Usually I should see a succespage with your order has been succesfully placed i guess?




    I check my error log and the following is logged. No other error were present.

    **::1 - - [13/Dec/2019:10:41:39 +0100] "POST /sma/shop/order HTTP/1.1" 500 -**

    **::1 - - [13/Dec/2019:10:44:45 +0100] "POST /sma/shop/order HTTP/1.1" 301 240**

    Could maybe be a htaccess issue?

    ```php
    htaccess:
    DirectoryIndex index.php index.html

    <IfModule mod_rewrite.c>

    RewriteEngine On
    # RewriteBase /basepath/
    RewriteCond $1 !^(index\.php|assets|install|update)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # For godady Shared Hosting Server uncomment the line below
    RewriteRule ^(.*)$ index.php?/$1 [L]

    # Please comment this if you have uncommented the above
    # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

    </IfModule>
    ```

    Please help!
  • MS

    Mian Saleem

    Answered
    Hello,

    You need to check the server error logs for 500 error details. Only 500 error log is useful to know the cause.

    Please let me know the error details sot that I can suggest.

    Thank you
  • C

    cihad

    Answered
    UPDATE:
    I only got the 500 error on localhost. On webserver it is working!
  • MS

    Mian Saleem

    Answered
    Wherever you get 500, you need to check error logs of that server and let us know so that we can suggest solution.
  • Login to Reply