Resource not found (style.css)

  • Posted in : TheBlogger
  • donromen
    Participant

    I found this when I inspect my website element

    https://rohman.me/wp-content/uploads/2017/10/Screen-Shot-2017-10-05-at-16.43.54.png

    It drives me an error 404, maybe you need to update your themes, or just give me the fastest way to remove the code from the templates.

    Check my website: https://rohman.me

    serkan
    Moderator

    Hi,
    Could you deactivate all your third party plugins and try it again? If you still have any issue then check the related url.
    http://support.hostgator.com/articles/cpanel/what-is-hot-linking-how-do-i-enable-and-disable-hotlink-protection
    Thanks

    donromen
    Participant

    Oops, sorry Serkan, I just want to share a screenshot from my own website but I forgot that I activate the hotlink feature, the point of my problem is not about the hotlink protection. The hotlink protection itself is my security configuration.

    The information that I want to share to you is this:

    https://ibb.co/mOfomG <—screenshot of my website page source

    It comes from the template, and drive me 404 error. Please give me a clue.

    Thanks.

    nhaas
    Participant

    Hi,

    I installed the theme, installed the recommended and required plugins, loaded the Oliver demo, and I have the same issue. The problem is in functions.php, line 54. This generates a URL like “http://mydomain.com/wordpress-installation/wp-content/themes/theblogger/demos/http://themes.pixelwars.org/theblogger/oliver/wp-content/themes/theblogger/demos/oliver/css/style.css/css/style.css&#8221;

    The line is:

    $main_style_url = $theme_directory . ‘/demos/’ . $main_style . ‘/css/style.css’;

    So, I changed it to

    $main_style_url = $main_style;

    which loads the stylesheet from pixelwars.org, which is not ideal in case the site goes down, but better than hard-coding things. The URL is now “http://themes.pixelwars.org/theblogger/oliver/wp-content/themes/theblogger/demos/oliver/css/style.css&#8221;.

    There are other issues with my fresh install, such as the search bar appearing at the top of the homepage, but that’s for another post. Note: I have WordPress installed in a non-root directory.

    donromen
    Participant

    Wohoo thanks naas,

    I think pixelwars should update it to serve css throught the template it self. Their stylesheet served over pixelwars not in https, it makes my website not completely serve in https caused by mixed content.

    serkan
    Moderator

    Hi, will inform our developer according to this issue.
    Thanks for the feedback.

    nhaas
    Participant

    @donromen agreed. i’m still setting up my server, but when i move to https if the issue is not fixed i will change the line to serve the file from my own website over https. e.g. “/wp-content/themes/theblogger/demos/oliver/css/style.css/css/style.css”

    ahmetsali
    Keymaster

    Hi, we have already fixed this, you just need to re-select Customizer > Main Style box to trigger the fix. Select another style than you are using then save it and re-select your style and save again.

    alexchan
    Participant

    Hi, It still not works after re-select Customizer > Main Style box.

    Now it shows the following error and the top bar can’t be loaded properly. Thanks.
    [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (fluidbox.min.css.map, line 0)

    Thanks.

    serkan
    Moderator

    Hi alexchan,
    If you have third-party plugins, please deactivate them. And try it again.
    Thanks

    alexchan
    Participant

    No, I just fresh install and import the sample data only.

    But it still can’t be loaded properly. Thanks.

    Here is my testing website.
    http://35.201.195.157/

    serkan
    Moderator

    Hi, Please go to appearance > widgets > blog featured area > and delete the unnecessary widgets from the featured area.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register