• Resolved minasato

    (@minasato)


    Fatal error: Can’t use function return value in write context in wp-content/plugins/crop-thumbnails/functions/save.php on line 292

    Don’t you test your code?
    Get your sh*t together mate.
    Unbelievable!

    PHP v5.4

    • This topic was modified 7 years, 3 months ago by minasato.
Viewing 9 replies - 1 through 9 (of 9 total)
  • i think you can be more polite as you are using a free and open plugin.

    you even couldt digg into it and write a patch…

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    @netzgestaltung Thank you

    @minasato Hi, you use php 5.4? I heighly recommend you update your PHP. Version 5.4 reached end of support about two years ago. Thats a massive security issue. Unbelievable.

    https://php.net/supported-versions.php

    However, i will have a look on the code. Ich only tested this version on PHP 7 and above.

    i do have an error when reactivating the plugin on one of the affected pages:

    Das Plugin kann nicht aktiviert werden, da es einen fatalen Fehler erzeugt.
    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/crop-thumbnails/functions/save.php on line 206

    PHP Versions running on sites that are affected on my side:
    5.3.27
    5.6.31
    5.3.27

    all other installations (~20) do work – i assume they are on PHP 7 allready

    return [];

    couldt also be

    return array();

    ?

    i now tested setup PHP to 7 and reinstalled the plugin on one site: worked.

    good catch to update PHP versions ??

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    So, i am finally home, and will have a look on it – asume there will be version 1.0.1 in about 1-2 hours.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi,
    i just released version 1.0.1 wich addresses the 2 bugs.

    Problem is, i cant test it really well. On non of my servers runs a Version older than 5.5.

    • The short-array-notation was introduced with PHP 5.4.
    • The “Can’t use function return value in write context” error seems to be a php-setting on older versions – didn’t get this error nether.

    Let me know if the plugin runs in Version 1.0.1.

    Thread Starter minasato

    (@minasato)

    @volkmar-kantor Thanks for looking into this, and sorry for the rant.
    On a Sunday morning several websites went down on an old server and it was slightly disappointing it was due to the update – surely I used wrong language to point that out.

    I really appreciate your work, this plugin proved really useful and way better than others from the same category.
    So – Thank you, and apologies.
    Keep up the good job.

    Hi, I had the same issue (5.4). I’ve updated the plugin and it seems fine now, thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Latest version crippled WP’ is closed to new replies.