ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Php error when viewing a member profile v2.0.2pb01

April 28, 2010 8:56pm

Subscribe [3]
  • #1 / Apr 28, 2010 8:56pm

    Badlands

    17 posts

    Hi,

    I have just done two things
        1. Installed Solspace User plugin.
        2. Added some custom fields to member profiles.

    When I view a members page such as index.php/member/2 I get the following php errors

    Parse error: syntax error, unexpected T_IS_EQUAL in mysystemfodler/expressionengine/modules/member/mod.member_settings.php(710) : eval()‘d code on line 1

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: rez

    Filename: member/mod.member_settings.php

    Line Number: 713

    A PHP Error was encountered

    Severity: Warning

    Message: Cannot modify header information - headers already sent by (output started at /mysystemfoler/expressionengine/modules/member/mod.member_settings.php(710) : eval()‘d code:1)

    Filename: core/Common.php

    Line Number: 428

    This is the piece of code around where the error is being called

    if (isset($fnames[$val['3']]))
                    {
                        $lcond = str_replace($val['3'], $result_row['m_field_id_'.$fnames[$val['3']]], $lcond);
    
                        $cond = $lcond.' '.$rcond;
    
                        $cond = str_replace("\|", "|", $cond);
    
                        eval("\$rez = ".$cond.";");
    
                        if ($rez)
                        {
                            $content = preg_replace("/".LD.$val['0'].RD."(.*?)".LD.'\/if'.RD."/s", "\\1", $content);
                        }
                        else
                        {
                            $content = preg_replace("/".LD.$val['0'].RD."(.*?)".LD.'\/if'.RD."/s", "", $content);
                        }
                    }

    Is this something I have done and can potentially fix or might it be a problem with the latest build.

  • #2 / Apr 28, 2010 9:09pm

    Badlands

    17 posts

    I also just recieved this php error

    A PHP Error was encountered

    Severity: Notice

    Message: Use of undefined constant loudthought - assumed ‘loudthought’

    Filename: member/mod.member_settings.php(710) : eval()‘d code

    Line Number: 1

    ‘loudthought’ is the value I entered for one of my custom fields ‘twitter_username’.

  • #3 / Apr 28, 2010 9:48pm

    Dave @ Exp:resso

    465 posts

    Dont worry about this - already posted a bug report, its to do with conditionals in member profile templates

  • #4 / Apr 29, 2010 2:33am

    John Henry Donovan

    12339 posts

    DaveNZ,

    Before I close the thread can I confirm that you and Badlands the same user?

  • #5 / Apr 29, 2010 2:36am

    Dave @ Exp:resso

    465 posts

    Not the same person but working on the same project, so yep you can close - I’ve already emailed him about it

  • #6 / Apr 29, 2010 2:40am

    John Henry Donovan

    12339 posts

    Thanks for the clarification. Closing this one out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases