Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 10-08-2014, 10:29 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...I don't see anything wrong with the code offhand. The only thing that I can think of is that if the require_once("samp_query.php") fails I think it would end the script. I also don't know what's in samp_query.php that might cause an error.
Reply With Quote
  #12  
Old 10-08-2014, 11:50 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Check your PHP log to start with and make sure you do not have an error listed.
2. Disable the plugin and see if the "white" screen is resolved.

If the above two checks are okay, then enable the plugin and load the page on the default style. If the page loads, then most likely you have a coding issue in your modified template. At least that is where I would start.

I do not see anything wrong with what @Kh99 presented (as I would have expected), I am not saying your routine will work as I would have to review the team speak code.

Resolve the white screen problem and then you can go from there. There is no method we can resolve the white screen issue from here, all we can do is give you suggestions.
Reply With Quote
  #13  
Old 10-09-2014, 11:00 AM
dabvastur dabvastur is offline
 
Join Date: Nov 2013
Location: Santiago, Chile.
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I load script the forum show white in any theme.

The samp_query.php is a good script, originally, tested by various communities of the game San Andreas MultiPlayer and this not contain any bug.
Reply With Quote
  #14  
Old 10-09-2014, 11:07 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So are you saying that if you enable that plugin you get a white screen, but if you disable it the white screen goes away? In that case it must be that something in that code is causing an error. If you can look at your php error log as tbworld suggests, that might show you what the error is. You could also temporarily enable displaying of errors, if you've turned that off.

One thing, the echo line should probably be like this:
PHP Code:
        echo $ainfo['Players']; 
but I don't think that would cause an error, it would just print something different than you intended.
Reply With Quote
  #15  
Old 10-09-2014, 05:08 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good catch @kh99

Code:
   echo "' . $ainfo['Players'] . '";
Will absolutely cause an encoding error on the page, which most likely lead to a white page.



--------------- Added 09 Oct 2014 at 11:27 ---------------

Quote:
Originally Posted by dabvastur View Post
When I load script the forum show white in any theme.

The samp_query.php is a good script, originally, tested by various communities of the game San Andreas MultiPlayer and this not contain any bug.
@dabvastur:

This is not the current "samp" script, that is floating around and in that format it would have never worked. It would be helpful -- in the future -- if you provided us enough details so we could wrap our heads around what you are trying to do.

The best we can attempt to do (without knowing the application), is to fix what you have given us so it will run / interpret under PHP in connection with vbulletin.
Reply With Quote
  #16  
Old 10-12-2014, 02:13 AM
dabvastur dabvastur is offline
 
Join Date: Nov 2013
Location: Santiago, Chile.
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I try modifying echo line and let you know when I have the time for this.

Thanks you both for all help.
Reply With Quote
  #17  
Old 10-12-2014, 02:29 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did not do anything, it was all @kh99, but thanks for thanking us.
Reply With Quote
Reply

Thread Tools
Display Modes

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:17 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.04392 seconds
  • Memory Usage 2,212KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete