• Resolved Studio239

    (@studio239)


    After upgrading to the latest version, and making a few edits to a gallery, started receiving these errors:

    Warning: unlink(/home/content/p3nexnas06_data01/47/2052847/html/wp-content/mg-styles/mg-176.css): No such file or directory in /home/content/p3nexnas06_data01/47/2052847/html/wp-content/plugins/maxgalleria/addons/templates/image-tiles/image-tiles-options.php on line 1302

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3nexnas06_data01/47/2052847/html/wp-content/plugins/maxgalleria/addons/templates/image-tiles/image-tiles-options.php:1302) in /home/content/p3nexnas06_data01/47/2052847/html/wp-includes/pluggable.php on line 1179

    Any ideas? Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AlanP57

    (@alanp57)

    HI Studio239. If the options you selected were correctly saved when you clicked the Update button then this is not a serious error and we can remove the warning by checking for the file before calling unlink. Let me know if there was a problem saving the options.

    Thread Starter Studio239

    (@studio239)

    Hi, thank you for your quick reply. Actually yes, it did save my changes correctly.

    Plugin Author AlanP57

    (@alanp57)

    Ok, thank you Studio239.

    Check your wp-config.php file to insure that you have WordPress debugging turned off:

    
    define('WP_DEBUG', false);
    

    I’m not seeing this warning when unlink is called, but to insure it does not display I’m adding the following line of code at line 1302 of maxgalleria/addons/templates/image-tiles/image-tiles-options.php:

    
    if(file_exists($mg_style_file))
    

    So it checks that the file exists before calling unlink

    
    if(file_exists($mg_style_file))
      unlink($mg_style_file);
    

    And I will the same for line 1026 maxgalleria/addons/templates/video-tiles/video-tiles-options.php.

    Thread Starter Studio239

    (@studio239)

    The above resolved the issue. Thank you!

    Plugin Author maxfoundry

    (@maxfoundry)

    Glad it worked out. Mind adding a rating please? We really appreciate it!

    • This reply was modified 8 years, 2 months ago by maxfoundry.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Editing a Gallery raises 2 Warnings’ is closed to new replies.