• Resolved pixzilla

    (@pixzilla)


    Hi,
    if iThemes Security wants to send the 2FA code, users will receive an error message when logging in. I then send this by email:

    Fehler-Details
    
    ==============
    
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 183 der Datei /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php verursacht. Fehlermeldung: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /homepages/20/d915499249/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php:183
    
    Stack trace:
    
    #0 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(183): array_map(Array, 'info@uniqueexpr...')
    
    #1 [internal function]: PostmanLogFields->from_header_sanitize('info@uniqueexpr...')
    
    #2 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(99): call_user_func(Array, 'info@uniqueexpr...')
    
    #3 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(74): PostmanLogFields->sanitize('from_header', 'info@uniqueexpr...')
    
    #4 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php(184): PostmanLogFields->update(629, 'from_header', 'info@uniqueexpr...')
    
    #5 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php(108): PostmanEmailLogService->writeToEmailLog(Object(PostmanEmailLog))
    
    #6 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php(80): PostmanEmailLogService->writeSuccessLog(Object(PostmanEmailLog), Object(PostmanMessage), '=3D"100%" style...', Object(PostmanSmtpModuleTransport))
    
    #7 /homepages/20/wb/htdocs/uniqueexpression/wp-includes/class-wp-hook.php(308): PostmanEmailLogService->write_success_log(Object(PostmanEmailLog), Object(PostmanMessage), '=3D"100%" style...', Object(PostmanSmtpModuleTransport))
    
    #8 /homepages/20/wb/htdocs/uniqueexpression/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    
    #9 /homepages/20/wb/htdocs/uniqueexpression/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #10 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(253): do_action('post_smtp_on_su...', Object(PostmanEmailLog), Object(PostmanMessage), '=3D"100%" style...', Object(PostmanSmtpModuleTransport))
    
    #11 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(60): PostmanWpMail->sendMessage(Object(PostmanMessage), Object(PostmanEmailLog))
    
    #12 /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php(121): PostmanWpMail->send(Array, '[www.uniqueexpr...', '\n

    Help please ??

    BR
    Rolf

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla Hi,

    I hope you are doing well.

    Please share Post SMTP diagnostic test report.

    Thanks

    Thread Starter pixzilla

    (@pixzilla)

    Mailer: postsmtp
    HostName: uniqueexpression-coaching.de
    cURL Version: 7.64.0
    OpenSSL Version: OpenSSL/1.1.1n
    OS: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
    PHP: Linux 8.1.13 C.UTF-8
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=No, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
    WordPress: 6.1.1 de_DE UTF-8
    WordPress Theme: Avada
    WordPress Plugins: Post SMTP, Advanced Database Cleaner, AntiVirus, Autoptimize, Blackhole for Bad Bots, BBQ Firewall, Borlabs Cookie – Cookie Opt-in, CSS Hero, Duplicate Page, Duplicator Pro, Duplicator Pro, Embed Google Fonts, Enable Media Replace, eRecht24 legal texts for WordPress, Avada Builder, Avada Core, Site Kit by Google, iThemes Security Pro, Email protector, Really Simple SSL Pro, Really Simple SSL, Redirect 404 Error Page to Homepage or Custom Page, Redirection, ShortPixel Image Optimizer, Yoast SEO, WP Statistics, WP Super Cache, WPS Hide Login
    WordPress wp_mail Owner: /homepages/20/wb/htdocs/uniqueexpression/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
    WordPress wp_mail Filter(s): PostsmtpMailer->get_mail_args
    WordPress phpmailer_init Action(s): PostsmtpMailer->phpmailer_smtp_init
    Postman: 2.3
    Postman Sender Domain (Envelope|Message): uniqueexpression-coaching.de | uniqueexpression-coaching.de
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Active Transport: SMTP (smtp:tls:plain://smtp.ionos.de:587)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 301 | 1

    • This reply was modified 1 year, 10 months ago by pixzilla.
    Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla let me know emails are also stopped working after this error or website emails are working fine.

    Thread Starter pixzilla

    (@pixzilla)

    Everything works for logged in users. A test email can also be sent.
    The only error is when logging in.

    It was working fine before yesterday’s update.
    As soon as I deactivate the plugin everything is fine when logging in.

    Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla

    Ok, we are looking into this in the meantime please share the error email log screenshot.

    Thanks

    Thread Starter pixzilla

    (@pixzilla)

    https://freeimage.host/i/HAl0tnf

    You can see that the user’s email address was not pulled to send the email. Apparently that’s why the error occurs.

    Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla let me look into it and get back to you shortly.

    I am also getting this error:

    AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in?/var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php:183\nStack trace:\n#0?/var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(183): array_map()\n#1 [internal function]: PostmanLogFields->from_header_sanitize()\n#2?/var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(99): call_user_func()\n#3?/var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php(74): PostmanLogFields->sanitize()\n#4?/var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php(184): PostmanLogFields->update()\n#5 /var/www/vhosts/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService….’

    Rport:

    Mailer: phpmailer
    HostName: alumnionlineservices.com
    cURL Version: 7.29.0
    OpenSSL Version: NSS/3.53.1
    OS: Linux alumnionlineservices.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
    PHP: Linux 8.0.26 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
    WordPress: 6.1.1 en_US UTF-8
    WordPress Theme: NEW AWS child of twentytwenty
    WordPress Plugins: AWS Web Accessibility Single Page Scanner, Broken Link Checker, Change wp-admin login, Classic Editor, Contact Form 7, Cookie Notice & Compliance for GDPR / CCPA, Disable XML-RPC-API, Elementor Pro, Elementor, Enable Media Replace, Header and Footer Scripts, HTML Validation Pro (Requires: HTML Validation), HTML Validation, Post SMTP, Redirection, Search Exclude, Simple Accessible Forms Pro (Requires: Simple Accessible Forms), Simple Accessible Forms, Simple Accessible Spoilers, Software License Manager, Advanced Editor Tools (previously TinyMCE Advanced), Wordfence Security, WordPress Importer, Yoast SEO, WP ADA Compliance Check, WP Crontrol, WP Post Popup, Stripe Checkout
    WordPress wp_mail Owner: /var/www/vhosts/httpdocs/wp-includes/pluggable.php
    WordPress wp_mail Filter(s): PostsmtpMailer->get_mail_args
    WordPress wp_mail_from Filter(s): wordfence::fixWPMailFromAddress
    WordPress phpmailer_init Action(s): wpcf7_phpmailer_init, PostsmtpMailer->phpmailer_smtp_init
    Postman: 2.3
    Postman Sender Domain (Envelope|Message): alumnionlineservices.com | alumnionlineservices.com
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Active Transport: SMTP (smtps:crammd5://alumnionlineservices.com:465)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 7 | 0

    Thread Starter pixzilla

    (@pixzilla)

    All managed sites where the plugin is active (13 in total) are now reporting this issue when logging in.

    Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla @seshelby we are working on it, will get back to you asap.

    Thanks

    Seems you need to add a check to see if from address is a string. Something like that in PostmanLogFields.php:182

    $value = is_array($value) ? $value : [$value];

    Before returning value from from_header_snitize()

    • This reply was modified 1 year, 10 months ago by agribanov. Reason: add filename
    Plugin Support M Haseeb

    (@haseeb0001)

    @agribanov

    We are looking into it, and will share updates soon.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @pixzilla @agribanov @seshelby

    We have released the fixed version; please update the plugin to 2.3.1, test it, and let me know.

    Thanks

    the problem seems to be resolved. Thank you!

    Thread Starter pixzilla

    (@pixzilla)

    Hi! Sorry for the late reply. The problem is fixed. Thanks very much!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘E_ERROR in line 183 in PostmanLogFields.php’ is closed to new replies.