500 error on submit order at Shop

0

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!

Question Resolved For: Stock Manager Advance with All Modules 0 Votes 4 Answers 733 Views
Asked by cihad 4 years ago

0

Answered by cihad 4 years ago

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!

0

Answered by Mian Saleem 4 years ago

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

0

Answered by cihad 4 years ago

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

0

Answered by Mian Saleem 4 years ago

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

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.