PHP Parse error: syntax error, unexpected T_STRING


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!


Copyright © 2012-2024 Vinos de Frutas Tropicales. Powered by Zen Cart