{ "class": "Error", "message": "Call to a member function getAttribute() on null", "code": 0, "file": "/var/www/tool/src/PageParser.php:177", "trace": [ "/var/www/tool/src/BookProvider.php:114", "/var/www/tool/src/BookProvider.php:41", "/var/www/tool/src/BookCreator.php:42", "/var/www/tool/src/Controller/ExportController.php:130", "/var/www/tool/src/Controller/ExportController.php:90", "/var/www/tool/vendor/symfony/http-kernel/HttpKernel.php:157", "/var/www/tool/vendor/symfony/http-kernel/HttpKernel.php:79", "/var/www/tool/vendor/symfony/http-kernel/Kernel.php:196", "/var/www/tool/public/index.php:35" ]
Description
Description
Related Objects
Related Objects
- Mentioned Here
- T272307: Wikisource Export: Not exporting image captions
Event Timeline
Comment Actions
Looks like this happens when an image file doesn't exist:
<figure class="mw-default-size" typeof="mw:Error mw:Image/Thumb" data-mw='{"errors":[{"key":"apierror-filedoesnotexist","message":"This image does not exist."}]}' id="mwBA"><a href="./Special:FilePath/ParthibanKanavu.jpg" id="mwBQ"><span resource="./படிமம்:ParthibanKanavu.jpg" data-width="220" id="mwBg">படிமம்:ParthibanKanavu.jpg</span></a><figcaption id="mwBw"><b id="mwCA">பார்த்திபன் கனவு</b></figcaption></figure>
We can fix this along with T272307: Wikisource Export: Not exporting image captions
Comment Actions
I cannot reproduce this on https://ws-export-test.wmcloud.org/. I tried a number of books which have caused this error on production over the last week or so.
For example:
- https://ws-export-test.wmcloud.org/?format=pdf-a4&lang=eo&page=Floreto_%28Naumov%29
- https://ws-export-test.wmcloud.org/?format=epub-3&lang=de&page=Schach
- https://ws-export-test.wmcloud.org/?format=pdf-a4&lang=de&page=Am_Sonntag
- https://ws-export-test.wmcloud.org/?format=mobi&lang=de&page=Die_Marskan%C3%A4le
- https://ws-export-test.wmcloud.org/?format=epub-3&lang=he&page=%D7%A4%D7%9C%D7%A1%22%D7%A8_7_%D7%91%D7%99%D7%95%D7%9D_%D7%94%D7%9B%D7%99%D7%A4%D7%95%D7%A8%D7%99%D7%9D
- https://ws-export-test.wmcloud.org/?format=pdf-a4&lang=sl&page=Kam_pa_kam%2C_kosovirja%3F
Comment Actions
This fix is now on production, and I cannot reproduce the original bug with the link provided in the description. I'm marking this ticket as Done.