• Resolved Triple P

    (@triple-p)


    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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

    (@jdembowski)

    Forum Moderator and Brute Squad

    @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

    @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

    (@jdembowski)

    Forum Moderator and Brute Squad

    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. 😉

    @jan Dembowski.

    Sorry for changing your name. Anyway this SSL problem is bug and that is all I can say.

    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.

    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.

    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

    (@codestyling)

    will be fixed in version 1.99.25, SSL was not fully supported.

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Codestyling Localization] jQuery errors’ is closed to new replies.