Closed Thread
Results 1 to 7 of 7

Thread: Parse error: syntax error, unexpected T_ELSE

  1. #1
    feven05 is offline x10Hosting Member feven05 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    4

    Parse error: syntax error, unexpected T_ELSE

    hi can anyone help me with this error, suppose to be visitor statics on my admin area...

    Parse error: syntax error, unexpected T_ELSE in /home/fevsfavt/public_html/includes/gapi.class.php on line 1

    <div class="content-box"><!-- Start Content Box -->
    <div class="content-box-header">
    <h3>Visitor statistics</h3>
    <ul class="content-box-tabs">
    <li><a href="#tab1" class="default-tab" onclick="loadAnalytics(1,null,null,null);">Daily</a></li> <!-- href must be unique and match the id of target div -->
    <li><a href="#tab4" onclick="loadTopShows();">Top shows</a></li>
    <li><a href="#tab2" onclick="loadAnalytics(2,null,null,null);">Referri ng sites</a></li>
    <li><a href="#tab3" onclick="loadAnalytics(3,null,null,null);">Keyword s</a></li>
    </ul>
    <div class="clear"></div>
    </div> <!-- End .content-box-header -->
    <div class="content-box-content">
    <div id="analytics_loader"></div>
    <script>
    loadAnalytics(1,null,null,null);
    </script>
    </div>

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Parse error: syntax error, unexpected T_ELSE

    Hello,

    It appears your script may have a corrupt file. If you downloaded this script from somewhere, try re-downloading it and replacing all the existing files with the new ones (make a backup first!). This should NOT affect your database, so you don't need to re-run the install script.
    Ryan Schmidt | Level 2 Support
    █ 888-X10-9668 - ryan[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    feven05 is offline x10Hosting Member feven05 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    4

    Re: Parse error: syntax error, unexpected T_ELSE

    thank you for respond! i didnt install it myself so was afraid i would mess it up. if its not going to affect anything ill do that.. should i just only replace the gapi.class.php and the getanalytic.php files? since everythingelse is working on website? if not
    whats the best way to replace them all? i have FTP on my c-panel, if i upload it all is it going to replace them itself?
    as you can see i have really small knowledge on this
    thanks again

  4. #4
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Parse error: syntax error, unexpected T_ELSE

    Just replace those two files.

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  5. #5
    feven05 is offline x10Hosting Member feven05 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    4

    Re: Parse error: syntax error, unexpected T_ELSE

    hi, thank you for respond, i tried it deleted the two files and replaced them...now am getting this error..

    Warning: main(../../includes/gapi.class.php) [function.main]: failed to open stream: No such file or directory in /home/fevsfavt/public_html/admin/ajax/getanalytics.php on line 0

    Fatal error: main() [function.require]: Failed opening required '../../includes/gapi.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fevsfavt/public_html/admin/ajax/getanalytics.php on line 0

    and the getanalytic.php file its admin/ ajax
    the gapi.class.php is in includes ...is this error mean anything?
    thanks again

  6. #6
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Parse error: syntax error, unexpected T_ELSE

    Looks like you didn't replace them correctly - are they in the right place, and are the file permissions set to 644?
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  7. #7
    feven05 is offline x10Hosting Member feven05 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    4

    Re: Parse error: syntax error, unexpected T_ELSE

    ha ha yes i did put it at wrong place, its working now am so relieved thank you so much. the old files did have error, i replaced them and working well now, but it s blank on IE and works on google chrome and MAC...any idea why? am just curiose to know, i can use the chrome.

    i really want to thank you wouldnt done it without you, as i was scared to touch the files, beside moving them around
    thank you
    check my website and let me know if you have any feedback..
    www.fevstv.com

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 04-18-2011, 07:15 AM
  2. Parse error: syntax error, unexpected T_ELSE
    By whathappenswhen53 in forum Programming Help
    Replies: 3
    Last Post: 08-21-2010, 08:10 AM
  3. Parse error: syntax error, unexpected '{'
    By bigbubbax in forum Programming Help
    Replies: 2
    Last Post: 03-07-2010, 08:36 PM
  4. Parse error: syntax error, unexpected
    By Fr33z4r in forum Free Hosting
    Replies: 12
    Last Post: 11-04-2007, 06:12 PM
  5. Replies: 9
    Last Post: 10-11-2007, 11:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers