View Single Post
  #1250  
Old 11-07-2008, 11:11 AM
XManuX XManuX is offline
 
Join Date: Feb 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything works *almost* fine for me (WP 2.6 / vB 3.6.12) except this :

Code:
<?php echo $vbridge[vb_parser]->do_parse($reply[pagetext], false, true); ?>
When i display comments on single.php / page.php, the page abruptly ends at the point of displaying the #1 pagetext.

Nothing more is processed, the page just ends there, no sidebar, no footer.

But when i remove this line (see the quoted one above about parsing pagetext) then everything works fine : i get all my comments publishers, of course not their comments since it's not parsed anymore.

Any ideas why the parsing ends up in pain ?

Oh... I used to have an old code that i did myself and that was directly calling the vb function like this :
Code:
global $vbulletin, $vwd;
require_once($vwd . '/includes/class_bbcode.php'); 
$bbcode =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

(...)

echo $bbcode->parse($comt->pagetext, 'nonforum', true);
but its not working anymore now...


EDIT : Solved. It was some vBulletin add-on called "Highslide Integration" that was causing this crash.

Method used to troubleshoot:
1- Somewhere before the piece of code that you suspect (for me it was the parsing thing detailed above) Add this :
Code:
ini_set('display_errors',1);
error_reporting(E_ALL);
And you will have nice errors in plain text instead of nothing.

2- Edit the file designed in the error and go to the line number where error is
(for me it was global.php from vBulletin) and it had something like this :
Code:
($hook = vBulletinHook::fetch_hook('cache_templates')) ? eval($hook) : false;
An error that has something to do with hooks ? -> Most likely one of your vBulletin add-on causing trouble !

3- Disable all your add-ons and check if you still have your parsing error on Wordpress
(for me it solved the pbr. Woot !)

4- Re-activate your add-ons, one by one, checking if the error is back on Wordpress
(for me, error again when reactivating "Highslide Integration module")

Solved.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01263 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete