Parse error: unexpected T_STRING (or similar)
How do I resolve this PHP message?
If you are getting an error similar to:
"Parse error: parse error, unexpected T_STRING in /var/www/myaccount/public_html/includes/languages/english/SOMETHING.php on line 28"
This typically means you have forgotten to put a
\ (backslash) before a
' mark (single quote, apostrophe) in one of your
define() statements in the language file reported.
define('TEXT_SOMETHING','This is something simple that\'s used as an example');
\ in the word
Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.
Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified September 13, 2020 by Scott C Wilson (cd1b4fd).