Jump to content

bug after updating, ProcessWire dev 3.0.116 -> 3.0.117


Recommended Posts

Posted

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

Posted

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 ?

  • Like 1
Posted
5 hours ago, theo said:

Which PHP version?

No problems here so far with PHP 7.2.11

I have php 5.4.17
I'll try that with 7 now

Posted
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

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

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