Parse error: syntax error, unexpected T_ELSE

Status
Not open for further replies.

feven05

New Member
Messages
4
Reaction score
0
Points
0
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);">Referring sites</a></li>
<li><a href="#tab3" onclick="loadAnalytics(3,null,null,null);">Keywords</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>
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
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.
 

feven05

New Member
Messages
4
Reaction score
0
Points
0
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
 

feven05

New Member
Messages
4
Reaction score
0
Points
0
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
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Looks like you didn't replace them correctly - are they in the right place, and are the file permissions set to 644?
 

feven05

New Member
Messages
4
Reaction score
0
Points
0
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 :tongue:
thank you :smile::smile:
check my website and let me know if you have any feedback..
www.fevstv.com
 
Status
Not open for further replies.
Top