slave Posted October 22, 2018 Share Posted October 22, 2018 I have a bug after updating ProcessWire dev 3.0.116 -> 3.0.117Parse 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 More sharing options...
theo Posted October 22, 2018 Share Posted October 22, 2018 Which PHP version? No problems here so far with PHP 7.2.11 1 Link to comment Share on other sites More sharing options...
teppo Posted October 22, 2018 Share Posted October 22, 2018 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 ? 1 Link to comment Share on other sites More sharing options...
slave Posted October 22, 2018 Author Share Posted October 22, 2018 5 hours ago, theo said: Which PHP version? No problems here so far with PHP 7.2.11 I have php 5.4.17I'll try that with 7 now Link to comment Share on other sites More sharing options...
slave Posted October 22, 2018 Author Share Posted October 22, 2018 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 itand report Link to comment Share on other sites More sharing options...
alexm Posted October 25, 2018 Share Posted October 25, 2018 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 More sharing options...
alexm Posted October 25, 2018 Share Posted October 25, 2018 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 More sharing options...
gmclelland Posted October 29, 2018 Share Posted October 29, 2018 https://processwire.com/blog/posts/rebuilding-pw-website-part2/ Quote It sounds like last week's version 3.0.117 additions to WireArray may have caused issues in PHP versions prior to 7.x. Sorry about that—it has been hopefully fixed on the dev branch. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now