Support » Plugin: Combine CSS » Numerous Undefined Errors

  • Resolved pha3z


    It’s nice to be able to turn on error display on a server while developing or to check stuff if something breaks. But Combine CSS is generating numerous NOTICEs. Here are some examples:

    Notice: Undefined index: ignore_files in /var/www/armstrong/wp-content/plugins/combine-css/classes/combine-css-class.php on line 66
    Notice: Undefined index: add_gf_css in /var/www/armstrong/wp-content/plugins/combine-css/classes/combine-css-class.php on line 266
    Notice: Undefined offset: 2 in /var/www/armstrong/wp-content/plugins/combine-css/classes/combine-css-class.php on line 235
    Notice: Undefined index: in /var/www/armstrong/wp-content/plugins/combine-css/classes/combine-css-class.php on line 280

    I complimented you on your exceptional code before. The architecture is very good, but you should be handling undefined variables instead of letting them throw notices and go on.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I thought I’d add that this problem also exists in Combine JS, which I’ve started using now.

    You probably haven’t been seeing the NOTICES yourself because you are developing in WordPress Production environment instead of Development environment. To develop in WordPress Development environment with E_ALL error_reporting enabled, you need to add this line to your wp-config.php:

    define(‘WP_DEBUG’, true);

    That line will cause WordPress to enable ALL errors to be output including NOTICES. Automattic officially recommends using WP_DEBUG when developing for WordPress.

    Plugin Author timmcdaniels


    Hi pha3z, I will be able to resolve these notices in the next release. It should be ready over the weekend. Thanks for your patience.


    Thanks Tim.

    I’ve got another question. How difficult would it be to add a button to the WordPress admin bar that lets you clear the combined files from any page? And also what about a button to enable/disable the plugin from the admin bar as well?

    Right now, when I make changes to any given CSS file, I have to go to the plugins page and deactivate and reactivate the plugin to get the combined CSS sheet to reflect the changes. Maybe I’m missing somtehing?


    Any progress?

    Plugin Author timmcdaniels


    Sorry for the delay. The new version has been committed. Please let me know if you notice any more notices/warnings in the error log or anything else.

    Hi, I updated to the newest plugin version but I’m still getting error messages. This just started happening today before I even upgraded to the newest plugin version. My wordpress version is 3.5.1

    I’m getting an error message for both bullet-proof security and combine-css whenever I view a page.

    Can you please assist me on how to fix this problem? Thanks.


    Can you please post specific error messages?

    The issue I was discussing with Tim pertained to Notices that appear while running WordPress in debug mode.

    I just tested and the notifications are resolved. I doubt you’re getting the same errors, calik1d. You should probably be posting your issue as a new thread.

    – Jim


    The notifications are gone, but now the plugin is throwing out a blank stylesheet. I’m going to try to diagnose the problem. I checked the source on the generated HTML and I see this line:
    <link rel=’stylesheet’ id=’combine-css’ href=’′ type=’text/css’ media=’all’ />

    So I try to follow that link and I get a blank sheet.

    And of course, my whole web page looks completely unstyled as a result. This problem never occurred before.

    I’ll see if I can get you more information.


    I can’t seem to find anything else useful. Where would I actually look on disk to find the generated stylesheet? Should it be showing up in combine-css/tmp ? The only thing in there is a .dat file.

    Without diving into the code, I’m not sure where to go to figure out what the problem is.

    – Jim

    Plugin Author timmcdaniels



    I just released version 0.6. If your issue continues to occur, please select the Debug option in the Settings and send me the output in the error log. Please send it to I’m resolving this topic; please start another topic if the issue persists. Also, the combined files are stored in the uploads/combine-css directory.



Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Numerous Undefined Errors’ is closed to new replies.