WordPress.org

Ready to get started?Download WordPress

Forums

Combine CSS
[resolved] Numerous Undefined Errors (12 posts)

  1. pha3z
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/combine-css/

  2. pha3z
    Member
    Posted 1 year ago #

    I thought I'd add that this problem also exists in Combine JS, which I've started using now.

  3. pha3z
    Member
    Posted 1 year ago #

    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.

  4. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    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.

    Tim

  5. pha3z
    Member
    Posted 1 year ago #

    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?

  6. pha3z
    Member
    Posted 1 year ago #

    Tim,

    Any progress?

  7. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. calik1d
    Member
    Posted 1 year ago #

    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.

  9. pha3z
    Member
    Posted 1 year ago #

    calik1d,

    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

  10. pha3z
    Member
    Posted 1 year ago #

    Tim,

    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='http://armstrongtheme.com/wp-content/plugins/combine-css/css.php?token=e82ca481eef6bbe8ec4fc07dc9dc8c42&ver=0.5' 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.

  11. pha3z
    Member
    Posted 1 year ago #

    Tim,

    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

  12. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    Jim,

    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 tim@weareconvoy.com. 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.

    Thanks,

    Tim

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.