How many button_name.php files do you have?
Do you have one in your override folder? If so, does it contain all the entries that are in the master version of the file? It's most likely missing, which is what would cause the name of the defined constant to appear instead of its expected value.

FAQ: https://www.zen-cart.com/tutorials/index.php?article=95