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
Share on other sites

We really can't offer much help without seeing code. Most likely it's some kind of uncaught exception that is caused by a bot being able to access some file in a way that you would not normally have anticipated.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.