Log in

View Full Version : Parse error: syntax error, unexpected $end, expecting T_STRING


Mean
07-23-2007, 10:57 AM
When i attempt to click admincp it says;

Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE or '{' or '$' in /usr/hosts/domains/propaket/bodrumlife_pro/www.xxx.com/httpdocs/admincp/index.php on line 168

How can i fix ??

Marco van Herwaarden
07-23-2007, 11:12 AM
To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

Mean
07-23-2007, 11:38 AM
I only re-upload admicp files and it works. Thanks...

Mean
07-26-2007, 03:26 PM
Ugm.... The problem appers again. Is there anyway to stop this or why this problem appears ??

Kirk Y
07-26-2007, 06:23 PM
Did you follow Marco's instructions and disable all Plugins?

Mean
07-26-2007, 09:33 PM
Yes did it. It worked. After i enable plugins, it appears again. I ask, this problem from where and for what ??

Kirk Y
07-26-2007, 09:52 PM
From a Product you've installed. You need to disable all your Products through the AdminCP one by one until the error stops, when it does - the product you disabled that stopped it is the culprit; either permanently disable it or request support from the release thread.

Mean
07-26-2007, 10:57 PM
Ok, thanks...

Mean
07-30-2007, 03:33 AM
Has anyone got an idea ? Which product should i remove ?

- Sorry for bumping...

Dismounted
07-30-2007, 06:20 AM
Did you read what Kirk said?
You need to disable all your Products through the AdminCP one by one until the error stops, when it does - the product you disabled that stopped it is the culprit; either permanently disable it or request support from the release thread.

Mean
07-30-2007, 09:41 AM
Did you read what Kirk said?

Yes i read. But i've got over 10 products. I was thinking maybe somebody has an idea which product makes the problem. For example somebody could say, "I had this problem last week, MyMood product makes the problem so remove that".

Ok. Nevermind...

G0F0RBR0KE
07-30-2007, 09:48 AM
The only way is to go through the whole product you have install on your forum.

Kirk Y
07-30-2007, 06:09 PM
No offense, but 10 products is really nothing to complain about. Disabling them one by one would not take more than 10-15 minutes.

Mean
08-04-2007, 10:54 AM
But when i re-upload files to ftp, it looks fine. After 2 days the problem appears like

Parse error: syntax error, unexpected T_STRING in /usr/hosts/domains/propaket/bodrumlife_pro/www.forumistan.net/httpdocs/index.php on line 344

The problem is this.

And my products are;

Forum Archive List Footer 0.0.1
Hide Links From Guest 1.13
Mass PM Members 1.0
private mssage limit 1.5
Quick Reply Add On. 3.6.x
Recherche sur l'index 1.0
Require X Posts To Use Custom Titles 1.0
Tracker Cracker 1.0.2
Viper's YouTube & Google Video 2.0.0 A
Zoints SEO 2.2.2
Zoints Thread Tags

Mean
08-16-2007, 08:00 PM
I disabled products one by one when the problem stops.
But the problem doesnt stop...

i added define('DISABLE_HOOKS', true); to config.php
But the problem doesnt stop ...

I reupload vbulletin files
The problem stopped. But after a day the error still apperars on index.php

PLEASE help me...

Marco van Herwaarden
08-18-2007, 01:19 PM
It is most likely a phrase problem in your calendar:

$callink = '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day\">" . $vbphrase['holiday' . $eventinfo['holidayid'] . '_title'] . "</a>";