Support » Plugins and Hacks » Fatal Error / Parse error in Yaris.php when WP-OpenID activated

  • This seems to be an interesting error as I don’t see this error posted anywhere. When activating WP-OpenID 2.1.2 in WordPress 2.3.1, I get the following Fatal Error:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: parse error, unexpected '=', expecting ')' in /homepages/7/d227205292/htdocs/travistubbs.net/www/wp-content/plugins/openid/Auth/Yadis/Yadis.php on line 278

    Now, as I’m not a programming genius in any form or fashion, I have no idea why this is happening. Any thoughts and/or suggestions?

Viewing 15 replies - 1 through 15 (of 23 total)
  • I’m having same problem here.
    Can’t activate the plugin cause of this.

    Same problem here. Mine is WP 2.3.1 with Talian 1.0 Theme

    what version of PHP are you running?

    From what I can see, my provider is running PHP 4.4.7. It appears they are also running MySQL 4.0.25, if that’s of any help. If you need any other details, let me know and I’ll see what I can find. Thanks!

    PHP version 4.4.4
    MySQL version 4.1.22-standard

    Same with WP 2.3.1

    Should I submit a ticket to my hosting?

    Problem fixed.

    I submitted a ticket to support so they enable PHP 5 for me.
    They told me to add a line to my .htaccess file. Works fine now.

    Thanks for this great plugin!

    I’m running PHP 4.4.6 on my own colo box and receiving this error. phpinfo(): http://www.erica.biz/phpinfo.php

    Does this plugin require PHP5? It doesn’t say that anywhere on the plugin page.

    In answer to Travis’ email:

    I’m with HostGator right now, so I’m not sure if it will work for other hosting companies.

    HostGator Support told me to add “AddHandler application/x-httpd-php5 .php” to my .htaccess file… and it pretty much fixed everything for me.

    Hope it helps.

    Good to hear, Dmitrik!

    It appears that what you need to add to your .htaccess file will vary from host to host. For example, my web host (1and1.com) says the following should be added:

    AddType x-mapp-php5 .php

    So, this pretty much confirms PHP5 is needed. Check with your web host to see what you need to do to have it added to your plan.

    hmm… sounds like when I upgraded the OpenID library it introduced a PHP5 dependency. I was not aware of that, so I’ll see if that was deliberate or not.

    @wnorris

    Do you want to keep this open until you determine the issue? Or resolution to the issue, I guess I should say.

    Hi,

    The problem solved when I upgrade PHP to v.5x. The OpenID association with username is working also.

    Regards,

    Hi,

    I tried adding the PHP v5.x line to my .htaccess file and got the following error:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 150559 bytes) in /home/amitkg/public_html/wp-admin/includes/plugin.php on line 4

    Does anyone know how to get around this one?

    To fix this for PHP4, replace line 278 (the one causing the error) like this (removing ” = null”):

    -    function discover($uri, &$fetcher = null,
    +    function discover($uri, &$fetcher,

    Then it should work with PHP4, too. The library does not require PHP5, but somehow the library shipped in the plugin has been modified.

    blueyed’s fix worked for me to activate the plugin. Now to use it 🙂

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Fatal Error / Parse error in Yaris.php when WP-OpenID activated’ is closed to new replies.