PDA

View Full Version : [SOLVED] - Still getting parse Error


Big_J
02-17-2009, 01:47 PM
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/jdhllcco/hondarebelforum.com/profile.php(4505) : eval()'d code on line 64

Is there no way to track down where th error actually is, Im sure the problem is on of the hooks, but is there not a way to tell what other file it leads to that would have the problem.

I get this error when in the usercp and clicking on edit options.

Lynne
02-17-2009, 02:20 PM
Sure you can trace it down. It says "profile.php(4505) : eval()d code on line 64" which means in the profile.php page on line 4505 is some call and then there is a problem on line 64 of whatever code is being called. Look on line 4505 of profile.php and you see:
eval('$HTML = "' . fetch_template($templatename) . '";');So, it's having problems evaling the template being called. Take a look at the code in the profile.php page to see what template is being called.

TigerC10
02-17-2009, 02:20 PM
Disable one of your addon products at a time until the error goes away. After you find out which modification it is, look at all of the plugins associated with that modification - specifically their location. One will probably say usercp_ and that's where you can start looking.

Once you figure out which addon product it is, you should go to that modification's thread and read through it to see if other people have had the same issue and how they fixed it.

Big_J
02-17-2009, 03:00 PM
Sure you can trace it down. It says "profile.php(4505) : eval()d code on line 64" which means in the profile.php page on line 4505 is some call and then there is a problem on line 64 of whatever code is being called. Look on line 4505 of profile.php and you see:
eval('$HTML = "' . fetch_template($templatename) . '";');So, it's having problems evaling the template being called. Take a look at the code in the profile.php page to see what template is being called.

What would I be looking for.... thats the problem I'm having.... I dont know what to look for. the $html dose that mean its an html lik Im looking for that may be missing?


Already tried disabling the whole pluging.hook system and that did nothing, then i disabled on at a time until all were disabled and still got the error.

Thanks

Lynne
02-17-2009, 03:30 PM
It is fetching a template. And in that template on line 64 is the problem. You can try this:

Create a new style with no parent:
Styles & Templates > Style Manager > Add New Style :
Parent Style: No Parent Style
Title: Default vBulletin
Allow User Selection: Yes
Save

Then browse the site using that totally default vbulletin style - do you still have the same problem? If not, go check out the template used on that page and compare your style of that template to the default template.

Big_J
02-17-2009, 03:40 PM
Ok

I created a new style.... I do not get the error message in the new style.

How do I know the template I need to look at? the addressbar reads http: //www. ***************** .com/profile.php?do=editoptions

--------------- Added 1234893571 at 1234893571 ---------------

Problem solved......Thanks Lynne...... I just went in search of mods that might have anything to do with the usercp and I found a template that had the same line of code in it back to back. I removed the duplicate line and viola.... its back to normal.

Thanks again.