WordPress.org

Forums

Scissors Continued
please correct deprecated function calls (21 posts)

  1. Daniele Raimondi
    Member
    Posted 5 years ago #

    Switching to debug mode in WP, I've found 2 deprecated function calls that are easy to update:

    1) line 50 in scissors.php:

    load_plugin_texdomain('scissors', $scissors_locale_dir);

    change to

    load_plugin_texdomain('scissors',false, $scissors_locale_dir);

    2) change all occurences of attribute_escape with esc_attr

    Now, no warnign at all.

    http://wordpress.org/extend/plugins/scissors-continued/

  2. Daniele Raimondi
    Member
    Posted 5 years ago #

    Another deprecated functions call (3 calls in the plugin file):
    Just subsitute "wp_shrink_dimensions" with "wp_constrain_dimensions"
    Function parametrs are the same.

  3. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    has it been fixed yet?

  4. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    Figured it out. Thx for the fix. I hope the authors add this officially because most newbs don't read forum posts about problems :{
    `

  5. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    After i did those changes in the scissors.php and saved, my website couldn't be accessed.

    Specifically i couldn't login and enter my wp-admin page !!

    Any ideas ?

  6. Daniele Raimondi
    Member
    Posted 5 years ago #

    reverse to the original code and then make the fixes one by one. Probably you have one or more syntax errors. I can send to you my functioning patched version with the fixes above, if it can be useful.

  7. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    Yes i would appreciate that plz.

    Hm.... how do i private message you ?

    PS: to fix my site bug, i had to download the original scissors continued plugin, and copied the php file over the modified one in my site plugin folder. That fixed the issue.

    I'm just wondering why doing that could bust up the whole admin and login pages @_@:

    By the way do you reckon Scissors continued is compatible with smush.it ?
    http://wordpress.org/extend/plugins/wp-smushit/

  8. Daniele Raimondi
    Member
    Posted 5 years ago #

    I have both wp-smush.it and scissor-continued installed and active on a WP site of mine, http://www.real-dreams.it (online since April) and I've not noticed problems yet using those 2 plugins together.
    This morning I've updated smush-it and noticed a warning smushing an image from the media library ("Failed to create a temp dir...").
    But changing line 27 and 28 of the php plugin file, with those below, solves the problem:

    define('SMUSHIT_REQ_URL', 'http://ws1.adq.ac4.yahoo.com/ysmush.it/ws.php?img=%s');
    define('SMUSHIT_BASE_URL', '');

    Now I can smush images again.

    You can leave you email address in the form on my agency website http://w3b.it (sorry, no english at all at the moment, but the form is quite simple); I will reply you via email.

    In the meahwhile you can download my patched version of scissor continued from here.

  9. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    Hi mad max,

    actually i too notice the ("Failed to create a temp dir...") problem.

    however one time i smush.it, i get that. 10 minutes later, it smushed without issues.

    After smushing a dozen or 2 pictures, i get the error again. I had to wait another 20 minutes or so before i could smush again.

    Bulk smushing the new feature works, but after a dozen or so pictures, i also get that temp error message.

    Like Alex the author said, it is most likely to do with the yahoo smush.it service causing these errors, not the plugin.

    I'm not sure changing the code to your recommendation would be much of a difference. What exactly does it do ?

    By the way my website is http://mognet.no-ip.info

    I'll send you a message :}

  10. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    PS: i notice your site is Italian or something ?

    I think maybe add in a translator plugin for a wider audience. Then again, if your only targeting for specific language speakers, then probably wouldn't matter.

    I was looking at some translation plugins, but none seem that great. The best was gtranslate Pro but that cost a bomb @_@:

  11. Daniele Raimondi
    Member
    Posted 5 years ago #

    I think the problem with smush-it is the availability of the smush.it service. Probably it has some up&down. The changes I suggested just use another yahoo url for posting image to smush and it seems to work well for now.

  12. Moogle Stiltzkin
    Member
    Posted 5 years ago #

    Oh guess i'll try that then, thx.

  13. Pancho Perez
    Member
    Posted 4 years ago #

    Hi I get this when trying to install the plugin:

    load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /home/srv/www/DOMAIN.com/wp-includes/functions.php on line 3468

    Any idea of how to fixed?

    I´ve use this plugin before and is really cool hope I can used in the future.

  14. Daniele Raimondi
    Member
    Posted 4 years ago #

    @lonchbox: have you tried the solution in the first post at the top?

    1) line 50 in scissors.php:

    load_plugin_texdomain('scissors', $scissors_locale_dir);

    change to

    load_plugin_texdomain('scissors',false, $scissors_locale_dir);

  15. Pancho Perez
    Member
    Posted 4 years ago #

    Hi @mad_max

    I make this change and get this message:
    Fatal error: Call to undefined function load_plugin_texdomain() in /home/srv/www/ad.juumanokudo-dev.com/wp-content/plugins/scissors-continued/scissors.php on line 50

  16. Daniele Raimondi
    Member
    Posted 4 years ago #

    I'm really sorry, I've made a typo (missing a 't'); this is the correct code:

    load_plugin_textdomain('scissors',false, $scissors_locale_dir);

  17. Pancho Perez
    Member
    Posted 4 years ago #

    Hey,

    I change and know works when I try to install but then if I try to choose an image from the library to be the featured image get this:

    Notice: getimagesize(): Read error! in /home/srv/www/domain.com/wp-content/plugins/scissors-continued/scissors.php on line 480

    For the record, I use add_image_size to define some image sizes in functions.php, and have some different sizes asigned to an specific custom post type, could be this?

    Thanx :)

  18. radleaf
    Member
    Posted 4 years ago #

    Max need your help on a separate project at http://www.radleaf.com please help me out bro...Can't get jcarousel installed manually...

  19. Pancho Perez
    Member
    Posted 4 years ago #

    Merry Xmas 4 all! :)

    @mad_max how can I contact you, I´m really interested to update the plugin for WP 3.3. Are you available for freelancing ?

  20. Daniele Raimondi
    Member
    Posted 4 years ago #

    Hi Lonchbox and radleaf, you can drop me an email at mad_maxatymaildotcom.

    @lonchbox: I'm giving a try to scissor continued on wp 3.3 and it seems it works. Do you have some particular problem using it? Let me know by email.

    @radleaf: if you should give me an access to your wp to check what's wrong with jcarousel. Let me know by email.

  21. Pancho Perez
    Member
    Posted 4 years ago #

    @mad_max on last try I get this message:

    The plugin generated 142 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    So I change the line 50 on scissors.php, then in the backend trying to add a featured image and I get this message on the media manager popup

    Notice: getimagesize(): Read error! in /home/srv/www/ad.juumanokudo-dev.com/wp-content/plugins/scissors-continued/scissors.php on line 479

    :D

    I´m also using this plugins with it:

    • Contact Form 7 - Version 3.0.2.1
    • Lazy Load - Version 0.1
    • Multiple Post Thumbnails - Version 1.0
    • Posts 2 Posts - Version 1.1.3
    • Simple Local Avatars - Version 1.3
    • Sticky Custom Post Types - Version 1.2.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scissors Continued
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic