WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Michael Luther
    Member
    Posted 6 months 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

    http://wordpress.org/plugins/php-enkoder/

  2. fcalloni
    Member
    Posted 6 months ago #

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

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

    to:

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

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

    Thanks fcalloni!

  4. Ciro Urdaneta
    Member
    Posted 6 months ago #

    Thanks, the fixed worked like a charm!

  5. johnmorse
    Member
    Posted 6 months 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
    Member
    Posted 6 months ago #

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

  7. michael_greenberg
    Member
    Plugin Author

    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.