• Resolved devbd

    (@devbd)


    Hi,

    I struggle with the following warnings that are logged form time to time on my website:

    PHP Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/PHPMailer/PHPMailer.php on line 1845, referer: /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=xxx

    PHP Warning: file_exists() expects parameter 1 to be a valid path, array given in /html/wp-includes/PHPMailer/PHPMailer.php on line 1860, referer: /wp-cron.php?doing_wp_cron=1655298581.673115015029907

    I struggle to identify source of these warning. They seem to related to cron job that uses PHPMailer class, and I’m aware that your plugin currently sends some automatic emails from the website.

    Could you let me know, please, if these warnings are related to your plugin? If yes, is there any way to fix them?

    Thank you for any advice,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Bartek

    (@bartj)

    Hello @devbd!

    I’m sorry for the issues caused. Could you tell me, which version of ShopMagic do you use? We’ve been trying to solve this issue in 2.37.10 release, so I need to know if we failed to do that properly.

    If you actually run 2.37.10, let me know what are the steps to reproduce the error? The issue you describe is related to emails sent from ShopMagic and possibly attachments, so if you could find out which precise automation causes the issue and send the configuration to us, it would be very helpful. (You can share configuration either through screenshots or ShopMagic function to export automation as JSON file).

    Best regards,
    Bartek

    Thread Starter devbd

    (@devbd)

    Hi Bartek,

    Thank you for your advice. We’re currently on 2.37.10 version of the plugin but we’completed updates recently, so maybe the issue will be resolved. I posted the support ticket with a short delay, so I’m not 100% sure if the site was on .09 or .10 when error happened. In this case, we’ll monitor the site and re-open the ticket if needed.

    Thank you,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning associated with PHPMailer.php class’ is closed to new replies.