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

Getting 502 Bad gateway due to PHP Errors/Warnings #278

Open
girishpanchal30 opened this issue Jan 7, 2022 · 3 comments
Open

Getting 502 Bad gateway due to PHP Errors/Warnings #278

girishpanchal30 opened this issue Jan 7, 2022 · 3 comments

Comments

@girishpanchal30
Copy link
Contributor

girishpanchal30 commented Jan 7, 2022

Hello,

I'm getting 502 bad gateway errors due to graby library. I have listed PHP warnings/errors below. It is generating multiple-time PHP errors and due to this, we have a memory leaked issue in our server.

[Wed Jan 05 13:33:08.565297 2022] [php7:warn] [pid 12003] [client 70.39.235.45:43632] PHP Warning: DOMDocument::saveXML(): unknown encoding in /vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 380

Feed URL: http://feeds.feedburner.com/motherjones/feed

PHP Fatal error: Uncaught TypeError: Typed property Graby\\Extractor\\ContentExtractor::$title must be string or null, array used in vendor/j0k3r/graby/src/Extractor/ContentExtractor.php:1414\nStack trace:\n#0 vendor/j0k3r/graby/src/Extractor/ContentExtractor.php(1225): Graby\\Extractor\\ContentExtractor->extractJsonLdInformation()\n#1 vendor/j0k3r/graby/src/Extractor/ContentExtractor.php(244): Graby\\Extractor\\ContentExtractor->extractDefinedInformation()\n#2 vendor/j0k3r/graby/src/Graby.php(344): Graby\\Extractor\\ContentExtractor->process()\n#3 vendor/j0k3r/graby/src/Graby.php(174): Graby\\Graby->doFetchContent()\n#4 classes/FeedzyFullPost/Parser/Library/Graby.php(32): Graby\\Graby->fetchContent()\n#5 /var/www/html/wp-content/plugins/feedzy-ful in vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 1414

Feed URL: https://news.google.com/news/rss/search/section/q/pakistan covid/pakistan covid?

[Wed Jan 05 13:37:12.431448 2022] [php7:warn] [pid 12524] [client 92.204.43.65:49440] PHP Warning: array_combine(): Both parameters should have an equal number of elements in vendor/j0k3r/graby/src/SiteConfig/ConfigBuilder.php on line 330

Feed URL: https://www.presseportal.de/rss/polizei/laender/1.rss2, https://www.presseportal.de/rss/polizei/laender/2.rss2, https://www.presseportal.de/rss/dienststelle_110971.rss2

Thanks

girishpanchal30 added a commit to girishpanchal30/graby that referenced this issue Jan 7, 2022
girishpanchal30 added a commit to girishpanchal30/graby that referenced this issue Jan 7, 2022
girishpanchal30 added a commit to girishpanchal30/graby that referenced this issue Jan 7, 2022
girishpanchal30 added a commit to girishpanchal30/graby that referenced this issue Jan 7, 2022
@j0k3r
Copy link
Owner

j0k3r commented Jan 7, 2022

Any chance to share which URL generate the error Typed property Graby\\Extractor\\ContentExtractor::$title must be string or null, array used?
Not the RSS, the url of the content instead.
Thanks!

@girishpanchal30
Copy link
Contributor Author

Sorry to say you but there is no chance to give a specific URL, could you find something from the feed URL?
Thanks

girishpanchal30 added a commit to girishpanchal30/graby that referenced this issue Jan 7, 2022
Fix PHP Error/Warnning j0k3r#278

Move http_header definition before condition j0k3r#278

Move http_header array_merge before condition j0k3r#278

Fix cs fixer & PHPStan error j0k3r#278
@j0k3r
Copy link
Owner

j0k3r commented Jan 7, 2022

could you find something from the feed URL? Thanks

I tried few URLs but I won't check all them.

j0k3r pushed a commit that referenced this issue Jan 7, 2022
Fix PHP Error/Warnning #278

Move http_header definition before condition #278

Move http_header array_merge before condition #278

Fix cs fixer & PHPStan error #278
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

2 participants