Closed JRGonz closed 2 months ago
Similar reports:
Same issue here NC 28.0.4
The code that causes the error:
private function setIcon(IEvent $event): void {
$path = $this->urlGenerator->imagePath(
Application::APP_ID,
'circles.' . $this->activityManager->getRequirePNG() ? 'png' : 'svg'
);
$event->setIcon($this->urlGenerator->getAbsoluteURL($path));
}
private function setIcon(IEvent $event): void {
$extension = $this->activityManager->getRequirePNG() ? 'png' : 'svg';
$path = $this->urlGenerator->imagePath(
Application::APP_ID,
'circles.' . $extension
);
$event->setIcon($this->urlGenerator->getAbsoluteURL($path));
}
I was looking in to the source code and It appears that they have already fixed the bug using a different version from the provided fix above. You can either use my version or simply wait for an update. I believe both versions should work. 🤗
We have same problem.
We have the same problem : "app": "activity", "method": "GET", "url": "/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity", "message": "Error while parsing activity event", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0", "version": "27.1.9.1", "data": { "exception": "{\"class\":\"RuntimeException\",\"message\":\"image not found: image:png webroot: serverroot:/var/www/server.com/www\",\"code\":0,\"file\":\"/var/www/server.com/www/lib/private/URLGenerator.php:274\",\"trace\":\"#0 /var/www/server.com/www/apps/circles/lib/Activity/Provider.php(96): OC\URLGenerator->imagePath()\n#1 /var/www/server.com/www/apps/circles/lib/Activity/Provider.php(67): OCA\Circles\Activity\Provider->setIcon()\n#2 /var/www/server.com/www/apps/activity/lib/GroupHelper.php(89): OCA\Circles\Activity\Provider->parse()\n#3 /var/www/server.com/www/apps/activity/lib/GroupHelper.php(76): OCA\Activity\GroupHelper->addEvent()\n#4 /var/www/server.com/www/apps/activity/lib/Data.php(260): OCA\Activity\GroupHelper->addActivity()\n#5 /var/www/server.com/www/apps/activity/lib/Dashboard/ActivityWidget.php(152): OCA\Activity\Data->get()\n#6 /var/www/server.com/www/apps/dashboard/lib/Controller/DashboardApiController.php(134): OCA\Activity\Dashboard\ActivityWidget->getItemsV2()\n#7 /var/www/server.com/www/lib/private/AppFramework/Http/Dispatcher.php(230): OCA\Dashboard\Controller\DashboardApiController->getWidgetItemsV2()\n#8 /var/www/server.com/www/lib/private/AppFramework/Http/Dispatcher.php(137): OC\AppFramework\Http\Dispatcher->executeController()\n#9 /var/www/server.com/www/lib/private/AppFramework/App.php(183): OC\AppFramework\Http\Dispatcher->dispatch()\n#10 /var/www/server.com/www/lib/private/Route/Router.php(315): OC\AppFramework\App::main()\n#11 /var/www/server.com/www/ocs/v1.php(65): OC\Route\Router->match()\n#12 /var/www/server.com/www/ocs/v2.php(23): require_once('...')\n#13 {main}\"}", "app": "activity"
Same issue here.
I can confirm that @excho0 patch fix the issue for me
{ "reqId":"xxxxxxxx", "level":3, "time":"2024-05-23T11:41:17+00:00", "remoteAddr":"xxxxxxx", "user":"xxxxxxxxxxxxxx", "app":"no app in context", "method":"GET", "url":"/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity", "message":"Exception thrown: RuntimeException", "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", "version":"27.1.8.1", "exception":{ "Exception":"RuntimeException", "Message":"image not found: image:png webroot: serverroot:/xxxxxxxxxxxx/www/nextcloud", "Code":0, "Trace":[ { "file":"/xxxxxxxxxxxxx/nextcloud/apps/circles/lib/Activity/Provider.php", "line":96, "function":"imagePath", "class":"OC\URLGenerator", "type":"->" }, { "file":"/xxxxxxxx/nextcloud/apps/circles/lib/Activity/Provider.php", "line":67, "function":"setIcon", "class":"OCA\Circles\Activity\Provider", "type":"->" }, { "file":"/xxxxxxxxx/nextcloud/apps/activity/lib/GroupHelper.php", "line":86, "function":"parse", "class":"OCA\Circles\Activity\Provider", "type":"->" }, { "file":"/xxxxxxx/www/nextcloud/apps/activity/lib/Data.php", "line":260, "function":"addActivity", "class":"OCA\Activity\GroupHelper", "type":"->" }, { "file":"/xxxxxxxxxx/nextcloud/apps/activity/lib/Dashboard/ActivityWidget.php", "line":152, "function":"get", "class":"OCA\Activity\Data", "type":"->" }, { "file":"/xxxxxxxxx/nextcloud/apps/dashboard/lib/Controller/DashboardApiController.php", "line":134, "function":"getItemsV2", "class":"OCA\Activity\Dashboard\ActivityWidget", "type":"->" }, { "file":"/xxxxxxxxxx/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line":230, "function":"getWidgetItemsV2", "class":"OCA\Dashboard\Controller\DashboardApiController", "type":"->" }, { "file":"/xxxxxxxxxxxx/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line":137, "function":"executeController", "class":"OC\AppFramework\Http\Dispatcher", "type":"->" }, { "file":"/xxxxxxxxx/www/nextcloud/lib/private/AppFramework/App.php", "line":183, "function":"dispatch", "class":"OC\AppFramework\Http\Dispatcher", "type":"->" }, { "file":"/xxxxxxxx/www/nextcloud/lib/private/Route/Router.php", "line":315, "function":"main", "class":"OC\AppFramework\App", "type":"::" }, { "file":"/xxxxxxxxx/www/nextcloud/ocs/v1.php", "line":65, "function":"match", "class":"OC\Route\Router", "type":"->" }, { "file":"/axxxxxxxxxd/www/nextcloud/ocs/v2.php", "line":23, "args":[ "/xxxxxxwww/nextcloud/ocs/v1.php" ], "function":"require_once" } ], "File":"/xxxxxx/www/nextcloud/lib/private/URLGenerator.php", "Line":274, "CustomMessage":"Exception thrown: RuntimeException" } }
UPDATE:
I was looking in to the source code and It appears that they have already fixed the bug using a different version from the provided fix above. You can either use my version or simply wait for an update. I believe both versions should work. 🤗
A pull request would be a good idea to speed up the update process, wouldn't it?
as i said I was looking in to the source code and It appears that they have already fixed the bug using a different version from the provided fix above. You can either use my version or simply wait for an update. I believe both versions should work. 🤗
After upgrading to latest nextcloud version fix is in place
Fixed nextcloud/circles#1378
⚠️ This issue respects the following points: ⚠️
Bug description
After updating I am receiving this message and the activities app does not function and just gives nonstop error bubbles on the right.
Steps to reproduce
Expected behavior
To not have errors and able to see the activity log.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
I worked around this by disabling circles.