Title: [Plugin: Codestyling Localization] jQuery errors
Last modified: August 20, 2016

---

# [Plugin: Codestyling Localization] jQuery errors

 *  Resolved [Triple P](https://wordpress.org/support/users/triple-p/)
 * (@triple-p)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/)
 * Hi!
 * We’re having some trouble with the scripts loaded on the Codestyling Localization
   admin page, rendering the plugin useless. Some of the errors we get:
 * – Object.extend is not a function (on page load)
    – jQuery is not defined (on
   page load) – $ is not defined (on pressing edit button)
 * Our admin area is secured with SSL. In our dev environment (which does not use
   the SSL protocol) the plugin works fine. Any idea how we could fix this problem?
 * [http://wordpress.org/extend/plugins/codestyling-localization/](http://wordpress.org/extend/plugins/codestyling-localization/)

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

 *  [urmachtra](https://wordpress.org/support/users/urmachtra/)
 * (@urmachtra)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867171)
 * I hope this is not off topic, but I enabled SSL for WordPress admin last weekend,
   and now some links are non-responsive, like the Edit link for a translation file.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867172)
 * [@urmachtra](https://wordpress.org/support/users/urmachtra/), unless you are 
   also talking about scripts being loaded and SSL interfering with that, yes that’s
   off topic. Please create your own thread instead.
 * [http://wordpress.org/support/forum/how-to-and-troubleshooting#postform](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform)
 *  [spyros](https://wordpress.org/support/users/spyros/)
 * (@spyros)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867257)
 * [@jan](https://wordpress.org/support/users/jan/) Dembrowski. I think it is not
   off topic. I am also using the ssl for administration and every other plugins
   are 100% correct except Codestyling Localization. When I switch off ssl, then
   it is OK.
 * IMHO there are some code problems for relative/absolute http/https address.
 * Anyway great plugin!
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867258)
 * It was off topic, people should post their own threads instead of interrupting
   someone else’s, and _the most critical part (which I do not take seriously at
   all) and the **absolute thing that got my attention**_:
 * There is no “R” in my last name. 😉
 *  [spyros](https://wordpress.org/support/users/spyros/)
 * (@spyros)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867259)
 * [@jan](https://wordpress.org/support/users/jan/) Dembowski.
 * Sorry for changing your name. Anyway this SSL problem is bug and that is all 
   I can say.
 *  [ajsalas](https://wordpress.org/support/users/ajsalas/)
 * (@ajsalas)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867261)
 * Any solutions on this? I have the same error, but on a fresh wp install I’m new
   on this, so I’m not sure if ssl is enabled or not.
 *  [urmachtra](https://wordpress.org/support/users/urmachtra/)
 * (@urmachtra)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867262)
 * I thought my post was not offtopic as I was experiencing the same problems when
   SSL is activated.
 * I created another topic with the same errors as the topic starter mentions.
 *  [Alexandre Simard](https://wordpress.org/support/users/brocheafoin/)
 * (@brocheafoin)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867284)
 * urmachtra and Triple P are talking about the same problem.
 * When you are connecting over HTTPS, the plugin strips away all the scripts queued
   for embedding. jQuery, Prototype, etc. are no longer there. Since the plugin 
   itself relies heavily on these libraries to work, it breaks down pretty fast,
   i.e. the “Edit” translation link.
 * I’ve narrowed it down to the new _Scripting Guard_ feature, introduced in version
   1.9.21. Earlier versions should work OK over HTTPS. If you want the latest version,
   you’ll have to deactivate _Scripting Guard_. The simplest way I’ve found is to
   comment out lines 2680 to 2684 in the main PHP file:
 *     ```
       function csp_load_po_edit_admin_page(){
   
       /*	add_filter('print_scripts_array', 'csp_filter_print_scripts_array');
       	add_action('admin_enqueue_scripts', 'csp_start_protection', 0);
       	add_action('in_admin_footer', 'csp_start_protection', 0);
       	add_action('admin_head', 'csp_self_script_protection_head', 9999);
       	add_action('admin_print_footer_scripts', 'csp_self_script_protection_footer', 9999);
       */
   
       	wp_enqueue_script( 'thickbox' );
       ```
   
 * Hope this helps someone, and hope Heiko will find the time to fix this. Cheers!
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867285)
 * will be fixed in version 1.99.25, SSL was not fully supported.
 *  [Alexandre Simard](https://wordpress.org/support/users/brocheafoin/)
 * (@brocheafoin)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867286)
 * Thank you!

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

The topic ‘[Plugin: Codestyling Localization] jQuery errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 10 replies
 * 7 participants
 * Last reply from: [Alexandre Simard](https://wordpress.org/support/users/brocheafoin/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-jquery-errors/#post-2867286)
 * Status: resolved