#81 RedisCache: Fatal error

Otvorená
otvorené 5 rokov pred užívateľom postblue · 3 komentárov
Guillaume okomentoval 5 rokov pred

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
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 ```
Guillaume okomentoval 5 rokov pred
Autor

Tested the commit f1717bde51, now the daemon is killing itselft/starting back every time.

Tested the commit f1717bde51, now the daemon is killing itselft/starting back every time.
biodantas okomentoval 5 rokov pred

Closed by f1717bde51f

Closed by f1717bde51f
XRevan86 okomentoval 5 rokov pred
Spolupracovník

@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
@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 ```
XRevan86 znovu otvorené 5 rokov pred
Prihláste sa pre zapojenie do konverzácie.
Žiadny míľnik
Žiadny priradený
3 účastníkov
Načítavanie...
Zrušiť
Uložiť
Zatiaľ neexistuje žiadny obsah.