I was trying to recreate feature then i got this
Parse error: parse error in C:\xampp\htdocs\profiles\..\modules\flag\includes\flag.export.inc on line 251

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

What version of PHP are you on?

kaizerking’s picture

Status: Postponed (maintainer needs more info) » Active

EDIT:
If i try to update the flag also I am getting this

kaizerking’s picture

Php 5.2

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Sigh, this is a PHP 5.2 thing isn't it?

This would need switching to call_user_func(array($classname, $method), $param);

kaizerking’s picture

Yes, indeed it shows high lighted in my net beans editor as error
$update_class::update($flag);

joachim’s picture

Title: Parse error:flag.export.inc on line 251 » use of $class::$method() in export not supported by PHP 5.2
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new613 bytes

Can you try this patch please?

joachim’s picture

StatusFileSize
new1.28 KB

Tried this myself on PHP 5.2.

Turns out quite a few things needed changing. *sigh*.

joachim’s picture

Status: Needs review » Fixed

Tests pass, committing.

Issue #1778628 by joachim: Fixed uses of variable classname, unsupported on PHP 5.2.

kaizerking’s picture

My apologies for the delay,I will test and come back, each time I am enabling a new module my site is crashing, i want to make sure that it is not caused by some other module . I have been installing the site for last 12hours.

kaizerking’s picture

this worked

joachim’s picture

Thanks for trying it out! :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.