Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have the debug.log message which I feel puzzled. It goes like this:

[19-Jul-2012 16:58:55] PHP Parse error:  syntax error, unexpected T_IF, expecting ',' or ';' in /my_path/create_post.php on line 83

The concerned code is in this line: L83:

if ( empty( $latlon ) )
{
    $adOK = 0;
    $post_new_error['latlon'] = __( 'You cannot leave the location blank!', 'SpW ); 
}

Any clue?

share|improve this question
See Milo's answer below. But since this is a typo issue, I'm closing as too-localized. – EAMann Jul 19 '12 at 19:16

closed as too localized by kaiser, EAMann Jul 19 '12 at 19:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

you're missing the closing quote on 'SpW':

__('You cannot leave the location blank!','SpW');
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.