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

How to solve these error messages #185

Closed
BobWs opened this issue Mar 24, 2020 · 9 comments
Closed

How to solve these error messages #185

BobWs opened this issue Mar 24, 2020 · 9 comments

Comments

@BobWs
Copy link

BobWs commented Mar 24, 2020

Hi,

I've just installed wallabag/docker on my Synology NAS and all went well except for a few error messages I'm getting in the log file:

2020/03/24 10:46:35 [error] 270#270: *3 FastCGI sent in stderr: "PHP message: PHP Warning:
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in
/var/www/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636PHP
message: PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean
to use "continue 2"? in
/var/www/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665" while
reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /login
HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my.domain.com"

[WARNING]: Found both group and host with same name: localhost

Any idea how to solve them?

Thanks!

@hobbesjaap
Copy link

Hi,

I just came here to report exactly the same issue. This results in wallabag running just fine (I think), but the web interface isn't getting any images/resources in, so the page looks devoid of anything other than bare html. Not a pretty/useful look... any help that you can give would be most appreciated, I put all the Docker environment that I needed to, I think:

PATH
LD_PRELOAD (these two came from the standard Docker image)

SYMFONY__ENV__DATABASE__HOST
SYMFONY__ENV__DATABASE__CHARSET
SYMFONY__ENV__DATABASE__PASSWORD
SYMFONY__ENV__DATABASE__PORT
SYMFONY__ENV__DATABASE__USER
SYMFONY__ENV__DATABASE__NAME
SYMFONY__ENV__DATABASE__DRIVER
MYSQL__ROOT__PASSWORD

Are there are variables that need to be set? When I look at my MySQL database (MariaDB10), I see all wallabag tables are properly in there.

Because of my setup, Wallabag is running on a custom port (9897 instead of 80). Would that make a difference?

@hobbesjaap
Copy link

hobbesjaap commented Mar 29, 2020

I fixed the error! (At least, the error I had, which I'm guessing is similar).

The missing environment variable was SYMFONY__ENV__DOMAIN__NAME which had to be set to my Synology's Wallabag URL + Port number, so http://synology.local:38291/ for example.

Before I did that, all URL requests for images etc were going to your-domain-name-here.com

Hope this helps!

@BobWs
Copy link
Author

BobWs commented Mar 29, 2020

Thanks for sharing but it didn't solve the error for me. I'm using wallabag with the builtin reverse-proxy server on my Synology NAS.

@rYR79435
Copy link

rYR79435 commented Mar 30, 2020

Is the log you posted the full log?
If not, this might be a duplicate of #182.

See #185 (comment)

@BobWs
Copy link
Author

BobWs commented Mar 30, 2020

To my knowledge it is not the same problem. My wallabag is running fine except for the strange errors I have posted above.

@hobbesjaap
Copy link

I do apologise, the errors haven't gone away for me either. Apparently it's a PHP7.3 issue and "continue" should perhaps be recoded to "continue2" though they call functions in a different way? (Not a programmer, so could be wrong)

Some discussion on a similar issue in Wordpress was listed here: https://wordpress.org/support/topic/warning-continue-targeting-switch-is-equivalent-to-break/

@BobWs
Copy link
Author

BobWs commented Apr 1, 2020

Lets hope it will be fixed soon! I don't know if this is being monitored by the developer(s)

@j0k3r
Copy link
Member

j0k3r commented Apr 7, 2020

These errors will be gone with the 2.4.0 version

@andrewchenshx

This comment was marked as off-topic.

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

No branches or pull requests

5 participants