0

I'm coding a custom Woocommerce theme. All works well in local, but when I deploy on my server, this error occurs when I go to a product details:

Parse error: syntax error, unexpected end of file in /wp-content/themes/customtheme/content-single-product.php on line 231

Here's the concerned file code (Pastebin since it's a big amount of code and it display the lines number) : https://pastebin.com/bzgLQTmD

I really don't know where is this error given that I don't have it in local development.

I tried code validators, but they didn't gave me any clues.

Maxime Lafarie
  • 2,172
  • 1
  • 22
  • 41

1 Answers1

1

The problem is with short tags, which are not enabled by default. So, either enable them from php.ini or Change all of these:

<? endif; ?>

To Proper full tags like:

<?php endif; ?>
mega6382
  • 9,211
  • 17
  • 48
  • 69