craigchristenson / woocommerce-2checkout-api

2Checkout Payment API WooCommerce Payment Module
MIT License
57 stars 43 forks source link

Internal Server Error #37

Open Ahmadtalal0786 opened 6 years ago

Ahmadtalal0786 commented 6 years ago

Hi, Recently i have installed your plugin at wordpress. i have the updated version of woocommerce which is 3.3.3 and it has installed successfully. but when i go to check out page and fill in all the detail and when i try to click on pay now button then i get INTERNAL SERVER ERROR. can you please help. I shall be thankful

walfaro-berrysys commented 6 years ago

I am experiencing the same problem. Have tested the plugin with WooCommerce versions 3.3.3 and 3.3.4 without success.

walfaro-berrysys commented 6 years ago

I just solved the issue by installing the php-curl library and restarting the apache server:

$ sudo apt-get install php-curl $ service apache2 restart

Ahmadtalal0786 commented 6 years ago

I have fixed the problem by myself, when u install the plugin then sometime your server will rename all the folders with CAPITAL LETTERS to SMALL LETTERS, this was the case with me, when i echo the error so the include file was missing, In your C-panel go to file manager and then go to TWOCHECKOUT plugin folder, if you folders are renamed to SMALL LETTER then open TWOCHECKOUT.php file and scroll down to the end and go to the line where it says INCLUDE DIRECTORY, just rename the folder names from CAPITAL LETTER to SMALL LETTERS and then save and then wallah it worked for me,

U need to change the name in this line:

include plugin_dir_path(FILE).'Twocheckout/TwocheckoutApi.php

You need to change only the FIRST T from CAPITAL to SMALL,

include plugin_dir_path(FILE).'twocheckout/TwocheckoutApi.php

Ahmadtalal0786 commented 6 years ago

Good to hear tht you solved it 😊😊😊