Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • We’ve got the same issue. I click on the Insert Icon-button, see the Icons, click on one, nothing happens. And on the pages that had icons from before the icons in the text were removed when we saved the page after making some changes.


    I was having the same problem. Same error in the same place. I’m running WP 5.0.1 and Crop Thumbnails 1.2.1.

    If I output the response (data) from the fail()-bracket it says:

    Deprecated: Non-static method CropPostThumbnailsEditor::fixJsLangStrings() should not be called statically in <b>/home/XXXXXX/public_html/wp-content/plugins/crop-thumbnails/functions/editor.php</b> on line 63

    The same error is found on many lines of code in that file.

    What I did was simply make the function “fixJsLangStrings()” static, by changing:

    protected function fixJsLangStrings($msg) {
        return str_replace('&quot;','"',esc_js($msg));


    protected static function fixJsLangStrings($msg) {
        return str_replace('&quot;','"',esc_js($msg));

    In functions/editor.php

    It is working fine now. Maybe this is something you should change in the plugin code. Otherwise my change will be overwritten when a new version is released 😉

    • This reply was modified 3 years, 7 months ago by ericjohansson.
Viewing 2 replies - 1 through 2 (of 2 total)