12345678910111213141516171819202122232425262728293031 |
- ---
- title: RedisCache: Fatal error
- author: notabug.org/postblue
- time: Wed, 25 Sep 2019 10:14:40 UTC
- status: open
- ---
- author: notabug.org
- time: Wed, 25 Sep 2019 10:14:40 UTC
- content: -----
- Trying to enable the RedisCache with the latest nightly, getting this with the daemon: ``` sep 25 11:40:18 friedrich startdaemons.sh[21428]: PHP Fatal error: Uncaught Error: Call to a member function getPayload() on null in /var/www/social/plugins/RedisCache/RedisCachePlugin.php:96 sep 25 11:40:18 friedrich startdaemons.sh[21428]: Stack trace: sep 25 11:40:18 friedrich startdaemons.sh[21428]: #0 /var/www/social/lib/util/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:herds...', Object(HubSub), NULL, 86400, false) sep 25 11:40:18 friedrich startdaemons.sh[21428]: #1 /var/www/social/lib/cache/cache.php(202): Event::handle('StartCacheSet', Array) sep 25 11:40:18 friedrich startdaemons.sh[21428]: #2 /var/www/social/classes/Memcached_DataObject.php(520): Cache->set('gnusocial:herds...', Object(HubSub)) sep 25 11:40:18 friedrich startdaemons.sh[21428]: #3 /var/www/social/classes/Memcached_DataObject.php(52): Memcached_DataObject->encache() sep 25 11:40:18 friedrich startdaemons.sh[21428]: #4 /var/www/social/classes/Managed_DataObject.php(50): Memcached_DataObject::getClassKV('HubSub', 'hashkey', 'a38b9dc516371af...') sep 25 11:40:18 friedrich startdaemons.sh[21428]: #5 /var/www/social/plugins/OStatus/classes/HubSub.php(47): Managed_DataObject::getKV('hashkey', 'a38b9dc516371af...') sep 25 11:40:18 friedrich startdaemons.sh[21428]: #6 /var/www/social/plugins/OStatus/lib/hubprepqueuehandler.php(68): HubSub::getByHashkey('https://herds.e...', 'https://raki.so...') sep 25 11:40:18 friedrich startdaemons.sh[21428]: #7 /var/www/social/plugins/RedisQueue/classes/RedisQueueManager.php(58): HubPrepQueueHandl in /var/www/social/plugins/RedisCache/RedisCachePlugin.php on line 96 ```
- -----
- author: notabug.org
- time: Sat, 28 Sep 2019 15:31:02 UTC
- content: -----
- Tested the commit f1717bde51, now the daemon is killing itselft/starting back every time.
- -----
- author: notabug.org
- time: Wed, 30 Oct 2019 11:09:19 UTC
- content: -----
- Closed by f1717bde51f
- -----
- author: notabug.org
- time: Wed, 30 Oct 2019 13:37:57 UTC
- content: -----
- @biodantas, a check for null is insufficient: ``` PHP Fatal error: Uncaught Error: Call to a member function getPayload() on string in /var/www/social/plugins/RedisCache/RedisCachePlugin.php:96 Stack trace: #0 /var/www/social/lib/util/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:gnu_s...', Array, NULL, 86400, false) #1 /var/www/social/lib/cache/cache.php(202): Event::handle('StartCacheSet', Array) #2 /var/www/social/classes/Memcached_DataObject.php(964): Cache->set('gnusocial:gnu_s...', Array, NULL, 86400) #3 /var/www/social/classes/Memcached_DataObject.php(363): Memcached_DataObject::cacheSet('group_inbox:lis...', Array) #4 /var/www/social/classes/Managed_DataObject.php(136): Memcached_DataObject::listGetClass('Group_inbox', 'notice_id', Array) #5 /var/www/social/classes/Notice.php(1957): Managed_DataObject::listGet('notice_id', Array) #6 /var/www/social/classes/Notice.php(1929): Notice->getGroups() #7 /var/www/social/classes/Notice.php(1883): Notice->getGroupProfileIDs() #8 /var/www/social/plugins/OStatus/lib/ostatusqueuehandler.php(64): Notice->getAttentionProfiles() in /var/www/social/plugins/RedisCache/RedisCachePlugin.php on line 96 ```
- -----
|