Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #13423

    I was trying to edit the error404.php but when I updated I was confronted with the following error:

    Parse error: syntax error, unexpected T_STRING in /websites/123reg/LinuxPackage23/sp/ec/tr/ on line 3

    Here is the code:

    <p><?php _e(‘Nothing Found’, ‘avia_framework’); ?>

    <?php _e(‘Uh oh looks like you’re lost. Do you want to perform a search?’, ‘avia_framework’); ?>


    <?php get_search_form(); ?>

    <div class=’hr_invisible’></div>

    <?php _e(‘For the best search results, try the following:’, ‘avia_framework’); ?></p>

    • <?php _e(‘Always double check your spelling.’, ‘avia_framework’); ?>
    • <?php _e(‘Try similar keywords, for example: video instead of film.’, ‘avia_framework’); ?>
    • <?php _e(‘Try using more than one keyword.’, ‘avia_framework’); ?>

    <div class=’hr_invisible’></div>

    <h3 class=”><?php _e(‘How about reading some news instead?’, ‘avia_framework’); ?></h3>


    the_widget(‘avia_combo_widget’, ‘error404widget’, array(‘widget_id’=>’arbitrary-instance-‘.$id,

    ‘before_widget’ => ‘<div class=”widget avia_combo_widget”>’,

    ‘after_widget’ => ‘</div>’,

    ‘before_title’ => ‘<h3 class=”widgettitle”>’,

    ‘after_title’ => ‘</h3>’



    Can anyone tell me where I have gone wrong? The “Uh Oh looks like you’re lost” is the line 3 I believe but I can’t be sure what causes the syntax error


    Hi spectrecom,

    The apostrophe in “you’re” is causing the issue. Change it to “you are” and it’ll fix it.



Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘T_String Syntax Error 404 Page’ is closed to new replies.