Hi doddscarpet144,
That JS 404 error shouldn’t have any significant impact on site loading speed and it definitely won’t impact functionality of catalogue.
That being said, could you let us know what catalogue style you’re using? (in “Styling” -> “Catalogue”, under “Catalogue Style”)
Hi doddscarpet144,
There is no reference to that file anywhere in the current version of our plugin. If you download the latest version of the plugin from https://wordpress.org/plugins/ultimate-product-catalogue/#description and do a search throughout the whole plugin folder for “catalogue-style-main-block” you’ll see that there are no results. Perhaps this could be some kind of customization or something added in your end, and/or perhaps someone tried to make use of the “Add New Catalogue Style” option. Said that, could you check and let us know what version of the plugin are you using?
Interesting. No, I have not used any New Catalogue Styles or any of that type of customization on my end. I am the only one with access to this site. At the time of this post, I was running Version 4.3.3. I upgraded this morning to the new version.
<script type=”text/javascript” src=”https://www.doddscarpet.com/wp-content/plugins/ultimate-product-catalogue/js/catalogue-style-main-block.js?ver=4.9.4″></script>
It doesn’t seem to be affecting anything that I can see. Just letting you know.
Hi dodd,
Thanks for that further information. It still looks like it’s related to the Add New Catalogue Style option, which dynamically loads the corresponding JavaScript file and CSS. In the meantime, one way to remove that error would be to completely remove those lines of code for now.
They’re in the “UPCP_Main.php” file. You can look for the following lines:
wp_enqueue_script('upcp-theme-js', UPCP_CD_PLUGIN_URL . 'js/catalogue-style-' . $Catalogue_Style . '.js', array( 'jquery' ));
elseif ($Catalogue_Style != "None") {wp_enqueue_style( 'catalogue-style-' . $Catalogue_Style, UPCP_CD_PLUGIN_URL . 'css/catalogue-style-' . $Catalogue_Style . '.css');}
fyi I have the same error, as doddscarpet144 posted here.
You should deal with this error because these 404 errors overwrite my log history …
Is this what you were referring to? This is what I found:
`if ($Catalogue_Style != “None” and $Catalogue_Style == “main-hover”) {
wp_enqueue_script(‘upcp-theme-js’, plugins_url( ‘js/catalogue-style-hover.js’ , __FILE__ ), array( ‘jquery’ ), ‘1.0’, true);
}
elseif ($Catalogue_Style != “None”) {wp_enqueue_script(‘upcp-theme-js’, UPCP_CD_PLUGIN_URL . ‘js/catalogue-style-‘ . $Catalogue_Style . ‘.js’, array( ‘jquery’ ));}
Hi @jonhh
We do indeed plan on correcting the console error. This above code we sent to doddscarpet144 is just to help you remove it in the meantime.
Hi @doddscarpet144 ,
You only need to remove the second part of the code you pasted.
i.e. This code:
elseif ($Catalogue_Style != “None”) {wp_enqueue_script(‘upcp-theme-js’, UPCP_CD_PLUGIN_URL . ‘js/catalogue-style-‘ . $Catalogue_Style . ‘.js’, array( ‘jquery’ ));}
Thanks. Yes that did remove the problem.