Ignore error

7 posts by 2 authors in: Forums > CMS Builder
Last Post: July 29, 2015   (RSS)

By Toledoh - July 23, 2015

Hi guys,

I've got a 3rd party script on a site that is throwing an error and getting logged in the error log.  I'm getting hundereds a day - I'm aware of the issue and don't really care about it.  However, it's making the error log almost un-usable.  Is there any way that I can bypass that page in the error checking?

Cheers,

Tim (toledoh.com.au)

By Dave - July 28, 2015

Hi Tim, 

No, but if you want to post the error we could tell you how to fix it.

Cheers

Dave Edis - Senior Developer
interactivetools.com

By Toledoh - July 28, 2015

Thanks Dave.

I get the error "E_NOTICE: Undefined index: timestamp" from the index.php file attached...  It's never caused a problem so I've just ignored it...

Cheers,

Tim (toledoh.com.au)
Attachments:

index.php 2K

agelock.php 26K

By Dave - July 28, 2015

Does it say which line it's on? 

It's an indication something isn't working right with the script or the installation.  It may be something that isn't interfering, though.  

You should be able to suppress the error by using the error-suppression operator @ like this: 

  • @$_SESSION['timestamp']
  • @$_POST["timestamp"];

Let me know if you can find the line and if adding @ in front of the variable fixes it.

Good luck!

Dave Edis - Senior Developer
interactivetools.com

By Toledoh - July 29, 2015

Hi Dave,

Any advice on these errors?

E_NOTICE: A session had already been started - ignoring session_start()
/home/murraysb/public_html/agelock/agelock.php (line 468)
http://murraysbrewingco.com.au/contact/finding-us/?num=10

Cheers,

Tim (toledoh.com.au)

By Dave - July 29, 2015

Hi Tim, 

Try this: @session_start()

Let me know if that works for you, thanks!

Dave Edis - Senior Developer
interactivetools.com