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

Warning: Attempt to read property "nodeValue" on null #5

Open
harmtemolder opened this issue Jan 15, 2025 · 0 comments
Open

Warning: Attempt to read property "nodeValue" on null #5

harmtemolder opened this issue Jan 15, 2025 · 0 comments

Comments

@harmtemolder
Copy link

Copied from wallabag/wallabag#7477:

Hello

This article seems to import fine, but when I do an ePub export I get the error “502 Bad Gateway”. > This doesn’t seem to happen elsewhere, even for articles from the same site.

Is this something you can help with?

Many thanks

Tom

https://www.theguardian.com/books/article/2024/may/09/if-you-live-to-100-you-might-as-well-be-happy-what-poverty-jail-and-war-have-taught-author-rhee-kun-hoo?CMP=Share_iOSApp_Other

This is the relevant log (running on Docker):

2025/01/14 07:10:28 [error] 51#51: *2038 FastCGI sent in stderr: "PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core/EPub.php on line 904PHP message: PHP Warning:  Attempt to read property "nodeValue" on null in /var/www/wallabag/vendor/wallabag/phpepub/src/PHPePub/Core
2025/01/14 07:10:28 [error] 51#51: *2038 upstream sent too big header while reading response header from upstream, client: REDACTED, server: _, request: "GET /export/3609.epub HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED", referrer: "https://REDACTED/view/3609"
REDACTED - - [14/Jan/2025:07:10:28 +0000] "GET /export/3609.epub HTTP/1.1" 502 150 "https://REDACTED/view/3609" "REDACTED"

On a locally running clone of master, this is line 904 of EPub.php:

$source = $img->attributes->getNamedItem("src")->nodeValue;

So something to do with an image and its src attribute…

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

1 participant