Parse Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpower
    New Member
    • Apr 2010
    • 2

    Parse Error

    Parse error: syntax error, unexpected T_CONSTANT_ENCA PSED_STRING, expecting ',' or ';' in /home/mpowe3/public_html/mpowerfund/Shop/checkout_succes s.php on line 139
    I am getting the above error and I am not sure what is causing it. Below are a few lines of code and I have placed 3 stars (***) before and after the line I think the error is pointing to. Any ideas on what is wrong?

    Code:
    //PWA BOF
      }
      //PWA EOF
    
           ***     ?><h3><?php echo TEXT_'THANKS_FOR_SHOPPING'; ?></h3></td>    
              </tr>   ***
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
    Last edited by Atli; Apr 26 '10, 04:14 PM. Reason: Added [code] tags.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    What is this supposed to be doing?
    [code=php]<?php echo TEXT_'THANKS_FO R_SHOPPING'; ?>[/code]
    This is what is causing the error. The TEXT_ part is read as a constant, and the rest as a string, and you can't slap them next to each other like that.

    Is the TEXT_ supposed to be a constant, and you forgot to concatenate them, or is TEXT_ supposed to be a part of the string?

    Comment

    • mpower
      New Member
      • Apr 2010
      • 2

      #3
      Atli,

      No, TEXT_ is not part of the string. So, I guess I should delete that from that line. I'll try that and see if it works.

      Thanks for responding.

      Comment

      Working...