WordPress.org

Ready to get started?Download WordPress

Forums

OpenID
OpenID incompatible with WordPress under PHP 5.4.4 (4 posts)

  1. sairuh
    Member
    Posted 2 years ago #

    I found this while running WordPress 3.4.1 locally under MAMP 2.1.1 (OS X 10.7.4). When I have selected using PHP 5.4.4 (the default, actually for MAMP), WordPress won't run at all — indeed, I get a blank page when loading http://localhost:8888/wordpress/ .

    When I selected PHP 5.2.17 under the MAMP prefs, however, WordPress runs. I narrowed down the problem by disabling all plugins while running under PHP 5.2.17, restarting MAMP with PHP 5.4.4, then turning plugins on one by one. I got this error when trying to activate OpenID 3.3.3:

    Plugin could not be activated because it triggered a fatal error:

    Fatal error: Call-time pass-by-reference has been removed in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/openid/Auth/OpenID/Server.php on line 1707

    Other than running the older PHP 5.2.17, are there other workarounds? TIA!

    http://wordpress.org/extend/plugins/openid/

    Again, I should note that I found this while testing WordPress locally with MAMP. I have not tried this with a live site.

  2. biophonc
    Member
    Posted 2 years ago #

    just remove the "&" at line 1707:
    return call_user_func($handler, &$request);
    so that it looks like this:
    return call_user_func($handler, $request);

  3. sairuh
    Member
    Posted 2 years ago #

    To which file are you referring to edit?

  4. alieneila
    Member
    Posted 2 years ago #

    Edit this file...
    /Applications/MAMP/htdocs/wordpress/wp-content/plugins/openid/Auth/OpenID/Server.php

    In newer versions of PHP, the support for & before the variables was removed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic