[Content Server] Downloaded Books page error when using Custom Book List

Bug #2073972 reported by Nguyen Quoc Khanh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Existing conditions:
Calibre latest version on Windows 10
Book List mode: custom
Thế following error pops up when accessing the bookmarked downloaded books page (http://url/#library_id=Library&panel=local_books)

[code]
Lỗi: Lỗi chưa được khai báo
Uncaught TypeError: Cannot read properties of undefined (reading 'series')
Error at http://url/:34860:32
Traceback (most recent call last):
    at String.show_recent_stage2 (http://url/:54523:13)
    at create_books_list (http://url/:54509:17)
    at apply_view_mode (http://url/:54481:13)
    at render_books (http://url/:54463:25)
    at render_book (http://url/:54449:35)
    at Object.create_item [as render_book] (http://url/:35268:25)
    at render_template_text (http://url/:35212:24)
    at render_line (http://url/:35182:24)
    at render_part (http://url/:35144:31)
    at render_field (http://url/:34860:32)
TypeError: Cannot read properties of undefined (reading 'series')

[/code]

Please note that if the book list view is set to Cover Grid (default), it works just fine.

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

And if the Downloaded Books page is accessed from the Home page, it works.

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

And here is the Book List template

<i>{series}</i> #{series_index}
<b>{title}</b>|||{rating}
Tác giả: {authors}
Dịch giả: {#translator}
Xuất bản: {publisher} ({pubdate})
Số trang: {#c_pages}

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

Thank you, Kovid for your response, but 7.16 doesn't fix it yet

Lỗi: Lỗi chưa được khai báo
Uncaught TypeError: Cannot read properties of undefined (reading 'series')
Error at http://192.168.50.100:55055/:34860:32
Traceback (most recent call last):
    at String.show_recent_stage2 (http://192.168.50.100:55055/:54523:13)
    at create_books_list (http://192.168.50.100:55055/:54509:17)
    at apply_view_mode (http://192.168.50.100:55055/:54481:13)
    at render_books (http://192.168.50.100:55055/:54463:25)
    at render_book (http://192.168.50.100:55055/:54449:35)
    at Object.create_item [as render_book] (http://192.168.50.100:55055/:35268:25)
    at render_template_text (http://192.168.50.100:55055/:35212:24)
    at render_line (http://192.168.50.100:55055/:35182:24)
    at render_part (http://192.168.50.100:55055/:35144:31)
    at render_field (http://192.168.50.100:55055/:34860:32)
TypeError: Cannot read properties of undefined (reading 'series')

Revision history for this message
Kovid Goyal (kovid) wrote :

Hmm, doesnt reproduce for me with your template and I cannot see where
else there could be an issue.

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

I think it doesn't affect desktop browsers (I see no issues with Microsoft Edge), but on Android it does. I'm on the latest Android 15 beta (Google Pixel 7 pro), testing with Firefox, Chrome, Fully Kiosk Browser.

And one more thing. Now, save to Home Screen from Chrome doesn't hide the address bar anymore. I'm not sure, maybe it's Chrome. Firefox never hides it anyway.

Revision history for this message
Kovid Goyal (kovid) wrote :

Doesnt reproduce for me with chrome on android either. Did you do a hard
refresh to ensure the new code is loaded?

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

I feel bad annoying you too much.

Here is the screen record. You can see even when it loads ok, it would pops up error when I force it to refresh (pull to refresh or tap to refresh).

With Fully Kiosk Browser, it would simply popup the error.

For now, my resolution is to go with Cover Grid.

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

I'm not disbelieving it happens to you but without a way to reproduce I
cant really fix it.

Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

Maybe it's not worth it for now.

Anyway, FYI, I tested with several other custom templates, the error pops up complaining about the FIRST FIELD being set, doesn't matter it being {title} or {authors} or {whatever}, and doesn't matter it being placed after something at the beginning. Just the first field.

Revision history for this message
Kovid Goyal (kovid) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.