404 error Loading CSS nice-options.css

This support request was posted in BBQ by busymandan

Request ID #5981 In Progress
  • Hey Juan,

    I am having an issue where every site on my page is getting an error loading the following css stylesheet that isn’t found on the server.

    http://ciaovito.net/Current/wp-content/themes/bbq/includes/assets/css/nice-options.css?lbisphpreq=1&ver=4.2.2

    Here’s the HTML:

    The workaround I am going to do now is just put an empty CSS file with that name on the server.

    Do you know why this issue was happening?

    It doesn’t seem to effect how the page looks, there are no visually CSS errors.

    Thanks,
    Dan

    I found the issue. In the theme files nice-options.css in is the directory ./wp-content/themes/bbq/includes/css/nice-options.css

    But the HTML is looking in ./wp-content/themes/bbq/includes/assets/css/nice-options.css

    What is the best way to correct this issue?

    Juanfra Aldasoro

    Hi Dan,

    Thanks for writing.

    I could see the contents of the nice-options.css file. At the same time I’m not getting the error. Are you getting the error in any page in particular?

    Thank you,
    Juan.

    I was getting the error on all of the pages.

    The reason you don’t see the error is because I fixed the error with a workaround by copying the nice-options.css file from ./wp-content/themes/bbq/includes/css/nice-options.css (Where it was originally packaged with the theme)
    TO
    ./wp-content/themes/bbq/includes/assets/css/nice-options.css (Since this is where the main theme was looking for the file)

    The contents of the nice-options.css is empty with just the comment it was packaged with:

    /* Nice Options CSS */

    I ran a grep on your original theme files and it looks like these are the 2 cases that are referring to ./includes/assets/css/nice-options.css

    ./includes/theming/style.php: wp_enqueue_style( ‘nice-options-styles’, get_template_directory_uri() . ‘/includes/assets/css/nice-options.css’ );

    ./includes/theming/typography.php: wp_enqueue_style( ‘nice-options-styles’, get_template_directory_uri() . ‘/includes/assets/css/nice-options.css’ );

    The problem is when your theme doesn’t have a /includes/assets folder by default.

    Juanfra Aldasoro

    Hi,

    Thanks for the follow up and the heads up. We’ll be fixing this issue.

    The file is empty because it is meant to load the styles dynamically.

    Thanks again,
    Juan.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server