(1/1) FatalThrowableError Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

Just upgraded to 4.5.32 through Softaculous on cPanel - now get this error when trying to connect. Where can I download the previous version to install so that we can continue working? I don’t have tech skills to try and fix this and urgently need to invoice and view invoices.

(1/1) FatalThrowableError

Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE)
in Translator.php line 91
at Composer\Autoload\includeFile(’/home/mssops/public_html/vendor/composer/…/symfony/translation/Translator.php’)in ClassLoader.php line 322
at ClassLoader->loadClass(‘Symfony\Component\Translation\Translator’)
at spl_autoload_call(‘Symfony\Component\Translation\Translator’)

Hi,

PHP 7.4 isn’t supported, you need to changed to 7.3

Thank you, will contact hosting provider to do that.
In meanwhile is there any way I can revert to previous version or download previous version so that we can carry on working?

Webserver shows:

  • PHP version: 7.3.6

Are you using a phpinfo file to check the version?

I believe Softaculous supports reverting to a previous version

Version info from Web server settings shown on phpmyadmin
Softaculous doesn’t offer any other versions for InvoiceNinja.

You may want to setup a phpinfo file, many webhost have separate CLI and web php versions.

If you want to manually downgrade you can download the last version here:

https://download.invoiceninja.com/ninja-v4.5.31.zip

Hosting company has resolved the issue.
Which takes me to the original reason I tried to update the software - having searched the forum I have found the problem which is Mac Big Sur / Safari / pdf preview. Switched to Opera and all good.
Thank you for your prompt assistance.

1 Like