Shlink.ERROR - Error: Typed property Shlinkio\Shlink\Core\ShortUrl\Entity\ShortUrl::$deviceLongUrls must not be accessed before initialization in /var/www/shlink/module/Core/src/ShortUrl/Entity/ShortUrl.php:338 #2188
-
Shlink version3.5.0/3.5.4/3.6.4 PHP version8.1.29 How do you serve ShlinkSelf-hosted nginx Database engineMySQL Database version8.0.39 Current behaviorMany rest API enpoints fail. One such enpoint is the shortcode enpoint where the following log is created in
Expected behaviorNo errors occur which is the case on 3.4.0 and earlier versions. Minimum steps to reproduceupgrade from 3.4.0 -> 3.5.0/3.5.4 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Seems related to #1684 (comment) but with a different database type. |
Beta Was this translation helpful? Give feedback.
-
Also related to #1862 (reply in thread) It seems that shlink is not clearing the apcu cache on upgrade (redis is not used by me). Can this be accomplished manually as a workaround so I can upgrade? |
Beta Was this translation helpful? Give feedback.
-
Do you have other running Shlink instances in the same server? From older versions? |
Beta Was this translation helpful? Give feedback.
-
No. Only one running instance at once. I always stop the nginx server before attempting the upgrade. Executing |
Beta Was this translation helpful? Give feedback.
No. Only one running instance at once. I always stop the nginx server before attempting the upgrade.
Executing
/etc/init.d/php8.1-fpm restart
cleared the cache and worked around the issue.