No Code Attached Yet Information Required bug
avatar uglyeoin
uglyeoin
31 Aug 2022

Steps to reproduce the issue

Set up Office 365 SMTP.
Use PHP8
Use Joomla 4

Expected result

Sends SMTP email

Actual result

Type errors

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
onSuccess https://wwwSyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
onSuccess https://www.********.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:59
onreadystatechange https://www.**************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712
joomla-field-send-test-mail.js:62:21
onSuccess https://www.*********.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:62
onreadystatechange https://www.************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712

Uncaught TypeError: response is undefined
onSuccess https://www.*************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:65
onreadystatechange https://www.*************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712
request https://www.************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:703
sendTestMail https://www.**************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:47
connectedCallback https://www.************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:22
jooml
co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:59
onreadystatechange https://www.************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712
joomla-field-send-test-mail.js:62:21
onSuccess https://www.*************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:62
onreadystatechange https://www.*************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712

Uncaught TypeError: response is undefined
onSuccess https://www.**************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:65
onreadystatechange https://www.***********.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:712
request https://www.*************.co.uk/media/system/js/core.js?17121a112ecec3d656efe5c5f493429c9acf2179:703
sendTestMail https://www.************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:47
connectedCallback https://www.************.co.uk/media/system/js/fields/joomla-field-send-test-mail.js?e91fbd76a9dcdcda2f24c2c7cb637038444a5d23:22
jooml

System information (as much as possible)

systeminfo-2022-08-31T11_17_46+01_00.txt

Additional comments

This information was provided to me by my host. My apologies if this has already been reported or is a false report, I couldn't find it.

Host changed me to PHP7.1 and things are fine.

avatar uglyeoin uglyeoin - open - 31 Aug 2022
avatar uglyeoin uglyeoin - change - 31 Aug 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Aug 2022
avatar Fedik
Fedik - comment - 31 Aug 2022

Sends SMTP email

You meant, "send test mail" button in backend?

By looking your error info: the error probably come from PHP deprecation notice, that breaks JSON response.

Host changed me to PHP7.1 and things are fine.

You still can use php 8, just change error_reporting to minimum, or set it off, or exclude deprecation (in server config)
Looking your config, you have error_reporting = maximum.

avatar Fedik
Fedik - comment - 31 Aug 2022

@uglyeoin Can you please test it on latest joomla 4.2.1?
I checked, and do not have this error on 4.2.1

avatar uglyeoin
uglyeoin - comment - 31 Aug 2022

Thanks @Fedik I still seem to have an issue on PHP 8 and 8.1. Is there something else I can do to troubleshoot this or help provide the information someone else might need?

systeminfo-2022-08-31T15_06_23+01_00.txt
Not sure if this helps. Also the error I see is SMTP Error: Could not connect to SMTP host. Is there a way to get more information than this?

avatar Fedik
Fedik - comment - 31 Aug 2022

Also the error I see is SMTP Error: Could not connect to SMTP host.

So error now is changed?
Hm, not sure what it can be here, if it work on php 7, but not on php 8.

avatar uglyeoin
uglyeoin - comment - 31 Aug 2022

The error is the same as previous but the host gave me further information. I just want to know how to get that information myself.

avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar brianteeman
brianteeman - comment - 27 Feb 2023

Is this still an open issue for you @uglyeoin

avatar Hackwar Hackwar - change - 27 Feb 2023
Labels Added: Information Required
avatar Hackwar Hackwar - labeled - 27 Feb 2023
avatar uglyeoin
uglyeoin - comment - 27 Feb 2023

Is this still an open issue for you @uglyeoin

I'll have to check and come back to you. It won't be today @brianteeman

avatar Quy Quy - change - 7 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-07 02:55:14
Closed_By Quy
avatar Quy
Quy - comment - 7 Mar 2023

Closing for now. If you can reproduce it, this can be reopened. Thanks.

avatar Quy Quy - close - 7 Mar 2023

Add a Comment

Login with GitHub to post a comment