Re: Meaning of error?
| From: | Ryan Pallas | Date: | Thu, 12 Nov 2015 19:23:46 +0000 |
| Subject: | Re: Meaning of error? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325245@lists.php.net to get a copy of this message | ||
On Thu, Nov 12, 2015 at 12:18 PM, Jeffry Killen <jekillen@prodigy.net>
wrote:
> Hello;
>
> I have been getting this error:
>
> <b>Warning</b>: Illegal string offset 'file' in
> <b>(path)/dev_lab_current/php/console_proc.php</b> on line
> <b>69</b><br />
> This error, with the markup, is appearing the the top of the page that is
> supposed to display processing results.
>
> The line number represents this code:
>
> if(!self::$_input['file'])
>
self::$_input must be a string not an array, therefore only numeric offsets
are allows when dereferencing the variable. I would double check its what
you expect it to be with var_dump, a debugger, or similar debugging
techniques.
> Why would 'file' be an illegal string offset? Is it literally illegal or
> is there some other reason for this error?
>
> This is the first time I have seen this.
>
> Thanks for time and attention:
> JK
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>