[Register]
Powered by Elgg

Plugins :: Blog :: PHP error editing wiki pages in Folio.51

May 23, 2007

Hi, we are receiving a PHP Parse error:  syntax error, unexpected T_OBJECT_OPERATOR in mod/folio/control/page_edit_post.php when we try to edit or add a wiki page. We are using PHP 4.4.7. Have anyone received a similar error?

David

Keywords: folio, php, plugin

Posted by David Zapata @ Plugins


Comments

  1. Yup, it's a problem with you running an older version of php than I (the dev for mod/folio) to run on. 

    I'm going to take another couple of days to work on this.  However, for your fix, open that mod/folio/control/page_edit_post.php & replace line 71 with the following two lines.  Your older version of php doesn't like dereferencing a function return value.

            $u = folio_finduser( $username )
            if ( $u->user_type == 'community' ) {

    user iconNathan Garrett on Wednesday, 23 May 2007, 17:05 UTC # |

  2. Thanks for the help Nathan. I used the code you suggested, also had to add a ; at the end of the first line.

    Best, David

    user iconDavid Zapata on Thursday, 24 May 2007, 16:26 UTC # |

  3. Whoops, sorry about that. 

    user iconNathan Garrett on Thursday, 24 May 2007, 22:40 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg