Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2001, 02:18 AM
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi I'm trying to get a weather page happenin on my site with the attached php scripts and i keep getting this error with both the weather.php & the metar.php:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\sambar50\docs\weather\index.php on line 40


It displays the weather but has that error twice at top of the page.. Help please...
Reply With Quote
  #2  
Old 11-08-2001, 05:30 AM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check your error reporting level...
PHP Code:
echo error_reporting();
//error_reporting(7);
//echo error_reporting(7); 
The first line will echo the current level of error_reporting. The second will set the level to 7. The third will set the level to 7, and print the previous level.

7 is really good for everyday scritps. When in doubt, use 7. If your comming from a background in ASP, and like to set "Option Explicit" so you have to dim all your vars, you may like 15 (it will print a notice that a used var has not been initialized).

PHP docs: error_reporting(), description of Reporting Errors
Reply With Quote
  #3  
Old 11-08-2001, 08:17 AM
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mark Hensler
Check your error reporting level...
PHP Code:
echo error_reporting();
//error_reporting(7);
//echo error_reporting(7); 
The first line will echo the current level of error_reporting. The second will set the level to 7. The third will set the level to 7, and print the previous level.

7 is really good for everyday scritps. When in doubt, use 7. If your comming from a background in ASP, and like to set "Option Explicit" so you have to dim all your vars, you may like 15 (it will print a notice that a used var has not been initialized).

PHP docs: error_reporting(), description of Reporting Errors
Don't mean to sound dumb but where do i find that?? All other PHP scripts run fine...
Reply With Quote
  #4  
Old 11-08-2001, 03:37 PM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to add it into the file yourself. Somewhere near the top is best.
Reply With Quote
  #5  
Old 11-08-2001, 08:43 PM
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks for the help...
Reply With Quote
  #6  
Old 11-09-2001, 01:51 AM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did that solve it? What level was it set at?
Reply With Quote
  #7  
Old 11-09-2001, 03:29 AM
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope it didn't solve it, but I'm running vbportal and i just added it as a module and it seems to work fine...
Reply With Quote
  #8  
Old 11-09-2001, 04:50 AM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you still need this solved, or does vbportal take care of your needs? (I'm not familiar with vbportal)
Reply With Quote
  #9  
Old 11-09-2001, 07:59 AM
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If possible yes please, I'm not in a mega rush so dont do your head in or anything.. the temp fix is ok for now.. do you want me to repost the scripts? I took them down as I wasnt sure the author would appreciate them being here..

BTW I cut & pasted that code and all it seemed to do was add the number 2039 under the errors when running the script.
Reply With Quote
  #10  
Old 11-09-2001, 03:02 PM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2039?!? Good golly, that's paranoia!

Try adding it above the errors.

Idealy, anything that alters the way that PHP executes should be the very first lines of uncommented code. That includes any calls to ini_set(), error_reporting(), set_magic_quotes_runtime(), and a few others.
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 11:04 AM.


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.04689 seconds
  • Memory Usage 2,253KB
  • 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
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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