wavesnode / gateway-for-woocommerce

Wordpress woocommerce plugin for supporting Waves or any other token on the Waves platform, examples: https://shop.wavesnode.net and https://services.wavesnode.net
11 stars 27 forks source link

unexpected end of file #19

Closed checchia closed 6 years ago

checchia commented 6 years ago

After install, error 500. In nginx log:

*116 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected end of file in /home/wpuser/sites/cryptolab/wp-content/plugins/gateway-for-woocommerce/includes/class-waves-gateway.php on line 238"

clipto commented 6 years ago

See our blogpost: https://wavesnode.net/blog/waves-woocommerce-gateway/

PHP Parse error: syntax error, unexpected end of file If you see this error on a white page after activating the plugin:

Got error ‘PHP message: PHP Parse error: syntax error, unexpected end of file in /../wp-content/plugins/waves-gateway-for-woocommerce/includes/class-waves-gateway.php on line XXXX

This is probably caused by the PHP settings, as we use short-tags in our software. In the last PHP versions this is probably disabled by default.

To resolve:

Open php.ini and set short_open_tag=On