Blog: PHP Parse error: syntax error, unexpected T_STRING
Apr202014
I was updating a plugin a while ago and received the subject PHP parse error. I must have looked at the referenced source-code line a million times:
define('EMAIL_SUBJECT_APPROVED', 'Approved: ' . STORE NAME . ' referrer account');
before I realized that I'd blanked out an underscore in the definition:
define('EMAIL_SUBJECT_APPROVED', 'Approved: ' . STORE_NAME . ' referrer account');
I'll be paying more attention to those missing underscores in the future!
Information
Latest Blog [View All]
External Links
Say "Thanks"
If I've helped you on the Zen Cart forums or you've found one of my free plugins helpful, feel free to give a little back by clicking here.
Copyright © 2012-2021 Vinos de Frutas Tropicales. Powered by Zen Cart