Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2009, 01:47 PM
Big_J Big_J is offline
 
Join Date: May 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [SOLVED] - Still getting parse Error

PHP Code:
Parse errorsyntax errorunexpected T_ENCAPSED_AND_WHITESPACEexpecting 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.
Reply With Quote
  #2  
Old 02-17-2009, 02:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
PHP Code:
    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.
Reply With Quote
  #3  
Old 02-17-2009, 02:20 PM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-17-2009, 03:00 PM
Big_J Big_J is offline
 
Join Date: May 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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:
PHP Code:
    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
Reply With Quote
  #5  
Old 02-17-2009, 03:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-17-2009, 03:40 PM
Big_J Big_J is offline
 
Join Date: May 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1234893571[/DATE] at [TIME]1234893571[/TIME] ---------------

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.
Reply With Quote
Reply


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. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07840 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete