×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Error after instaling"unexpected T_OBJECT_OPERATOR"

Error after instaling"unexpected T_OBJECT_OPERATOR" 15 years 3 months ago #5681

  • Diego Souto
  • Diego Souto's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
So I had the previous version of IjoComment, i think was the 3.5.6 or somithing like.... and I unistaled it in order to install the 4.0 beta.

Ok I installed it withou a hitch but, the problem is everytime I go to

Components
> and try to click in any option of the IJoomla I ge this error.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home1/oquevoce/public_html/administrator/components/com_comment/toolbar.comment.html.php on line 29

So I'm asking you guys any idea what possible wrong??


Another strange think it seens the comments are working just fine on the front-end

By the way heres the code of the page:
<?php defined('_JEXEC')  or die('Direct Access to this location is not allowed.');
 
/**
 * Copyright Copyright (C) 2007 Alain Georgette. All rights reserved.
 * Copyright Copyright (C) 2006 Frantisek Hliva. All rights reserved.
 * License http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 *
 * !JoomlaComment is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * !JoomlaComment is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 */
 
require_once(JPATH_SITE.DS.'components'.DS.'com_comment'.DS.'joscomment'.DS.'utils.php');
require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_comment'.DS.'class.config.comment.php');
 
function existsAkoTable()
{
    JFactory::getDBO()->setQuery ('');
}
 
class JOSCmosMenubar extends JToolbarHelper {
 
}
 
class menucomment {
 
    function MENU_DEFAULT($component='')
    {
 
 
 
	    $config = new JOSC_defaultconfig($component);
    	$config->load();
        if (strpos(strtoupper($config->_local_charset), "UTF-8")===false) {
          		JOSCmosMenuBar::custom('convertlcharset', 'extensions_f2.png', 'extensions_f2.png', "Convert to $config->_local_charset", true);       	
        }
        unset($config);
 
        JOSCmosMenuBar::publishList();
        JOSCmosMenuBar::unpublishList();
//        JOSCmosMenuBar::addNew();
        JOSCmosMenuBar::editList();
        JOSCmosMenuBar::deleteList(" Users will not be notified. To notify users use line delete button !");
        JOSCmosMenuBar::spacer();
 
    }
 
    function SETTINGS_MENU()
    {
//        JOSCmosMenuBar::publishList();
//        JOSCmosMenuBar::unpublishList();
 
		/* expert mode is not still available - only used for joomlacomment DEMO */		
//   		if (!(strpos(JURI::base(), 'http://localhost/liberator')===false)) JOSCmosMenuBar::custom('settingsexpert', 'extensions_f2.png', 'extensions_f2.png', "Expert Mode", false);
        JOSCmosMenuBar::addNew('settingsnew');
        JOSCmosMenuBar::editList('settingsedit'); /* $task='edit', $alt='Edit' */
        JOSCmosMenuBar::deleteList('', 'settingsremove'); /* $msg='', $task='remove', $alt='Delete' */
        JOSCmosMenuBar::spacer();
 
    }
 
    function SETTINGSEXPERT_MENU()
    {
 
//   		if (!(strpos(JURI::base(), 'http://localhost/liberator')===false)) JOSCmosMenuBar::custom('settings', 'extensions_f2.png', 'extensions_f2.png', "Simple Mode", false);
 
//        JOSCmosMenuBar::publishList();
//        JOSCmosMenuBar::unpublishList();
        JOSCmosMenuBar::addNew('settingsnewexpert');
        JOSCmosMenuBar::editList('settingseditexpert'); /* $task='edit', $alt='Edit' */
        JOSCmosMenuBar::deleteList('', 'settingsremove'); /* $msg='', $task='remove', $alt='Delete' */
        JOSCmosMenuBar::spacer();
 
    }
 
    function CONFIG_MENU()
    {
 
        JOSCmosMenuBar::save('savesettings');
        JOSCmosMenuBar::apply('applysettings');
        JOSCmosMenuBar::cancel('settings');
        JOSCmosMenuBar::spacer();
 
    }
 
    function CONFIGEXPERT_MENU()
    {
 
        JOSCmosMenuBar::save('savesettingsexpert');
        JOSCmosMenuBar::apply('applysettingsexpert');
        JOSCmosMenuBar::cancel('settingsexpert');
        JOSCmosMenuBar::spacer();
 
    }
 
    function CONFIGSIMPLE_MENU()
    {
 
        JOSCmosMenuBar::save('savesettingssimple');
        JOSCmosMenuBar::apply('applysettingssimple');
//        JOSCmosMenuBar::cancel('');  /* -> view comments */
        JOSCmosMenuBar::spacer();
 
    }
 
    function IMPORT_MENU($josctask)
    {
 
        JOSCmosMenuBar::apply($josctask['apply'], 'Preview');
		//mosMenuBar::custom($josctask['import'], 'move.png', 'move_f2.png', 'Import selected' );
      	JOSCmosMenuBar::custom($josctask['importall'], 'move.png', 'move_f2.png', 'Import ALL', false);
      	JOSCmosMenuBar::spacer();
 
    }
 
    function FILE_MENU()
    {
 
        JOSCmosMenuBar::save();
        JOSCmosMenuBar::cancel();
        JOSCmosMenuBar::spacer();
 
    }
    function ABOUT_MENU()
    {
 
        JOSCmosMenuBar::back();
        JOSCmosMenuBar::spacer();
 
    }
 
    function JUST_BACK()
    {
 
        JOSCmosMenuBar::back();
        JOSCmosMenuBar::spacer();
 
    }
 
    function JOOMVERTISING_MENU()
    {
        JOSCmosMenuBar::back();
        JOSCmosMenuBar::spacer();
    }
 
}
 


Thanks guys any help is apreciate.

Error after instaling"unexpected T_OBJECT_OPERATOR" 15 years 3 months ago #5692

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You don't use php5 and you also didn't search the forum :)

Error after instaling"unexpected T_OBJECT_OPERATOR" 15 years 3 months ago #5696

  • Diego Souto
  • Diego Souto's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hey thank you very much, sorry I didn't searched it troughly here on the forum.
but again thankyou.
  • Page:
  • 1
Time to create page: 0.115 seconds