vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Error help Needed with BBCode (https://vborg.vbsupport.ru/showthread.php?t=218970)

ArnyVee 07-19-2009 09:16 PM

Error help Needed with BBCode
 
Guys and gals,

I tried to add the bbCode from this thread on vB.com....

Anchors in posts using vbcode

....but, for some strange reason I got the following error message after clicking on "save" while trying to add the first BBCode...

Fatal error: Cannot redeclare handle_bbcode_video() (previously declared in /home/avarona/domains/waltdisneyboards.com/public_html/includes/class_bbcode.php(2430) : eval()'d code:34) in /home/avarona/domains/waltdisneyboards.com/public_html/includes/class_bbcode.php(2430) : eval()'d code on line 63

....anyone have any ideas as to what I could/should do to fix this?

Thanks in advance :up:

FYI: Since it stated something about 'video' in the error, I disabled the AME mod that I have, but it still wouldn't install. :(

James Birkett 07-19-2009 09:40 PM

Hey Arny,
First, do you understand the use of anchors? It's only really necessary for long posts.
If you followed his steps exactly, you should have no problems using it. BBCode shouldn't conflict with anything as it's parsed separately.
Go back over his tutorial and read it step-by-step and see if you implemented it correctly, then try and use it.
I see nothing wrong with this code as it's just using href's to denote parts of the post.
Off-topic: It's a nice little piece of code, I might need to use this myself ;)

ArnyVee 07-19-2009 10:50 PM

Hey James,

I followed the steps exactly (have done it three times now) and even copy and pasted the exact text into the exact fields as described. But, I get that same error message :(

Does the error message give us any sort of indication of what could be wrong?

James Birkett 07-19-2009 11:23 PM

Hey Arny,
I'm not experienced in PHP but it says it cannot redeclare handle_bbcode_video. Do you have any modifications that use/affect BBCodes in any way? (i.e. BBCode permission handler etc)? Try disabling modifications using:
PHP Code:

define('DISABLE_HOOKS'true); 

Place that code directly under <?php then try and run your code again. If that succeeds you need to find out which modification is affecting it.
If this doesn't work, report back to us.

ArnyVee 07-19-2009 11:48 PM

James, do I add that in the config file or another php file?

HMBeaty 07-19-2009 11:49 PM

In the config.php file

James Birkett 07-20-2009 12:03 AM

Quote:

Originally Posted by ArnyVee (Post 1851913)
James, do I add that in the config file or another php file?

Oops sorry, got a little carried away there!
Yeah, add to config.php (thanks redline!)

HMBeaty 07-20-2009 12:04 AM

No problem ;)

ArnyVee 07-20-2009 12:40 AM

Okay, did the disable hooks deal and the BBCode installed with no problem. So, I've got something with a conflict somewhere. Hopefully I can work on disabling these one by one to figure out the issue down the road.

I'm going to test the BBCode for the anchor now. :)

Thanks for the help folks :up:

James Birkett 07-20-2009 12:49 AM

1 or more of your modifications are conflicting with the BBCode.
I suggest just disable them all then enable them 1 by 1 until you find the conflict. Then either fix a patch or delete it.

ArnyVee 07-20-2009 01:03 AM

Thanks James :up:

Here's a thread with the example of the anchor working. Still have lots of info to put on that actual thread, but it's working for now :D

http://www.waltdisneyboards.com/disn...om-villas.html


All times are GMT. The time now is 04:59 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.01007 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete