• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

PHP Parse error: syntax error, unexpected '?' in /usr/share/plesk-wp-cli/php/wp-cli.php(23)

Pa1

New Pleskian
Hello all,

i have installed Plesk 12, and total 14 Wordpress Installations running.

I have set up 2 of them using the Plesk Auto Install tool and they appear fine in the admin control Panel. After doing that, i wanted to add the other 12, and did a scan in the tab "wordpress installations"

6 of my Installation was added as expected. the other 6 failed, and i see only entries "httpdocs" in the list.
when clickin on those, it shows the errors:

PHP Parse error: syntax error, unexpected '?' in /usr/share/plesk-wp-cli/php/wp-cli.php(23)

obviously it produces an error when parsing the wp-config files, so i compared the wp-config of a working Installation with one of those that did not work. But they are (apart of username and Passwort) exactly the same Content (used the tool winmerge to be absolute sure)

does anyone have an idea how i can add the other 6 installations manually, or how i can work around that error ?
 
Can you send me two config files (one that works and one that doesn't) via PM? You should remove the passwords, obviously.
 
Last edited:
Thanks to CUSTER. He worked out the solution.

Installing Notepad ++, opening the wp-config.php and then save it as UTF8 without BOM resolved the Problem.

Thanks for the great Support !
 
Back
Top