Computer Help Forum

Go Back   vBulletin and Computer Help Forum > vBulletin Support > vBulletin Hack and Modification Support

vBulletin Hack and Modification Support vBulletin hacks, plugins and template modification support for forum administrators.

Reply
 
Thread Tools Display Modes
Old 01-05-2010   #1
shk.naim
Junior Member
 
Join Date: Jan 2010
Posts: 6
Question PHP parse error

Hello All,

I'm facing a strange problem. Whenever I try to edit and save any existing templates I get a PHP parse error as:

Quote:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/vexxnutr/public_html/fuelfitness.info/community/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Interestingly above errors
Quote:
eval()'d code on line 1
this lines line number (line 1) is changing to 1 or 2 or anything.

What could be the reason(s)? I'm not been able to modify my vb forum due to this error. Kindly help on this asap.
Thanks!!
shk.naim is offline   Reply With Quote
Old 01-05-2010   #2
Greg
Administrator
 
Greg's Avatar
 
Join Date: Feb 2003
Location: Florida
Posts: 5,173
What version of vBulletin and what template are you using?
__________________
Computers and Accessories Computer Manuals Riderinfo Connect for Bikers
Ad Revenue - Sell link space on your website and profit.
Greg is offline   Reply With Quote
Old 01-05-2010   #3
bigH2O
Acceptably Annoying
 
bigH2O's Avatar
 
Join Date: Jun 2005
Location: North GA mountains
Posts: 1,411
Have you attempted to upgrade vBulletin with modifications installed? That's what it sounds like, because those fields don't exist in a default vBulletin installation. vBulletin 4 is a serious re-write, and will break almost every < 4.0 installation out there if you don't completely disable the mods. Try adding the following line to the beginning of your config.php file, right under the <?php> directive:
Code:
define('DISABLE_HOOKS', true);
This will disable all addons that you have on your site and if the site works as expected from there, then you're sniffing the trail as to where the problem is. Let us know how that works for you, and we can give you further advice as to how to proceed.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it.
bigH2O is offline   Reply With Quote
Old 01-06-2010   #4
shk.naim
Junior Member
 
Join Date: Jan 2010
Posts: 6
My vBulletin version is 3.5.4
Recently I've copied my vBulletin forum to a testing server to make some modifications.
Is this causing problem?
Also I put the above code in config.php but the same problem still persisting.
shk.naim is offline   Reply With Quote
Old 01-06-2010   #5
shk.naim
Junior Member
 
Join Date: Jan 2010
Posts: 6
No one is there to try on this issue?
shk.naim is offline   Reply With Quote
Old 01-07-2010   #6
bigH2O
Acceptably Annoying
 
bigH2O's Avatar
 
Join Date: Jun 2005
Location: North GA mountains
Posts: 1,411
vB 3.5.4 is way past End Of Life at this point, and so many changes have been made to PHP that there is no telling what is going on with your problem. You might find somebody to debug it and bring the problems into compliance, but I don't know anybody who would take on the challenge for less than the cost of just bringing your vB software up to current.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it.
bigH2O is offline   Reply With Quote
Old 01-07-2010   #7
shk.naim
Junior Member
 
Join Date: Jan 2010
Posts: 6
OK I understand what you are saying.
But I'm curious on what could be the causes of such malfunction?
Please clarify if you don't mind.
shk.naim is offline   Reply With Quote
Old 01-07-2010   #8
bigH2O
Acceptably Annoying
 
bigH2O's Avatar
 
Join Date: Jun 2005
Location: North GA mountains
Posts: 1,411
I can only assume that you are running vB on a host somewhere. That host is going to upgrade their software (Apache, PHP, MySQL, etc) to the latest stable release of the available software on a weekly, if not nightly basis, for security reasons. All of the vendors of software that rely on other software will then upgrade their software so that it all stays compatable.

3.5.4 of vBulletin is right about 4 years old now. You can't expect 4 year old software to stay compatable with the latest builds of the server software that it runs on top of.

Besides that, 3.5.4 is so full of security holes at this point that it's amazing that your host will let you run it anyway. I wouldn't let you run it on my server. My suggestion is to buy the latest version of vBulletin, but don't install 4.0 yet, downgrade to 3.8.4 which is stable and compatable with all of the backend stuff that your server is likely running.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it.
bigH2O is offline   Reply With Quote
Old 01-07-2010   #9
shk.naim
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks bigH20 for the quick reply.
If the above mentioned issue is ignored ,what can be the other causes?
I'm just asking to get better understanding with vB issues.
shk.naim is offline   Reply With Quote
Old 01-07-2010   #10
bigH2O
Acceptably Annoying
 
bigH2O's Avatar
 
Join Date: Jun 2005
Location: North GA mountains
Posts: 1,411
There really is no ignoring of the above mentioned issue. Is your license a valid owned license or are you running a bootleged copy?
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it.
bigH2O is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:37 PM.



vBulletin 3.8.7 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright vB and Computer Help Forum

EZ software products copyright Greg Lynch 2006-2013