The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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... |
#2
|
||||
|
||||
Check your error reporting level...
PHP Code:
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 |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
You have to add it into the file yourself. Somewhere near the top is best.
|
#5
|
|||
|
|||
Ok, thanks for the help...
|
#6
|
||||
|
||||
Did that solve it? What level was it set at?
|
#7
|
|||
|
|||
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...
|
#8
|
||||
|
||||
Do you still need this solved, or does vbportal take care of your needs? (I'm not familiar with vbportal)
|
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|