Home > Syntax Error > Php Syntax Error Unexpected T_endwhile

Php Syntax Error Unexpected T_endwhile

Contents

Why are planets not crushed by gravity? Browse other questions tagged page-template or ask your own question. Should I use "teamo" or "skipo"? What is a Likewise Thing? http://setiweb.org/syntax-error/php-syntax-error-unexpected-t-new.php

You don't have eight lines of code in your snippet. I don't know if that's what's causing it. Signature: (not a comment about anything you posted unless specifically indicated)Debugging step #1: To get past the garbage-out equals garbage-in stage in your code, you must check that the inputs to Posted 07 September 2012 - 03:00 PM I guess (just tested) that the ; don't matter right before the ?> tag. http://wordpress.stackexchange.com/questions/140035/why-am-i-getting-syntax-error-unexpected-endwhile-t-endwhile-in-this-templa

Unexpected 'endwhile' (t_endwhile)

add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted You are missing an [...] else: echo 'Sorry, only registered users can view RJ Levesque, Jr. My hosting company upgrade the PHP on server, after my site went mental. Parse error: syntax error, unexpected T_ENDWHILE in /single.php on line 30 Obviously I've removed the file path for security reasons.

Username Password I've forgotten my password Remember me This is not recommended for shared computers Sign in anonymously Don't add me to the active users list Privacy Policy You must learn enough of the programming language you are using to be able to read and write code. You provided the cause and solution. Php While I re-installed WP, tried lower version and so on, but nothing helped.

This forum is now closed to new posts, but you can browse existing content. Parse Error Syntax Error Unexpected Endwhile Course Forum Section 1 4/7 Parse error: syntax error, unexpected T_END... Subscribed! http://stackoverflow.com/questions/14089549/php-why-do-i-get-syntax-error-unexpected-endwhile-t-endwhile more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other

Signature: (not a comment about anything you posted unless specifically indicated)Debugging step #1: To get past the garbage-out equals garbage-in stage in your code, you must check that the inputs to Staff Alumni 8,982 posts LocationDallas, TX Age:26 Posted 07 September 2012 - 01:58 PM In the future, don't post your entire code, just the relevant part.When you get an error, it's php share|improve this question edited Jun 6 '12 at 21:47 jeroen 69k1374110 asked Jun 6 '12 at 21:46 Robert Robby 1313 closed as too localized by Tim Gostony, phwd, Polynomial, tereŇ°ko, When installing a local copy for use in a development environment one of the main problems to tackle is making sure that your local server is as close as possible to

Parse Error Syntax Error Unexpected Endwhile

Movie about a board-game that asks the players touchy questions How to heal religious units? https://www.codecademy.com/en/forum_questions/52ba98287c82ca64f4003d93 Register now! Unexpected 'endwhile' (t_endwhile) There are many variables that can change like software versions and configuration parameters. Php Endwhile Why did they bring C3PO to Jabba's palace and other dangerous missions?

The users who voted to close gave this specific reason:"Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in click site Sometimes, those error messages means that you are missing a ';' character at the end of a line and then PHP sees the next 'statement' (which is not a ';') and Apex variable map values passed to auto-launched flow not recognized by flow How to heal religious units? How do I "install" CentOS? Php If Have_posts While Have_posts The_post

It's a major part of writing correct code. What game is this picture showing a character wearing a red bird costume from? Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? "Surprising" examples of Markov chains How common is the usage of yous as news I saw the one missing the ; but I was under the impression that the last line can ommit it when there are ?> tags.

Unfortunately, the WP style of coding doesn't lend itself to troubleshooting simple syntax problems. Leave a Reply Cancel reply Name (required) Email (will not be published) (required) Website You can use these HTML tags

Thanks.

share|improve this answer answered Jun 6 '12 at 21:49 Tim Gostony 12k62757 Thanks man.

For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. php the_title(); ?>

BTW I forgot to mention that according to the editor I use (Notepad++), line 30 refers to: PHP Code: endwhile;else:?> more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed WordPress Development Stack Exchange works best with JavaScript enabled current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. More about the author code tags please Back to top #2 PravinS PravinS Advanced Member Members 459 posts Posted 06 August 2014 - 06:18 AM you have only 1 while loop and 2 endwhile Edited

Please re-enable javascript to access full functionality. Because if that was the error would the line number be up by 170 ish? While Loops in PHP Forum View Course 125 points Submitted by Tyson Ho almost 3 years ago 4/7 Parse error: syntax error, unexpected T_ENDWHILE, expecting ',' or ';' Using Endwhile Here Cheers Yasen Vasilev October 2, 2012 at 18:10 · Reply Hah, exactly today I was playing around with one theme and was wondering why it drops that error.

New replies are no longer allowed. share|improve this answer answered Dec 30 '12 at 9:02 shiplu.mokadd.im 36.7k574142 add a comment| Not the answer you're looking for? Why are planets not crushed by gravity? By simply changing this to: short_open_tag = On all my problems were magically resolved!

You have three opening whiles and three endwhiles but it's hard to tell if they all line up because of the erratic indenting. Proper formatting. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I just spent the last 2 hours trying to fix that… Mick November 19, 2012 at 21:26 · Reply Thank you.

Browse other questions tagged php or ask your own question. How to make your worlds revolutions feel realistic? Things You Should Do: Normalize Your Data | use print_r() or var_dump() Lulz: "Functions should not have side effects." - trq Please take a look at my new PHP/Web Dev blog: