Forum Moderators: coopster

Message Too Old, No Replies

Missing argument warning, even though arg exists and is used

How could arg be 'missing' if the function uses it?

         

DrexlSpivey

5:56 pm on Jul 1, 2007 (gmt 0)

10+ Year Member



Hi Folks,

I'm getting an error saying an argument is missing, even though it appears to be read correctly by the function:

Warning: Missing argument 9 for myfunction() in path/myscript.php on line 103

But argument 9 is then read and used correctly in the function.

As a temporary 'solution' I've just suppressed the error by prepending a '@' to the function name when called, but I'm at a loss to understand this.

Does anyone have any ideas as the the cause?

Thanks in advance.

DrexlSpivey

8:41 pm on Jul 1, 2007 (gmt 0)

10+ Year Member



Sorry, please ignore this - as I was about to copy in the code (which I forgot originally - d'oh!) I spotted the problem.

Best Regards.