Home > syntax error > php parse error syntax error unexpected t_endif

Php Parse Error Syntax Error Unexpected T_endif

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies syntax error unexpected 'endif' (t_endif) laravel of this site About Us Learn more about Stack Overflow the company Business unexpected endif c++ Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges

Parse Error Syntax Error Unexpected 'endif' (t_endif) Wordpress

Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute:

Short_open_tag

Sign up Parse error: syntax error, unexpected 'endif' (T_ENDIF), when trying to view post up vote 0 down vote favorite 1 I have just installed a new wordpress theme and while viewing a single post I get the following error: Parse error: syntax error, unexpected 'endif' (T_ENDIF) in C:\xampp\htdocs\wordpress\wp-content\themes\amzola\loop-single.php on line 313 The error indicates there is an unexpected endif statement on line php endif 313 of the file loop-single.php. I notice on line 272 this theme's code declares: $orig_post = $post; $global $post; and later reverts the variable with: $post = $orig_post; This seems incorrect, as $post will be NULL before it is globalized, therefore this logic will essentially empty the Wordpress $post variable. Is it possible this action is causing a PHP error before the endif statement, throwing the above error code? How can I easily check errors in my Wordpress website? Here is my php code of loop-single.php of a Wordpress theme:

>

ID, 'uxde' . 'custom_post_featured_image', true ) == 'true') : ?>

here for a quick overview of the site Help Center Detailed answers to any questions you might

Unexpected End Of File

have Meta Discuss the workings and policies of this site About php if Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting netbeans ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 http://stackoverflow.com/questions/18932951/parse-error-syntax-error-unexpected-endif-t-endif-when-trying-to-view-pos million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_ENDIF in /home/content error php [closed] up vote -1 down vote favorite thank guys you fixed the function problem, site is still screwy though tried to debug with psp pad and altova + http://stackoverflow.com/questions/19250411/parse-error-syntax-error-unexpected-t-endif-in-home-content-error-php dw but did not show up but at least error gone. thanks u got me trouble :-) ========================== hi i have a WordPress site and its giving me this error : Parse error: syntax error, unexpected T_ENDIF in /home/content/58/5025958/html/wordpress/wp-content/themes/#####/header.php on line 90 . 88

    89 90 91 here is the full code :if any help out there i would appreciate it I am stumped i know its some thing simple` > <?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?>