[GH-ISSUE #89] Images not mapped correctly in the HTML report #80

Closed
opened 2026-02-25 20:34:36 +03:00 by kerem · 5 comments
Owner

Originally created by @aw-infosec on GitHub (Feb 7, 2021).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/89

OS: Windows 10
Python Version: 3.9.1

I found that images and other resources are not correctly mapped in the HTML report.
For example, when I clicked on an image, it went the following path:
file:///C:/whapa-master/report/.C:/whapa-master/report/Media/WhatsApp%20Images/IMG-20000101-WA0001.jpg

However, the correct path should be:
file:///C:/whapa-master/report/Media/WhatsApp%20Images/IMG-20000101-WA0001.jpg

Any advise or solution to fix this issue?

I also got the following error when I click the "status" option.
NameError: name 'local' is not defined

wa.db connected
msgstore.db connected

Status
Loading data ...
Number of messages: 0
Traceback (most recent call last):
  File "C:\whapa-master\libs\whapa.py", line 2050, in <module>
    info(args.info)
  File "C:\whapa-master\libs\whapa.py", line 1620, in info
    messages(sql_consult, result[0], report_html, local)
NameError: name 'local' is not defined
Originally created by @aw-infosec on GitHub (Feb 7, 2021). Original GitHub issue: https://github.com/B16f00t/whapa/issues/89 OS: Windows 10 Python Version: 3.9.1 I found that images and other resources are not correctly mapped in the HTML report. For example, when I clicked on an image, it went the following path: `file:///C:/whapa-master/report/.C:/whapa-master/report/Media/WhatsApp%20Images/IMG-20000101-WA0001.jpg` However, the correct path should be: `file:///C:/whapa-master/report/Media/WhatsApp%20Images/IMG-20000101-WA0001.jpg` Any advise or solution to fix this issue? I also got the following error when I click the "status" option. _NameError: name 'local' is not defined_ ``` wa.db connected msgstore.db connected Status Loading data ... Number of messages: 0 Traceback (most recent call last): File "C:\whapa-master\libs\whapa.py", line 2050, in <module> info(args.info) File "C:\whapa-master\libs\whapa.py", line 1620, in info messages(sql_consult, result[0], report_html, local) NameError: name 'local' is not defined ```
kerem closed this issue 2026-02-25 20:34:36 +03:00
Author
Owner

@B16f00t commented on GitHub (Feb 7, 2021):

Ok, let me check it but it's easy to solve.

<!-- gh-comment-id:774741540 --> @B16f00t commented on GitHub (Feb 7, 2021): Ok, let me check it but it's easy to solve.
Author
Owner

@Aminu0234 commented on GitHub (Feb 8, 2021):

Nice

<!-- gh-comment-id:775112017 --> @Aminu0234 commented on GitHub (Feb 8, 2021): Nice
Author
Owner

@B16f00t commented on GitHub (Feb 19, 2021):

New version 1.40 fix the issue. Thanks

<!-- gh-comment-id:781950166 --> @B16f00t commented on GitHub (Feb 19, 2021): New version 1.40 fix the issue. Thanks
Author
Owner

@nadavcoh commented on GitHub (Feb 27, 2021):

Hi! Great project, thank you for all the work you put into this.
This bug is not resolved in current master, href now point to ".g"
I was able to circumvent by reverting to 1.3 and removing all instances of ".C:/whapa-master/report/" by batch find & replace (Notepad++)

<!-- gh-comment-id:787051017 --> @nadavcoh commented on GitHub (Feb 27, 2021): Hi! Great project, thank you for all the work you put into this. This bug is not resolved in current master, href now point to ".g" I was able to circumvent by reverting to 1.3 and removing all instances of ".C:/whapa-master/report/" by batch find & replace (Notepad++)
Author
Owner

@B16f00t commented on GitHub (Feb 28, 2021):

Pls. give a try the new version 1.43

<!-- gh-comment-id:787459208 --> @B16f00t commented on GitHub (Feb 28, 2021): Pls. give a try the new version 1.43
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#80
No description provided.