*

Dan Dan

  • ***
  • 40 posts
Debug error
« on: July 13, 2016, 08:29:23 AM »
I have error in debug.log year:
Notice: Undefined index: redirect_active in /var/www/html/oc-content/plugins/advertisement_manager/index.php on line 370
Line 370 is:
if ($ _ GET [ 'redirect_active'] == 1 and $ _GET [ 'url_go'] <> '' and $ _GET [ 'campaign'] <> '') {

Why shouldnt I change?
Thank you

Marked as best answer by dan.dan on July 13, 2016, 11:55:04 AM
*

MB Themes

Re: Debug error
« Reply #1 on: July 13, 2016, 10:35:49 AM »
@Dan Dan
It is only notice, you should disable them in production website.
Anyway you can fix it by rewritting code:
Code: [Select]
if ($ _ GET [ 'redirect_active'] == 1 and $ _GET [ 'url_go'] <> '' and $ _GET [ 'campaign'] <> '') {
into:
Code: [Select]
if (isset($_GET [ 'redirect_active']) && isset($_GET [ 'url_go']) && isset($_GET [ 'campaign']) && $_GET [ 'redirect_active'] == 1 and $_GET [ 'url_go'] <> '' and $_GET [ 'campaign'] <> '') {
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: Debug error. Solved
« Reply #2 on: July 13, 2016, 11:54:12 AM »
Thank you. Problem solved :)

*

MB Themes

Re: Debug error
« Reply #3 on: July 13, 2016, 02:32:28 PM »
@Dan Dan
Great
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots