Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-05-2009
Member
 
Join Date: Feb 2009
Posts: 56
PHP WordPress Parse Error: syntax error, unexpected $end in

I had received the following error while working with the PHP WordPress -

" Parse Error: syntax error, unexpected $end in ….. scripts.php on line … "

I want to know what is the cause of this error and how/why does this error occured ?
Reply With Quote
  #2  
Old 22-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: PHP WordPress Parse Error: syntax error, unexpected $end in

unexpected $end indicates that you have probably missed to close a conditional - } in your php script. check your php script keenly and put the required conditional - } at the proper location.
Reply With Quote
  #3  
Old 22-05-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: PHP WordPress Parse Error: syntax error, unexpected $end in

The php wordpress error which you have mentioned may occur due to many reasons -
  • It may be a cause of missing curly bracket ( } ) in PHP script coding.

  • It may be also caused due to class definition error in PHP coding.
    In PHP, a class definition cannot be broke up and distributed into multiple files, or into multiple PHP blocks, unless the break is within a method declaration.

  • But more commonly, the error is caused by the use of Short Open tags in PHP,
    To use short open tags, it must be enabled in PHP.INI. Search for short_open_tag in PHP.INI, and change the value to On, like
    short_open_tag = On
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "PHP WordPress Parse Error: syntax error, unexpected $end in"
Thread Thread Starter Forum Replies Last Post
JScript compilation error syntax error B.Prajapati Technology & Internet 4 14-02-2011 03:24 AM
What does the syntax error unexpected token 1.9.6 AM_PATH_CPPUNIT(1.9.6)refers to Lucretia Operating Systems 5 14-11-2010 12:05 AM
PHP Parse error: parse error unexpected $ in main.php on line 12 ΘN-TH3-ЯΘCKZ Software Development 3 20-08-2009 06:07 PM
Batch syntax - parse registry key for info alfalyte Operating Systems 1 23-07-2009 06:47 PM
Error 0x8004230f: The shadow copy provider had an unexpected error while trying to process the specified operation Viensterrr Small Business Server 2 04-08-2008 07:30 AM


All times are GMT +5.5. The time now is 02:37 PM.