• Resolved behrad84

    (@behrad84)


    we have installed the post-smtp plugin and it works well but in the admin side where we have integration with wooCommerce we are getting following error

    When seeking help with this issue, you may be asked for some of the
    following information:
    WordPress version 6.8.1
    Active theme: Botiga (version 1.0.9)
    Current plugin: Post SMTP (version 3.3.0)
    PHP version 8.4.6

    Error Details
    =============
    An error of type E_ERROR was caused in line 515 of the file
    /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanMessage.php.
    Error message: Uncaught TypeError: file_get_contents(): Argument #1
    ($filename) must be of type string, array given in
    /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanMessage.php:515
    Stack trace:
    #0 /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanMessage.php(515):
    file_get_contents(Array)
    #1 /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanZendMailEngine.php(186):
    PostmanMessage->addAttachmentsToMail(Object(Postman_Zend_Mail))
    #2 /var/www/html/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(245):
    PostmanZendMailEngine->send(Object(PostmanMessage))
    #3 /var/www/html/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(60):
    PostmanWpMail->sendMessage(Object(PostmanMessage),
    Object(PostmanEmailLog))
    #4 /var/www/html/wp-content/plugins/post-smtp/Postman/Phpmailer/PostsmtpMailer.php(136):

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @behrad84 ,

    We hope this message finds you well.

    Thank you for reaching out to our Support team. We’re truly sorry to hear that you’ve encountered this issue.

    To help us assist you more effectively, could you please confirm the name of the plugin you are using to trigger the emails that are failing?

    If you’re unsure, we recommend starting by deactivating all other plugins except Post SMTP. Then, try sending a test email and observe whether the issue persists. This will help us identify if there’s any conflict with other plugins.

    We look forward to your response and are here to help every step of the way.

    Warm regards,
    Support Team – WP Experts

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @behrad84 ,

    We hope you are doing well.

    We are marking this thread as resolved due to inactivity. If you encounter any further issues, please feel free to open a new thread.

    Have a great day!

    Thanks and regards,
    Support Team – WP Experts

    Thread Starter behrad84

    (@behrad84)

    Good evening,

    apologies for the delayed response. I was able to identify the cause of the fatal error we encountered — it was related to how attachments were being handled. Initially, I was creating an array of attachments that included sub-elements like filenamecid, and name, as outlined in the PHPMailer documentation. However, it turns out your plugin expects a flat array structure without sub-arrays, which was straightforward to correct.

    That said, I’m currently running into difficulties integrating the addEmbeddedImage functionality. When I try to include sub-elements for addEmbeddedImage within the array, the plugin fails. Could you please advise on the correct structure or approach to make addEmbeddedImage work with your plugin?

    Appreciate your guidance.

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hey @behrad84,

    I’m glad to hear that you were able to pinpoint the issue!

    You can refer to this documentation for detailed guidance on the usage of the functions.

    Warm regards,
    Support Team – WP Experts

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error’ is closed to new replies.