Title: Javascript error
Last modified: February 9, 2018

---

# Javascript error

 *  Resolved [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * (@doddscarpet144)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-136/)
 * After trying to troubleshoot an issue with a product page not loading, I went
   to look at the javascript console, I found a 404 error for …/plugins/ultimate-
   product-catalogue/js/catalogue-style-main-block.js?ver=4.9.4 404 (Not Found).
   I don’t see a difference in my pages but didn’t know if I just missed something.
 * Note: the problem with the site loading seems to be a recent conflict with another
   plugin (Page Builder by SiteOrigin).
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-136%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9966398)
 * 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”)
 *  Thread Starter [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * (@doddscarpet144)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9969681)
 * It is the block styling.
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9970528)
 * 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](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?
 *  Thread Starter [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * (@doddscarpet144)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9981829)
 * 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&gt](https://www.doddscarpet.com/wp-content/plugins/ultimate-product-catalogue/js/catalogue-style-main-block.js?ver=4.9.4″></script&gt);
 * It doesn’t seem to be affecting anything that I can see. Just letting you know.
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9983792)
 * 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');}
       ```
   
 *  [jonhh](https://wordpress.org/support/users/jonhh/)
 * (@jonhh)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9984391)
 * fyi I have the same error, as doddscarpet144 posted here.
    You should deal with
   this error because these 404 errors overwrite my log history …
 *  Thread Starter [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * (@doddscarpet144)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9990606)
 * 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’ ));}
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9991006)
 * Hi [@jonhh](https://wordpress.org/support/users/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.
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9991007)
 * Hi [@doddscarpet144](https://wordpress.org/support/users/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’ ));}`
 *  Thread Starter [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * (@doddscarpet144)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9994987)
 * Thanks. Yes that did remove the problem.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Javascript error’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-product-catalogue/assets/icon-128x128.png?rev=1805317)
 * [Ultimate Product Catalog](https://wordpress.org/plugins/ultimate-product-catalogue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-product-catalogue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-product-catalogue/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-product-catalogue/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [doddscarpet144](https://wordpress.org/support/users/doddscarpet144/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-136/#post-9994987)
 * Status: resolved