Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Unable to view certain emails Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PianoMaster88
Newbie
Newbie


Joined: 19 December 2025
Location: United States
Online Status: Offline
Posts: 1
Posted: 19 December 2025 at 2:48am | IP Logged Quote PianoMaster88

Hi,

I have been using Webmail Pro PHP for years and have loved it!

I recently noticed though that certain emails were not loading in the interface but loaded fine through IMAP on my phone. I was running 9.8.2, so I upgraded to the latest version, 9.8.3.build9-build-o3. Unfortunately this did not fix the issue, so I thought I would reach out and see if anyone might be able to help me with this further.

I am a software engineer, so I took a brief look at the error in question. It's a JavaScript error occurring when attempting to load the email. It appears to be failing when attempting to parse the HTML of the email, specifically when it's trying to call the split function on an undefined variable.

From the devtools console:

Code:

app.min.js?98393:2  Uncaught TypeError: Cannot read properties of undefined (reading 'split')
    at Object.htmlStartsWithBlockquote (app.min.js?98393:2:962337)
    at D.setMessageBody (6010.app.9437dbe2508acd30ba86.min.js:1:48487)
    at D.onCurrentMessageSubscribe (6010.app.9437dbe2508acd30ba86.min.js:1:46747)
    at t.notifySubscribers (app.min.js?98393:2:1440141)
    at t.xa (app.min.js?98393:2:1442492)
    at v.t [as completelyFilled] (app.min.js?98393:2:1442231)
    at WzKm.v.parse (8611.app.7a8b1395450bbde94fbf.min.js:1:146912)
    at V8Bf.S.parseAndCacheMessage (8611.app.7a8b1395450bbde94fbf.min.js:1:116557)
    at V8Bf.S.onGetMessageResponse (8611.app.7a8b1395450bbde94fbf.min.js:1:128847)
    at 8611.app.7a8b1395450bbde94fbf.min.js:1:58188
    at q.executeResponseHandler (app.min.js?98393:2:121545)
    at q.done (app.min.js?98393:2:120608)
    at ht (app.min.js?98393:2:1185122)
    at Object.<anonymous> (app.min.js?98393:2:1185554)
    at Object.success (app.min.js?98393:2:1176713)
    at a (app.min.js?98393:2:997891)


The textBody() function returns the below - so it is able to get the contents of the email earlier on in the code, but it fails on htmlStartsWithBlockquote(), as the variable it passes in is undefined. Somewhere between those two points something is not working quite right.

Code:

"<!--?xml version=\"1.0\" encoding=\"utf-8\"?--><div>\n<div dir=\"auto\" style=\"font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size: 12pt;color: rgb(0, 0, 0)\">\n<a rel=\"external\" href=\"https://giamusic.com/resource/ding-dong-merrily-on-high-organ-sheet-music-digital-download-e311961\" target=\"_blank\" tabindex=\"-1\" class=\"external\">https://google.com</a></div>\n<div data-applydefaultfontstyles=\"true\" style=\"font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size: 12pt\" dir=\"auto\">\n<div dir=\"auto\" style=\"font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size: 12pt\">\n<br>\n</div>\n</div>\n<div style=\"font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size: 12pt\" dir=\"auto\">\n<div dir=\"auto\" style=\"font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size: 12pt\">\n- Sent from my phone, please excuse any typos.</div>\n</div>\n</div>"


This was a simple email I sent to myself from one of my other emails of a link (and it also contained my email signature from outlook - I sent it via my phone). I'm not sure if it's something about how it was sent, or what exactly is causing the problem. I did not dig much further to narrow it down exactly, but I'm happy to help with any debugging if needed - I can provide email headers, or even a copy of the email if that would be helpful. Let me know if I need to create a support ticket or anything too or if anyone has any ideas/thoughts.

Thanks!
Back to Top View PianoMaster88's Profile Search for other posts by PianoMaster88
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6172
Posted: 19 December 2025 at 2:54am | IP Logged Quote Igor

Hello,

We've had several reports of this issue by now - problem is, no matter what we try, we're not able to reproduce the issue on our installations. To investigate this further, we would need an account the issue can be reproduced with, as well as SSH/FTP access to the installation location. If you can share those, please open a ticket at our HelpDesk. Thanks!

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide