Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error on "update.php" at installation of Semantic MediaWiki #4148

Closed
henrigilabert opened this issue Jul 16, 2019 · 13 comments
Closed
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error invalid not related to SMW mediawiki

Comments

@henrigilabert
Copy link

henrigilabert commented Jul 16, 2019

Setup and configuration

  • SMW version: 3.0.2
  • MW version:1.33.0
  • PHP version:7.1.30
  • DB system (MySQL, Blazegraph, etc.) and version: MySQL 5.6.40-84

Issue

After installing SMW correctly with composer, I run update.php form the manitenance directory and I get the message : Parse error: syntax error, unexpected '?' in /home/.../maintenance/update.php on line 254

@mwjames
Copy link
Contributor

mwjames commented Jul 16, 2019 via email

@kghbln kghbln changed the title Pase error on update.php at installation of semantic mediawiki Parse error on "update.php" at installation of Semantic MediaWiki Jul 16, 2019
@kghbln kghbln added bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error invalid not related to SMW mediawiki labels Jul 16, 2019
@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

I have created a back-port of one of the commits. Let's see what happens. Anyways I am pretty sure that we will not see a new MW release soon. This is just the way it is.

@kghbln kghbln closed this as completed Jul 16, 2019
@henrigilabert
Copy link
Author

Thank you for your help, I've applied corrections suggested, the script update.php lokks ok... but now I have Parse error: syntax error, unexpected '?' in /home/.../maintenance/Maintenance.php on line 882.
the line of code in the script is : $this->setParam( $options, $bits[0], $bits[1] ?? 1 );

@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

@henrigilabert I believe your hoster has to remove PHP 5.6 from the system. The change will only give you a graceful failure the issue will persist no matter what you do.

@henrigilabert
Copy link
Author

henrigilabert commented Jul 16, 2019 via email

@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

I am not sure if you read the linked information.

@henrigilabert
Copy link
Author

henrigilabert commented Jul 16, 2019 via email

@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

I created a help page for this

@mwjames
Copy link
Contributor

mwjames commented Jul 16, 2019 via email

@henrigilabert
Copy link
Author

henrigilabert commented Jul 16, 2019 via email

@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

There is nothing I can do ?

What about contacting your hoster about this? I have already suggested this.

@henrigilabert
Copy link
Author

henrigilabert commented Jul 16, 2019 via email

@kghbln
Copy link
Member

kghbln commented Jul 16, 2019

Have you considered looking at our troubleshooting page?

@SemanticMediaWiki SemanticMediaWiki locked as resolved and limited conversation to collaborators Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error invalid not related to SMW mediawiki
Projects
None yet
Development

No branches or pull requests

3 participants