Kunena
   
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share
Forum is locked
[Solved] plg_kunenatoolbar: Parse error: syntax error, Forum is locked
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [Solved] plg_kunenatoolbar: Parse error: syntax error,
#38156
[Solved] plg_kunenatoolbar: Parse error: syntax error, 1 Month, 2 Weeks ago  
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
Tariqa2009
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/06 11:49 By sozzled.Reason: Change topic title
The topic has been locked.
 
#38157
Re:Parse error: syntax error, 1 Month, 2 Weeks ago  
Code:

<?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

Tariqa2009
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/25 07:18 By Tariqa2009.
The topic has been locked.
 
#38158
Re:Parse error: syntax error, 1 Month, 2 Weeks ago  
ok i worked it out guys thanks this code was missing from the file that installed on the server which is
Code:

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
Tariqa2009
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#38201
Re:Parse error: syntax error, 1 Month, 2 Weeks ago  
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
I'm just a user, mate
Moderator
Posts: 2496
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Canberra, Australia
The topic has been locked.
If you think I'm wrong then say "I think you're wrong." If you say "you're wrong", how do you know?
 
#38207
Re:Parse error: syntax error, 1 Month, 2 Weeks ago  
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...
LittleJohn
Kunena Developer
Posts: 98
graphgraph
User Online Now Click here to see the profile of this user
The topic has been locked.
 
#38245
Re:Parse error: syntax error, 1 Month, 2 Weeks ago  
had this problem too thanks for it
JerryLeeLewis
Junior Boarder
Posts: 51
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#39372
Re:Parse error: syntax error, 1 Month ago  
thank you guys,
i had the same problem and resolved as indicated above.

Thanks
Antonio
dahcapo
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
Go to topPage: 1