[resolved] Problem after Update from 1.11 to 1.12 (7 posts)

  1. Michael Luther
    Posted 2 years ago #

    Dear Michael,

    at first, thank you for these useful and simple plugin.

    While i updated some of my WP-Sites i detected an fatal error.

    Parse error: syntax error, unexpected '[' in /.../wp-content/plugins/php-enkoder/enkoder.php on line 438

    After the update Backend & Frontend were not available. I fixed this by deleting the plungin via ftp and upload the old plugin folder again.

    Probably something is wrong.

    Regards, Michael


  2. fcalloni
    Posted 2 years ago #

    Had same problem and what fixed for me was to edit the line 438 from:

    $ord = unpack("N",$c)[1];


    $ord = unpack("N",$c);
    $ord = $ord[1];
  3. johnmorse
    Posted 2 years ago #

    I had the same error, this fixed it for me.

    Thanks fcalloni!

  4. Ciro Urdaneta
    Posted 2 years ago #

    Thanks, the fixed worked like a charm!

  5. johnmorse
    Posted 2 years ago #

    Looks like this is fixed with 1.12.1.

    Seems like they changed it to:

    $bs = unpack("N",$c);
    $ord = $bs[1];
  6. Michael Luther
    Posted 2 years ago #

    Everything works fine again. Big thanks to fcalloni and Michael for update the plugin!!

  7. michael_greenberg
    Plugin Author

    Posted 2 years ago #

    This was exactly the reason for 1.12.1---apparently PHP doesn't have compositional syntax. Sorry to crash your websites!

    If anyone has suggestions on how to get a testbed that covers a variety of PHP/Wordpress deployments, I'd love to hear them.

    Finally: feel free to email me at phpenkoder@weaselhat.com, especially for showstopping bugs like these. Not only is it more direct, it's also a little faster than the forums.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHPEnkoder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.