• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

PhP Error after Upgrading to any version

ZockerBoysHD

Chevereto Member
Hi,

Im running Chevereto un my Server (not docker) and after every time upgrading to any version using the chevereto dashboard i always get similar (if not the same didnt make notes last time) php errors.

My System:

(i know the cron error is there its there cus i managed to get my chevereto back working again and yet need to fix and properly finish the update)

▶ Reproduction steps

Update Chevereto from the Dashboard

😢 Unexpected result

Error 500 when accesing any URL of chevereeto (even main page)

📃 Error log message

PHP:
[01-Apr-2022 21:23:57 Europe/Berlin]
Aw, snap! Internal Server Error [debug @ error_log]

** errorId #aba5f1218acd30a0 **
>> ParseError [0]: syntax error, unexpected '='
At /lib/G/classes/class.gettext.php:406

Stack trace:
#0 unknown file(unknown line): class_autoloader('G\Gettext')
#1 /app/lib/classes/class.l10n.php(193): spl_autoload_call('G\Gettext')
#2 /app/lib/classes/class.l10n.php(121): CHV\L10n::processTranslation('de')
#3 /app/lib/classes/class.l10n.php(132): CHV\L10n->__construct()
#4 /app/lib/classes/class.l10n.php(232): CHV\L10n::getInstance()
#5 /app/lib/classes/class.l10n.php(252): CHV\L10n::getStatic('gettext')
#6 /app/lib/classes/class.l10n.php(220): CHV\L10n::getGettext()
#7 /app/lib/l10n.php(43): CHV\L10n::ngettext('image', 'images', '1968')
#8 /app/lib/classes/class.user.php(520): _n('image', 'images', '1968')
#9 /app/lib/classes/class.user.php(486): CHV\User::fill(Array)
#10 /app/lib/classes/class.user.php(58): CHV\User::formatArray(Array)
#11 /app/lib/classes/class.login.php(153): CHV\User::getSingle('1', 'id')
#12 /app/lib/classes/class.login.php(129): CHV\Login::login('1', 'cookie')
#13 /app/lib/classes/class.login.php(109): CHV\Login::loginCookie('KEEP_LOGIN')
#14 /app/lib/classes/class.login.php(77): CHV\Login::tryCookies()
#15 /app/web.php(65): CHV\Login::tryLogin()
#16 /lib/G/classes/class.handler.php(125): CHV\{closure}(G\Handler)
#17 /app/web.php(415): G\Handler->__construct(Array)
#18 /app/loader.php(239): require_once('/app/web.php')
#19 /index.php(20): include_once('/app/loader.php')


How did i "fix" this


I went to the filee, givven in the error (/lib/G/classes/class.gettext.php:406) and checked line 406 which had this in it
I dont know really much about php but the 2 "?" icons seemed odd to me so i removed them cus i know one "=" is setting a value so i thought its to "reset" the "msgstr" value.
After uploading my change chevereto is back working and doesnt give any more errors.


I dont know what i did with my change but i have issues like this (or other php related issues) every time when updating my version using the dashboard.
 
Back
Top