Any php experts here?

Move along, nothing to see here!
Post Reply
jacob
Site Admin
Posts: 17109
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Some of you may recognize this error
Parse error: syntax error, unexpected T_STRING in /home1/earlyret/public_html/forum/my-templates/bbgrunge/register-success.php on line 7
Here's the file (line 7 is the really long one). I'm sure this is a really trivial problem to a php programmer. Something like a missing underscore or quote?!
<?php bb_get_header(); ?>
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> » <?php _e('Register'); ?></h3>
<h2 id="register"><?php _e('Great!'); ?></h2>
<p><?php printf(__('Your registration as <strong>%s</strong> was successful. It is currently being held for approval and should go through within 24 hours. You may or may not receive a notification. If you don't get one try logging in again after 24 hours. If you haven't received a password, click on lost password and a working one will be sent to you. If this does not work, write an email to jacob at earlyretirementextreme dot com using the email address you registered with. Sorry about the hassle, but it has been necessary to implement this to avoid spammers.'), $user_login) ?></p>
<?php bb_get_footer(); ?>


ishidav
Posts: 20
Joined: Fri Dec 17, 2010 2:14 pm

Post by ishidav »

You have a single quote in your text (as an apostrophe) ending your string early. Escape it with a backslash in front.
http://php.net/manual/en/language.types.string.php


jacob
Site Admin
Posts: 17109
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Ugh! I even have two of them. Thanks!


Post Reply