YunoHost-Apps / osticket_ynh

Support Ticketing System package for YunoHost
https://osticket.com/
GNU General Public License v2.0
2 stars 7 forks source link

Upgrade to 1.16 fails due to wrong php-version #39

Closed YuleZ closed 2 years ago

YuleZ commented 2 years ago

Describe the bug

After upgrading to 1.16 via YunoHost-WebApp, osTicket asks me to upgrade in the app itself. I cannot upgrade there because osTicket want's to have php8 installed but only finds 7.33.

Is osTicket maybe not using a wrapper around php?

Context

Steps to reproduce

Expected behavior

I want to upgrade to 1.16 completely

Logs

Can be found here

yalh76 commented 2 years ago

If I understand, you tried to upgrade the app not using yunohost but directly inside Osticket ?

YuleZ commented 2 years ago

No, via yunohost. But in the Webapp, not via CLI

yalh76 commented 2 years ago

and inside OsTicket, it proposed to upgrade to which version ?

I ask because in the logs you provided, there is no php8 stuff and upgrade goes well ...

yalh76 commented 2 years ago

Ok then, i've installed and upgrade osticket. so now I see it. inside osticket, it the admin part, it ask to upgrade .. image

yalh76 commented 2 years ago

ok, found it .. Quick and dirty : you can edit /var/www/osticket/include/class.setup.php and replace : 'php' => '8.0', by 'php' => '7.2',

you then will be able to upgrade

YuleZ commented 2 years ago

sounds really dirty. Will osTicket not use any php8 features which wouldn't be available if I bypass this validation?

yalh76 commented 2 years ago

I don't know, it was just a quick and dirty solution to let you use osticket

but there is an ongoing PR to 1.16.1 with PHP8

YuleZ commented 2 years ago

Alright. Thanks.

I rolled back for now and wait for 1.16.1.