Jump to content

Consistent error


Cardale

Recommended Posts

I am getting a consistent error being created by users that I cannot duplicate any rational way unless I am trying to insert malicious code.

 

I did a search a few of the IPs in my error log and I believe it is a bot.  Could this error come from search bots?  My error system is catching these results and preventing any information from being displayed(I believe any input here is welcome) but I would sure hate to think I am preventing search crawlers from following my site.

 

Here is my error out of my error log.

Time: 20 Nov 09 - 4:46:20 AM (PST)
File: /var/www/index.php
Line: 275
Code: E_NOTICE
Message: Array to string conversion

Link to comment
https://forums.phpfreaks.com/topic/182365-consistent-error/
Share on other sites

The only thing I could think of is if you have an array in the $_POST superglobal, then you'll get that error message. Like if you have a form with something like this:

 

<input type="text" name="var[]" />
<input type="text" name="var[]" />

 

Where $_POST['var'] would be an array and would throw E_NOTICE Array to string conversion when you try to run it through stripslashes()

Link to comment
https://forums.phpfreaks.com/topic/182365-consistent-error/#findComment-962357
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.