Error: Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods #11

Closed
opened 2020-01-30 15:21:35 +00:00 by Ghost · 17 comments

Not sure since when but at least since last update I cannot use OCC web any more. Still on 17.0.2

Log says:

{"reqId":"7QfQXYlHsMBYyOHKxajt","level":3,"time":"2020-01-30T15:17:05+00:00","remoteAddr":"80.149.176.5","user":"xxxxxx","app":"PHP","method":"GET","url":"/index.php/apps/occweb/","message":"Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at /nextcloudpath/apps/occweb/lib/Controller/OccOutput.php#14","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"17.0.2.1","id":"5e32f398bc3f7"}

Not sure since when but at least since last update I cannot use OCC web any more. Still on 17.0.2 Log says: {"reqId":"7QfQXYlHsMBYyOHKxajt","level":3,"time":"2020-01-30T15:17:05+00:00","remoteAddr":"80.149.176.5","user":"xxxxxx","app":"PHP","method":"GET","url":"/index.php/apps/occweb/","message":"Class OCA\\OCCWeb\\Controller\\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\\Component\\Console\\Output\\ConsoleOutputInterface::section) at /nextcloudpath/apps/occweb/lib/Controller/OccOutput.php#14","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"17.0.2.1","id":"5e32f398bc3f7"}
Owner

I am working on it. What php version are you using?

I am working on it. What php version are you using?
Author

Great ...

php 7.2: not working (white screen) see error message above in log

php 7.3: not working (white screen) see error message above in log

php 7.4: "This version of Nextcloud is not compatible with > PHP 7.3."

now on Nextcloud 17.0.3

Great ... php 7.2: not working (white screen) see error message above in log<br> php 7.3: not working (white screen) see error message above in log<br> php 7.4: "This version of Nextcloud is not compatible with > PHP 7.3." now on Nextcloud 17.0.3
adphi referenced this issue from a commit 2020-01-30 21:04:31 +00:00
adphi closed this issue 2020-01-30 21:04:31 +00:00
adphi reopened this issue 2020-01-30 21:09:59 +00:00
Owner

Please try v0.0.7rc1 pre-release and tell me if it fix the issue.

Please try [v0.0.7rc1](https://git.adphi.net/Adphi/OCCWeb/releases) [pre-release](https://git.adphi.net/attachments/5c84e595-afc0-4b19-a429-d0edba87ba28) and tell me if it fix the issue.
Author

I did ... unless you changed something again ...

Error: Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at pathtonextcloud/nextcloud/apps/occweb/lib/Controller/OccOutput.php#14

Sorry ...

I'll draw another copy again ...

I did ... unless you changed something again ... Error: Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at pathtonextcloud/nextcloud/apps/occweb/lib/Controller/OccOutput.php#14 Sorry ... I'll draw another copy again ...
Owner

No it's not the same.

No it's not the same.
Author

I tried again ... no change.

It would make things easier if 0.0.7 was always the same. Is it like that? I do not care if it gets 0.0.99 but it is not a good idea to publish different software with the same index. Maybe I had chosen a bad time to draw a copy but I had just seen that you closed the issue, downloaded the files and moved them to my nextcloud. It said 0.0.7.

Anyways - I did it again and had the same result ... sorry

I tried again ... no change. It would make things easier if 0.0.7 was always the same. Is it like that? I do not care if it gets 0.0.99 but it is not a good idea to publish different software with the same index. Maybe I had chosen a bad time to draw a copy but I had just seen that you closed the issue, downloaded the files and moved them to my nextcloud. It said 0.0.7. Anyways - I did it again and had the same result ... sorry
Owner

I cannot reproduce it.

The message cannot be the same, as the code changed and at least the line number cannot be correct.

What the message said:

  • the method ConsoleOutputInterface::section should be implemented, it is done.
  • a comment on top of the class was saying that the class contains an abstract method, it has been removed, so done ...
I cannot reproduce it. The message cannot be the same, as the code changed and at least the line number cannot be correct. What the message said: - the method `ConsoleOutputInterface::section` should be implemented, it is done. - a comment on top of the class was saying that the class contains an abstract method, it has been removed, so done ...
Author

Don't know why that was different yesterday but:

I downloaded the whole package again, deleted what was on the server and moved the new package there:

now I get an internal server error (nicely formatted in Nextcloud style)

and in the log:
[index] Error: OCP\AppFramework\QueryException: Could not resolve OCA\OCCWeb\Controller\OccController! Class OCA\OCCWeb\Controller\OccController does not exist at <>

  1. /nextcloudpath/lib/private/AppFramework/Utility/SimpleContainer.php line 114
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\OCCWeb\Controller\OccController")
  2. /nextcloudpath/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
    OC\AppFramework\Utility\SimpleContainer->query("OCA\OCCWeb\Controller\OccController")
  3. /nextcloudpath/lib/private/AppFramework/DependencyInjection/DIContainer.php line 385
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\OCCWeb\Controller\OccController")
  4. /nextcloudpath/lib/private/AppFramework/App.php line 113
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\OCCWeb\Controller\OccController")
  5. /nextcloudpath/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\OCCWeb\Controller\OccController", "index", OC\AppFramework\ ... {}, {_route: "occweb.occ.index"})
  6. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "occweb.occ.index"})
  7. /nextcloudpath/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "occweb.occ.index"})
  8. /nextcloudpath/lib/base.php line 997
    OC\Route\Router->match("/apps/occweb/")
  9. /nextcloudpath/index.php line 42
    OC::handleRequest()

