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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2010, 06:03 PM
obscurecloud obscurecloud is offline
 
Join Date: Apr 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upgrade to Pub Suite broke a few things

I just upgraded to Pub Suite and got to the point where support wouldn't help me any more.

The problem is that the blog.php, search.php and entry.php are showing white pages in some situations. The forums and CMS have no noticeable issues other than search.php.
The site www.fronttowardsgamer.com
The blog.php will display with certain variables attached to the URL (do=bloglist for example) but not others.
I've isolated the problem to be a plugin that displays the Wordpress header

Code:
ob_start();
include('../wp-load.php');
include('../wp-content/themes/mystique/header2.php');
$globalHeader= ob_get_contents();
ob_end_clean();

$preRegister['globalHeader'] = $globalHeader; 
vB_Template::preRegister('header', $preRegister);
With this added to the header tempalte

Code:
{vb:raw $globalHeader}
When I disable the plugin, blog.php seems to work just fine. I've been through the troubleshooting for white pages. I need to be able to display the WP header and need the blog to work as that is why we upgraded.

Any thoughts on this would be greatly appreciated.

--------------- Added [DATE]1272316328[/DATE] at [TIME]1272316328[/TIME] ---------------

blog.php?do=bloglist works fine but
blog.php gives me a white page.

search.php?searchid=4381 (what's new link) gives me a white page
search.php?do=process works just fine.

What about the plugin would make this happen?

I disabled the CMS and Blog plugins and still get the white pages.
Reply With Quote
  #2  
Old 04-26-2010, 10:24 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have error reporting disabled in php ? Sounds like you should be seeing an error message rather than the blank page.
Reply With Quote
  #3  
Old 04-26-2010, 11:15 PM
obscurecloud obscurecloud is offline
 
Join Date: Apr 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

error reporting is on.
Something is breaking it before anything is sent. I can't figure out what.
Here are a few things I have found.
If I do a print_r() on $_REQUEST I get it sent.
I put that in the WP header and also the plugin above.
In the forums I see the result from both headers. When I click on the blog tab, I only see the print_r result from the plugin above and white page.

If I add this code to blog.php under the comment **pick something to do** I get the display from the blog tab, but not any other links (blog post display, blogs by user, etc)
Code:
if (empty($_GET)){$_GET['do']='list';}
--------------- Added [DATE]1272334131[/DATE] at [TIME]1272334131[/TIME] ---------------

Problem solved!!
I'll post an update in case anyone else has the same problem

The problem seemed to come from Wordpress combining the $_* variables. Specifically the $_REQUEST variable.

Here is how I fixed it.
My forum called wp-load.php and me template header.
wp-load calls wp-config
wp-config calls wp-settings

I duplicated all 3 of these, renamed them vb-* and adjusted the vB plugin to call the new vb-load.php.

In vb-settings i commented out the following lines.
Code:
595. include_once(WP_PLUGIN_DIR . '/' . $plugin);
This does not affect my problem, just reduces some overhead that was unnecessary on the forum pages.
Code:
616. do_action('plugins_loaded');
Again for the overhead
Code:
637. $_REQUEST = array_merge($_GET, $_POST);
This is what fixed the problem.
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 12:36 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.03555 seconds
  • Memory Usage 2,184KB
  • 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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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