Jump to content

bug after updating, ProcessWire dev 3.0.116 -> 3.0.117


slave
 Share

Recommended Posts

I have a bug after updating ProcessWire dev 3.0.116 -> 3.0.117
Parse error: syntax error, 'unexpected' (T_NEW), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in \ wire \ core \ WireArray.php on line 2480

public function __new($items = null) {
        $a = self::new ($items);
        $this->wire($a);
        return $a;
    }

I have this error now and can not log in anymore

Link to comment
Share on other sites

3 hours ago, teppo said:

If you pasted that code here as-is, the issue seems to be that there's an extra space after self::new – it should be "self::new($items)" and not "self::new ($items)".

A FileCompiler issue, perhaps? Could also try manually replacing /wire/core/WireArray.php with the one found from GitHub, just in case. 

Ping @ryan 🙂

I will try it
and report

Link to comment
Share on other sites

I'm getting similar issue for this update:

PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in /wire/core/WireArray.php on line 2480

PHP version: 7.2

Any thoughts? Tried replacing the WireArray.php file also I see no typo.

Link to comment
Share on other sites

I'm not sure whether either of these modules conflicted or if it's coincidence , but I roled back and then updated FormBuilder to the latest version and likewise with ProCache and then dropped wire directory for latest release back in place and all working.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...