1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Undefinded Index - Wordpress

Discussion in 'PHP' started by LindseyInteractive, Nov 21, 2017.

  1. #1
    LindseyInteractive, Nov 21, 2017 IP
  2. phpmillion

    phpmillion Member

    Messages:
    145
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    45
    #2
    As the error itself says, you need to check /home/imsky/public_html/wp-content/themes/bluediamond-v1-11/include/plugin/filosofo-image/filosofo-custom-image-sizes.php file at line 316. Once you are in this line, look for array with index extension (might look something like some_variable_name['extension']) and make sure some_variable_name['extension'] was created somewhere above.
     
    phpmillion, Nov 22, 2017 IP
  3. Absolute.Hosting

    Absolute.Hosting Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    I would also suggest disabling error reporting in production.

    http://php.net/manual/en/function.error-reporting.php
    http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
     
    Absolute.Hosting, Nov 22, 2017 IP
  4. phpmillion

    phpmillion Member

    Messages:
    145
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    45
    #4
    Yes, it's a workaround too. In other hand, I always have error reporting set to full in all my production scripts. It helps me ensure the code is 100% valid and meets all the good coding practices.
     
    phpmillion, Nov 23, 2017 IP
  5. Absolute.Hosting

    Absolute.Hosting Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    Yes I agree with that, but for security reasons I would disable any front facing error messages while its live, thats just me though.
     
    Absolute.Hosting, Nov 24, 2017 IP