slave

bug after updating, ProcessWire dev 3.0.116 -> 3.0.117

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

Share this post


Link to post
Share on other sites

Which PHP version?

No problems here so far with PHP 7.2.11

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.