MyBB Community Forums

Full Version: How to remove reference to a css file.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,
         After deleting the old css file of a plugin I had from my cache/themes/theme1 called latestposts.min.css as well as latestposts.css , a file somewhere is still trying to access it, hence creating a 404 error. For now, I have put the 2 files back in, to try and look for what file may be trying to access it, however I have had no luck. I searched in my templates for any references to it, but still can't find it. I have also looked in the global.php as well as the css.php. Any help would be appreciated greatly, and thank you. If there is any additional information that I may have left out, I apologize, and will provide it once I know of it.

My website is: 
mathforums.net

The directory of the css file:
https://mathforums.net/cache/themes/them...ts.min.css
first you should disable rocket loader & autominify (if they are used) at Cloudflare settings.
also purge the cache at Cloudflare & turn on development mode.
then check in headerinclude template (in ungrouped templates) of the theme for reference to the latestposts style sheet
(2016-04-28, 04:59 AM).m. Wrote: [ -> ]first you should disable rocket loader & autominify (if they are used) at Cloudflare settings.
also purge the cache at Cloudflare & turn on development mode.
then check in headerinclude template (in ungrouped templates) of the theme for reference to the latestposts style sheet

Just did that, however it seems that it is yet attempting to fetch the css file, and shows a 404 error.
^ have you purged the cloudflare cache & have you found & removed the css loading code ?
(2016-04-28, 05:55 AM).m. Wrote: [ -> ]^ have you purged the cloudflare cache & have you found & removed the css loading code ?

I did purge the cloudflare cache, however I cannot find the css loading code in the headerinclude of my template.
^ your forum's source code is suggesting that the style sheet is loading from headerinclude template.
may be cache is still affecting & rocket loader needs to be disabled forever
(2016-04-28, 06:15 AM).m. Wrote: [ -> ]^ your forum's source code is suggesting that the style sheet is loading from headerinclude template.
may be cache is still affecting & rocket loader needs to be disabled forever

Maybe I am unable to recognize the css loading code. If you would be able to identify where it is I would be very thankful. I have also had my rocket loader off, and all the things you asked of me completed. Might be a long shot, but perhaps I can find something in the css.php, or the global.php where {$stylesheets} is?

My headerinclude:
{$stylesheets}
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />


<script type="text/javascript">
<!--
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
	var modal_zindex = 9999;
// -->
</script>
<script type="text/javascript" async src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" async src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" async src="{$mybb->asset_url}/jscripts/general.js?ver=1807"></script>
can you check if your forum has a plugin related to latest posts in active / installed status
(admin panel >> configuration >> plugins)
(2016-04-28, 06:47 AM).m. Wrote: [ -> ]can you check if your forum has a plugin related to latest posts in active / installed status
(admin panel >> configuration >> plugins)

Yes, I uploaded the plugin once more after seeing the 404, and its  in my installed plugins.
^ oh, looks like it is a plugin related bug.
uninstalling that plugin is expected to remove loading of the style sheet ..
Pages: 1 2