Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Class \"Pico\" not found #246

Closed
axelos opened this issue Mar 24, 2024 · 2 comments
Closed

"Class \"Pico\" not found #246

axelos opened this issue Mar 24, 2024 · 2 comments

Comments

@axelos
Copy link

axelos commented Mar 24, 2024

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"}}

  • Version Nextcloud : 26.0.12
  • Version PHP : 8.1.27

Yours sincerely, Axel.

@PhrozenByte
Copy link
Collaborator

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.

Copy link

github-actions bot commented Apr 1, 2024

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! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants