Welcome, Guest
Username Password: Remember me
Keyword
  • Page:
  • 1

TOPIC: [Solved] plg_kunenatoolbar: Parse error: syntax error,

[Solved] plg_kunenatoolbar: Parse error: syntax error, 2 years ago #1

any idea what is this error i cant login to admin setting of kunena

Parse error: syntax error, unexpected $end in /home/techhom1/public_html/rt/administrator/components/com_kunena/toolbar.kunena.php on line 92
Last Edit: 2 years ago by sozzled. Reason: Change topic title
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #2

<?php
 
/**
 
* @version $Id: toolbar.kunena.php 502 2009-03-06 18:05:01Z fxstein $
 
* Kunena Component
 
* @package Kunena
 
*
* @Copyright (C) 2008 - 2009 Kunena Team All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.com
*
* Based on FireBoard Component
* @Copyright (C) 2006 - 2007 Best Of Joomla All rights reserved
 
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 
* @link http://www.bestofjoomla.com
 
*
 
* Based on Joomlaboard Component
 
* @copyright (C) 2000 - 2004 TSMF / Jan de Graaff / All Rights Reserved
 
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 
* @author TSMF & Jan de Graaff
 
**/

 
// ################################################################
 
// MOS Intruder Alerts
 
defined( '_JEXEC' ) or die('Restricted access');
 
 
 
// ################################################################
 
require_once( JApplicationHelper::getPath( 'toolbar_html' ) );
 
 
 
switch ($task)
 
{
 
case "new":
 
case "edit":
 
case "edit2":
 
CKunenaToolbar::_EDIT();
 
 
 
break;
 
 
 
case "cancel":
 
CKunenaToolbar::DEFAULT_MENU();
 
 
 
break;
 
 
 
case "showconfig":
 
CKunenaToolbar::_EDIT_CONFIG();
 
 
 
break;
 
 
 
case "showCss":
 
CKunenaToolbar::CSS_MENU();
 
 
 
break;
 
 
 
case "profiles":
 
CKunenaToolbar::_PROFILE_MENU();
 
 
 
break;
 
 
 
case "instructions": break;
 
 
 
case "newmoderator":
 
CKunenaToolbar::_NEWMOD_MENU();
 
 
 
break;
 
 
 
case "userprofile":
 
CKunenaToolbar::_EDITUSER_MENU();
 
 
 
break;
 
 
 
case "pruneforum":
 
CKunenaToolbar::_PRUNEFORUM_MENU();
 
 
 
break;
 
 
 
case "syncusers":
 
CKunenaToolbar::_SYNCUSERS_MENU();
 
 
 
break;
 
 
 
case "showAdministration":
 
CKunenaToolbar::_ADMIN();
 
 
 
break;
 
 
 
case "showprofiles":
 
CKunenaToolbar::_PROFILE_MENU();
 
 
 
break;
 
 
 
case "showsmilies":
 
CKunenaToolbar::_SHOWSMILEY_MENU();
 
 
 
bre
Last Edit: 2 years ago by Tariqa2009.
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #3

ok i worked it out guys thanks this code was missing from the file that installed on the server which is
ak;
 
 
 
case "editsmiley":
 
CKunenaToolbar::_EDITSMILEY_MENU();
 
 
 
break;
 
 
 
case "newsmiley":
 
CKunenaToolbar::_NEWSMILEY_MENU();
 
 
 
break;
 
 
 
case "ranks":
 
CKunenaToolbar::_SHOWRANKS_MENU();
 
 
 
break;
 
 
 
case "editRank":
 
CKunenaToolbar::_EDITRANK_MENU();
 
 
 
break;
 
 
 
case "newRank":
 
CKunenaToolbar::_NEWRANK_MENU();
 
 
 
break;
 
 
 
default:
 
CKunenaToolbar::BACKONLY_MENU();
 
 
 
break;
 
 
 
}
 
?>



I think lots of people going to have this error the file script not complete hope this will help other to solve this issue copy this replace it thanks
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #4

Tariqa2009 wrote:
I think lots of people going to have this error the file script not complete hope this will help other to solve this issue copy this replace it thanks
???? Sorry, I've never encountered this situation in any version of Kunena.
  • sozzled
  • OFFLINE
  • Kunena Moderator
  • I'm just a user, mate
  • Posts: 13145
If you benefit from our help you can show your appreciation by using the Thank You feature.
If you think I'm wrong then say "I think you're wrong." If you say "you're wrong", how do you know?
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #5

Can you reproduce this error if you uninstall joomla and kunena and start all over again?
Which versions are you using (of Joomla, Kunena, apache, PHP, Mysql, O/S, etc)?

When I cut the script at your position, the file is exactly 2048 b long.
How is this relevant?

It COULD be some defective buffer or errors in installation, but it could also just be a coincidence...
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #6

had this problem too thanks for it
The topic has been locked.

Re:Parse error: syntax error, 2 years ago #7

thank you guys,
i had the same problem and resolved as indicated above.

Thanks
Antonio
  • dahcapo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.53 seconds