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 04-10-2008, 02:18 PM
vrokar vrokar is offline
 
Join Date: Jan 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Parse Error Help

Being stuck at work I have no way of counting the lines properly.

Parse error: syntax error, unexpected T_VARIABLE in /home/siphon/public_html/forums/newthread.php(71) : eval()'d code on line 275

Its for a Form Hack that was working perfectly when I went to bed last night. When I got up this morning and came to work it was dead. Any ideas?

Forgot to mention the link where the error pops up is as follows

http://www.silentreality.net/forums/...ad.php?do=form

It is only linked to through 1 post and the main page.
Reply With Quote
  #2  
Old 04-10-2008, 02:24 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the Plugin attached to the hook on line 71 of newthread.php. You have and error on Line 275 of that Plugin PHP code.

If you don't know PHP you need to consult the Plugin's author on how to remove the error.
Reply With Quote
  #3  
Old 04-10-2008, 02:26 PM
vrokar vrokar is offline
 
Join Date: Jan 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Find the Plugin attached to the hook on line 71 of newthread.php. You have and error on Line 275 of that Plugin PHP code.

If you don't know PHP you need to consult the Plugin's author on how to remove the error.
Ive been trying to contact him. When Plugins/Hooks are disabled the newthread works so I know its an addon. Im just not sure which one. As for knowing php..I know a little. But im stuck with word for my editor at work. No way to find line 275 without manually counting.
Reply With Quote
  #4  
Old 04-10-2008, 02:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You also said in the other thread that you copied the form. My guess is you screwed something up here. You either simply renamed the template, thinking you were copying it that way (it won't) or you have done something to confuse the form with the two form templates. You need to undo whatever you did yesterday.

The best place to get help for this is in the form hack thread where people actually know the hack and can help with these issues.
Reply With Quote
  #5  
Old 04-10-2008, 02:37 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disable your Plugins and hooks and enable them one by one until you narrow down the problem. It will probably be a Plugin with the Hook Location newthread_***.

(Plugin Manger: AdminCP > Plugins & Products > Plugin Manager)

As for you editor, you can use Notepad (it has a Goto Line option) or download a free PHP Editor, there are loads, notepad++, PHP Designer, to name but a few; just to a google search for them)
Reply With Quote
  #6  
Old 04-10-2008, 03:07 PM
vrokar vrokar is offline
 
Join Date: Jan 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Disable your Plugins and hooks and enable them one by one until you narrow down the problem. It will probably be a Plugin with the Hook Location newthread_***.

(Plugin Manger: AdminCP > Plugins & Products > Plugin Manager)

As for you editor, you can use Notepad (it has a Goto Line option) or download a free PHP Editor, there are loads, notepad++, PHP Designer, to name but a few; just to a google search for them)
Thank you for the help bud. I did narrow it down going 1 at a time. Couldnt for the life of me find the error...so I rebuilt the whole thing and its working great now.
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 09:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03863 seconds
  • Memory Usage 2,206KB
  • Queries Executed 11 (?)
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
  • (2)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_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