500 error due to function name conflict with reserved term #6

Closed
opened 2019-10-23 03:04:36 +00:00 by Ghost · 11 comments

Hi,

I tried to use OCCWeb and was getting a 500 error. I tracked it down to the use of list in OCCController.php. PHP reserves list so the function can't be named that.

I cloned master and made a branch with the necessary changes. I'm happy to file a PR if I can have write privileges. Otherwise you just need to rename the variable in OCCController.php and routes.php and it'll start working again.

I absolutely love what you've done here!

Hi, I tried to use OCCWeb and was getting a 500 error. I tracked it down to the use of `list` in OCCController.php. PHP reserves list so the function can't be named that. I cloned master and made a branch with the necessary changes. I'm happy to file a PR if I can have write privileges. Otherwise you just need to rename the variable in OCCController.php and routes.php and it'll start working again. I absolutely love what you've done here!
Author

I tried editing the files suggested to eliminate the "list" function.

Still doesn't work.

Any suggestions?

Thanks

I tried editing the files suggested to eliminate the "list" function. Still doesn't work. Any suggestions? Thanks
Owner

Which Nextcloud version are you using? Can you please share the logs?

Which Nextcloud version are you using? Can you please share the logs?
Author

I am using NC 18.0.0.

I have uploaded the php and nginx error logs. Is that all that you need?

Thanks

I am using NC 18.0.0. I have uploaded the php and nginx error logs. Is that all that you need? Thanks
Owner

Where is the link to the uploaded logs?

Where is the link to the uploaded logs?
Author

Ahhhh - newbie here. I dropped the logs on the box that says "drop files here".

What is the protocol for files?

https://www.dropbox.com/s/3ju7fhm3k84wizc/error_nextcloud.log?dl=0

https://www.dropbox.com/s/0b7rrkdpjhz0oxg/error_nginx.log?dl=0

https://www.dropbox.com/s/1iw034u7f2bsqv1/error_php.log?dl=0

Let know if this works....

Ahhhh - newbie here. I dropped the logs on the box that says "drop files here". What is the protocol for files? https://www.dropbox.com/s/3ju7fhm3k84wizc/error_nextcloud.log?dl=0 https://www.dropbox.com/s/0b7rrkdpjhz0oxg/error_nginx.log?dl=0 https://www.dropbox.com/s/1iw034u7f2bsqv1/error_php.log?dl=0 Let know if this works....
Owner

OK... So here is the error message:

PHP message: PHP Fatal 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) in /config/www/nextcloud/apps/occweb/lib/Controller/OccOutput.php on line 14

I'll take a look..

OK... So here is the error message: ``` PHP message: PHP Fatal 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) in /config/www/nextcloud/apps/occweb/lib/Controller/OccOutput.php on line 14 ``` I'll take a look..
Author

Really appreciate this.

I love this app and have been using it for a while.

Thanks

Really appreciate this. I love this app and have been using it for a while. Thanks
adphi referenced this issue from a commit 2020-01-29 21:03:53 +00:00
adphi closed this issue 2020-01-29 21:03:53 +00:00
adphi referenced this issue from a commit 2020-01-29 21:17:43 +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.
adphi reopened this issue 2020-01-29 22:00:37 +00:00
Author

Well got a little further....

"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: 87SgGHzQ4Fzbln0NaLt7

Although I am not sure I "installed correctly.
Not too familiar with installing other than through the store.
Let me work on it .....

Well got a little further.... "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: 87SgGHzQ4Fzbln0NaLt7 Although I am not sure I "installed correctly. Not too familiar with installing other than through the store. Let me work on it .....
Author

This was the error log for what its worth:

https://www.dropbox.com/s/0ylu6umvgl49xxu/error_nginx2.log?dl=0

This was the error log for what its worth: https://www.dropbox.com/s/0ylu6umvgl49xxu/error_nginx2.log?dl=0
Author

Confirm it is now working! Updated to latest version.

Kudos to adphi for staying on this.

Thanks

Confirm it is now working! Updated to latest version. Kudos to adphi for staying on this. Thanks
adphi closed this issue 2020-06-20 02:03:57 +00:00
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#6
No description provided.