GET /index.php/apps/occweb/
from 37.201.6.5 by username at 2020-01-31T05:46:14+00:00

to make sure it is not the php version I also checked 7.2 and 7.3. The result is the same

Don't know why that was different yesterday but: I downloaded the whole package again, deleted what was on the server and moved the new package there: now I get an internal server error (nicely formatted in Nextcloud style) and in the log: [index] Error: OCP\AppFramework\QueryException: Could not resolve OCA\OCCWeb\Controller\OccController! Class OCA\OCCWeb\Controller\OccController does not exist at <<closure>> 0. /nextcloudpath/lib/private/AppFramework/Utility/SimpleContainer.php line 114 OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\OCCWeb\\Controller\\OccController") 1. /nextcloudpath/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414 OC\AppFramework\Utility\SimpleContainer->query("OCA\\OCCWeb\\Controller\\OccController") 2. /nextcloudpath/lib/private/AppFramework/DependencyInjection/DIContainer.php line 385 OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\OCCWeb\\Controller\\OccController") 3. /nextcloudpath/lib/private/AppFramework/App.php line 113 OC\AppFramework\DependencyInjection\DIContainer->query("OCA\\OCCWeb\\Controller\\OccController") 4. /nextcloudpath/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\\OCCWeb\\Controller\\OccController", "index", OC\AppFramework\ ... {}, {_route: "occweb.occ.index"}) 5. <<closure>> OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "occweb.occ.index"}) 6. /nextcloudpath/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "occweb.occ.index"}) 7. /nextcloudpath/lib/base.php line 997 OC\Route\Router->match("/apps/occweb/") 8. /nextcloudpath/index.php line 42 OC::handleRequest() GET /index.php/apps/occweb/ from 37.201.6.5 by username at 2020-01-31T05:46:14+00:00 to make sure it is not the php version I also checked 7.2 and 7.3. The result is the same
Author

I tried your latest as well.

Got the same message.

Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: 192.168.1.29
Request ID: tDLuocVjt0m0EXHou3l9

I tried your latest as well. Got the same message. Internal Server Error The server was unable to complete your request. If this happens again, please send the technical details below to the server administrator. More details can be found in the server log. Technical details Remote Address: 192.168.1.29 Request ID: tDLuocVjt0m0EXHou3l9
Author

0.0.6 worked fine, but 0.0.7 is outputting Internal Server Error

{"reqId":"xxxxx","level":3,"time":"2020-02-01T15:06:00+00:00","remoteAddr":"xxxxxxxx","user":"xxxxx","app":"index","method":"GET","url":"/apps/occweb/","message":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\OCCWeb\\Controller\\OccController! Class OCA\\OCCWeb\\Controller\\OccController does not exist","Code":0,"Trace":[{"file":"/var/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":115,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":415,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":386,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/App.php","line":112,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OCCWeb\\Controller\\OccController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"occweb.occ.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"occweb.occ.index"}]},{"file":"/var/www/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"occweb.occ.index"}]},{"file":"/var/www/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/occweb/"]},{"file":"/var/www/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/lib/private/AppFramework/Utility/SimpleContainer.php","Line":106,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","version":"18.0.0.10"}

https://imgur.com/a/XPpZ8uy

0.0.6 worked fine, but 0.0.7 is outputting Internal Server Error ``` {"reqId":"xxxxx","level":3,"time":"2020-02-01T15:06:00+00:00","remoteAddr":"xxxxxxxx","user":"xxxxx","app":"index","method":"GET","url":"/apps/occweb/","message":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\OCCWeb\\Controller\\OccController! Class OCA\\OCCWeb\\Controller\\OccController does not exist","Code":0,"Trace":[{"file":"/var/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":115,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":415,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":386,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/App.php","line":112,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\OCCWeb\\Controller\\OccController"]},{"file":"/var/www/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OCCWeb\\Controller\\OccController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"occweb.occ.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"occweb.occ.index"}]},{"file":"/var/www/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"occweb.occ.index"}]},{"file":"/var/www/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/occweb/"]},{"file":"/var/www/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/lib/private/AppFramework/Utility/SimpleContainer.php","Line":106,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","version":"18.0.0.10"} ``` https://imgur.com/a/XPpZ8uy
Owner

@heinral I am working on understanding this issue (#13).

I just removed the failing release.

Uninstall occweb from the nextcloud apps settings and reinstall v0.0.6.

@heinral I am working on understanding this issue (#13). I just removed the failing release. Uninstall occweb from the nextcloud apps settings and reinstall v0.0.6.
Author

I am on 0.0.6 and am getting this error message:
[PHP] Error: Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at /home/gqatawtz/public_html/apps/occweb/lib/Controller/OccOutput.php#14

GET /index.php/apps/occweb/
from 92.13.173.86 by rich at 2020-02-01T07:47:28+00:00
I can't upgrade to pre-release. I am on a hosted server and cannot access a terminal.
Thanks

I am on 0.0.6 and am getting this error message: [PHP] Error: Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at /home/gqatawtz/public_html/apps/occweb/lib/Controller/OccOutput.php#14 GET /index.php/apps/occweb/ from 92.13.173.86 by rich at 2020-02-01T07:47:28+00:00 I can't upgrade to pre-release. I am on a hosted server and cannot access a terminal. Thanks
Author

Weirdly after rebooting the VPS (Time4VPS - Storage VPS, OpenVZ6 Linux kernel version – 2.6.32.x, if that matters), the version 0.0.6 stopped working and outputting is currently unable to handle this request. HTTP ERROR 500

Log is showing Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at /var/www/apps/occweb/lib/Controller/OccOutput.php#14.

PHP 7.3.14 (cli) (built: Jan 21 2020 09:59:50) ( NTS )

Server version: 10.4.12-MariaDB MariaDB Server

CentOS Linux release 7.7.1908 (Core)

kernel 2.6.32-042stab141.3

Nextcloud 17.0.3 / Default encryption module + End-to-End Encryption app
OCC 0.0.6

Also, thank you adphi for taking your time to look into it, I really appreciate your help :)

Weirdly after rebooting the VPS (Time4VPS - Storage VPS, OpenVZ6 Linux kernel version – 2.6.32.x, if that matters), the version 0.0.6 stopped working and outputting `is currently unable to handle this request. HTTP ERROR 500` Log is showing `Class OCA\OCCWeb\Controller\OccOutput contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\ConsoleOutputInterface::section) at /var/www/apps/occweb/lib/Controller/OccOutput.php#14.` PHP 7.3.14 (cli) (built: Jan 21 2020 09:59:50) ( NTS ) Server version: 10.4.12-MariaDB MariaDB Server CentOS Linux release 7.7.1908 (Core) kernel 2.6.32-042stab141.3 Nextcloud 17.0.3 / Default encryption module + End-to-End Encryption app OCC 0.0.6 Also, thank you adphi for taking your time to look into it, I really appreciate your help :)
Owner

Everything should be fixed by v0.0.7

Everything should be fixed by [v0.0.7](https://git.adphi.net/adphi/occweb/releases)
adphi closed this issue 2020-02-02 13:31:42 +00:00
Author

Yes ... working - both with PHP 7.2 and PHP 7.3

THANKS a lot!

SCNR: don't want to bug you, but why on earth did you not just call that new version v0.0.8 - this way you will surely find yourself sometime in discussions like old 0.0.7 and new 0.0.7 ...

Yes ... working - both with PHP 7.2 and PHP 7.3 THANKS a lot! SCNR: don't want to bug you, but why on earth did you not just call that new version v0.0.8 - this way you will surely find yourself sometime in discussions like old 0.0.7 and new 0.0.7 ...
Author

Confirmed, updated and it's working!

Thank you Adphi! <3

Confirmed, updated and it's working! Thank you Adphi! <3
Author

Confirmed and working. Huge thanks Adphi. It is a brilliant app.

Confirmed and working. Huge thanks Adphi. It is a brilliant app.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: adphi/occweb#11
No description provided.