Page 1 of 1

What does "Unterminated comment" mean?

Posted: Sun May 10, 2009 8:45 am
by NewBieOnJoomla
Hello!

Can anyone please tell me what does the following message mean

Warning: Unterminated comment starting line 84 in /customers/mysite.org/mysite.org/httpd.www/administrator/index.php on line 84

I am not familiar with PHP so cant decipher this.

Thanks!

P.S

The index.php looks like this

Code: Select all

 
<?php
/**
* @version   $Id: index.php 10381 2008-06-01 03:35:53Z pasamio $
* @package   Joomla
* @copyright    Copyright (C) 2005 - 2008 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' );
require_once( JPATH_BASE .DS.'includes'.DS.'helper.php' );
require_once( JPATH_BASE .DS.'includes'.DS.'toolbar.php' );
 
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
 
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('administrator');
 
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
$mainframe->initialise(array(
'language' => $mainframe->getUserState( "application.lang", 'lang' )
));
 
JPluginHelper::importPlugin('system');
 
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
 
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
 
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
 
/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JAdministratorHelper::findOption();
$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->triggerEven( 'onAfterRender' );
 
/**
 
 
 

Re: What does "Unterminated comment" mean?

Posted: Sun May 10, 2009 9:41 am
by Defiline
Look at the last line:
/**
There are several types of comments:

// Comment Here — One-line comment
# Shell-style comment — One-line comment
/* comment */ — Multi-line comment. Any comment like this has to be closed with */

Correct:
/*
* Hello, World
*/


Wrong:
/**
* I am invalid

Re: What does "Unterminated comment" mean?

Posted: Sun May 10, 2009 11:22 am
by Benjamin
:arrow: Moved to PHP - Code