nextcloud / cms_pico

🗃 Integrate Pico CMS and let your users manage their own websites
https://apps.nextcloud.com/apps/cms_pico
GNU Affero General Public License v3.0
134 stars 42 forks source link

"Class \"Pico\" not found #246

Closed axelos closed 6 months ago

axelos commented 6 months ago

Hello,

Version 25 is no longer supported, I updated Nextcloud 26, and reinstalling cms_pico-1.0 in cli. When I want to load the small existing website hosted on cms-pico, I get this error:

Message":"Class \"Pico\" not found in file '/var/www/nextcloud/apps/cms_pico/lib/Pico.php' line 44

The complete line :

{"reqId":"6cA0BA9R2891PIjo2a15","level":3,"time":"March 24, 2024 10:01:49","remoteAddr":"23.88.38.202","user":"axel","app":"index","method":"GET","url":"/index.php/apps/cms_pico/pico_proxy/doc_num","message":"Exception thrown: Exception","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"26.0.12.2","exception":{"Exception":"Exception","Message":"Class \"Pico\" not found in file '/var/www/nextcloud/apps/cms_pico/lib/Pico.php' line 44","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1062,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Class \"Pico\" not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":578,"function":"include"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/cms_pico/lib/Service/PicoService.php","line":137,"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"file":"/var/www/nextcloud/apps/cms_pico/lib/Service/WebsitesService.php","line":277,"function":"getPage","class":"OCA\\CMSPico\\Service\\PicoService","type":"->"},{"file":"/var/www/nextcloud/apps/cms_pico/lib/Controller/PicoController.php","line":112,"function":"getPage","class":"OCA\\CMSPico\\Service\\WebsitesService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getPage","class":"OCA\\CMSPico\\Controller\\PicoController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1062,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/cms_pico/lib/Pico.php","Line":44},"CustomMessage":"Exception thrown: Exception"}}

Yours sincerely, Axel.

PhrozenByte commented 6 months ago

Looks like that you used a Git source archive or git clone as a basis. See https://github.com/nextcloud/cms_pico?tab=readme-ov-file#manually then, especially the need to run composer install. Please keep in mind that Nextcloud 26+ is unsupported due to known and unresolved issues with Nextcloud 26+ (see other GitHub issues) requiring some manual changes.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: