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.