Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Parse error at logout

Hi there,

I did an upgrade from 1.8.0.1 to 1.8.0.2.

After the upgrade I was able to login without any errors except the DB 1582 error, that I solved with the corrected ajax.reports.php from Github.

But when I try to logout, I get the following error:

Parse error: syntax error, unexpected ';' in /www/htdocs/XXXXXXXX/scp/logout.php on line 24 , (where XXXXXXXX ist my account number at my hoster)

I checked the logout.php, but did not find any errors in that file.

Who can help?

Thanks in advance.

Joachim Scholtysik
Tagged:

Comments

  • Please post line 24 from /www/htdocs/XXXXXXXX/scp/logout.php

  • Hi ntozier,

    this is line 24 of logout.php:

                $thisstaff->getUserName(), $_SERVER['REMOTE_ADDR'])); //Debug.


    Greetings.


    Joachim Scholtysik
  • I have 22-25

    $ost->logDebug('Staff logout',
            sprintf("%s logged out [%s]",
                $thisstaff->getUserName(), $_SERVER['REMOTE_ADDR'])); //Debug.
    $_SESSION['_staff']=array();

    does your match this?
  • edited February 2014
    Hi ntozier,

    no, logout.php contains the following lines:

    <?php
    /*********************************************************************
        logout.php

        Log out staff
        Destroy the session and redirect to login.php

        Peter Rotich <peter@osticket.com>
        Copyright (c)  2006-2013 osTicket
        http://www.osticket.com

        Released under the GNU General Public License WITHOUT ANY WARRANTY.
        See LICENSE.TXT for details.

        vim: expandtab sw=4 ts=4 sts=4:
    **********************************************************************/
    require('staff.inc.php');
    //Check token: Make sure the user actually clicked on the link to logout.
    if(!$_GET['auth'] || !$ost->validateLinkToken($_GET['auth']))
        @header('Location: index.php');

    $ost->logDebug($txt['scp']['logout'][0],
            sprintf(sprintf($txt['scp']['logout'][1],
                $thisstaff->getUserName(), $_SERVER['REMOTE_ADDR'])); //Debug.
    $_SESSION['_staff']=array();
    session_unset();
    session_destroy();
    @header('Location: login.php');
    require('login.php');
    ?>


    1.8.0.1 was a german translation of osTicket from osticket.com.de, the upgrade to 1.8.0.2 also.

    Greetings.

    Joachim Scholtysik
  • There is no official German version of osT.  I do not know who that is, but is not us.  I recommend that you communicate with them for support.
  • Ok, thanks.

    Are there any plan when a multilanguage version of osTicket will see the light?

    Greetings.


    Joachim
  • Hi Joachim

    I've experienced the same troubles with the logout.
    What i did was:
    • Take the original file from the english installation
    • Overwrite the one in my installation folder.

    After that the logout worked successfully.

    Greetings

    Dominik

This discussion has been closed.