• Resolved sirrahikkala

    (@sirrahikkala)


    All my sites which are using latest Enfold and todays update of smush has errors on screen:

    This at the front:
    Notice: Undefined index: keep_data in /home/u48670/public_html/wp-content/plugins/wp-smushit/core/class-settings.php on line 276

    This at the wp-admin (not accessible)
    Notice: Undefined index: keep_data in /home/u48670/public_html/wp-content/plugins/wp-smushit/core/class-settings.php on line 276 Warning: Cannot modify header information – headers already sent by (output started at /home/u48670/public_html/wp-content/plugins/wp-smushit/core/class-settings.php:276) in /home/u48670/public_html/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information – headers already sent by (output started at /home/u48670/public_html/wp-content/plugins/wp-smushit/core/class-settings.php:276) in /home/u48670/public_html/wp-includes/pluggable.php on line 1254

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @sirrahikkala,

    You can get rid of them by re-saving Smush settings.

    You can also hide the warnings by adding:

    define( ‘WP_DEBUG’, false );
    define( ‘WP_DEBUG_LOG’, false );

    to your wp-config.php. They are just warnings and do not affect functionality in any way

    Best regards,
    Anton

    Hey,

    I have the same problem but i can’t access to my back :

    Notice: Undefined index: keep_data in /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-content/plugins/wp-smushit/core/class-settings.php on line 276 Warning: Cannot modify header information – headers already sent by (output started at /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-content/plugins/wp-smushit/core/class-settings.php:276) in /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information – headers already sent by (output started at /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-content/plugins/wp-smushit/core/class-settings.php:276) in /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-includes/pluggable.php on line 1254

    And on the front : https://vietnambeachweddings.com
    With the problem : Notice: Undefined index: keep_data in /customers/3/4/7/vietnambeachweddings.com/httpd.www/wp-content/plugins/wp-smushit/core/class-settings.php on line 276

    @kheon21 ,

    Could you please try to edit the file wp-smushit/core/class-settings.php and on line 274 replace:

    $site_settings['accessible_colors'] = $global_settings['accessible_colors'];
    $site_settings['usage']             = $global_settings['usage'];
    $site_settings['keep_data']         = $global_settings['keep_data'];

    with

    $site_settings['accessible_colors'] = isset( $global_settings['accessible_colors'] ) ? $global_settings['accessible_colors'] : $this->defaults['accessible_colors'];
    $site_settings['usage']             = isset( $global_settings['usage'] ) ? $global_settings['usage'] : $this->defaults['usage'];
    $site_settings['keep_data']         = isset( $global_settings['keep_data'] ) ? $global_settings['keep_data'] : $this->defaults['keep_data'];

    Best regards,
    Anton

    Thread Starter sirrahikkala

    (@sirrahikkala)

    Fix this. I can but not all people can edit files and if the wp-admin is inaccessible, there are plenty of basic users of your plugin stuck or end up paying someone to fix it.

    @sirrahikkala,

    A new update has just been released. Hope it resolves all the errors for you and others. Sorry that you experienced an issue with Smush.

    Best regards,
    Anton

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with Enfold theme’ is closed to new replies.