• Resolved shansta

    (@shansta)


    Hi,

    I noticed after submitting test reviews that I kept getting an ajax error. Looking in the console there is PHPMailer Errors. Turning off notifications fixes the error. But it was working the other day.

    Is this a known problem?

    Console shows

    [2020-08-13 16:12:07] ERROR [Application.php:92] Uncaught TypeError: Argument 1 passed to GeminiLabs\SiteReviews\Modules\Email::buildPlainTextMessage() must be an instance of PHPMailer, instance of PHPMailer\PHPMailer\PHPMailer given, called in /home/bshandyman/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/bshandyman/public_html/wp-content/plugins/site-reviews/plugin/Modules/Email.php:95
    Stack trace:
    /public_html/wp-includes/class-wp-hook.php(287): GeminiLabs\SiteReviews\Modules\Email->buildPlainTextMessage(Object(PHPMailer\PHPMailer\PHPMailer))
    /public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    /public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    /public_html/wp-includes/pluggable.php(494): do_action_ref_array('phpmailer_init', Array)
    /public_html/wp-content/plugins/site-reviews/plugin/Modules/Email.php(84): wp_mail(Array, '[Beachside Hand...', '<!doctype html>...', Array, Array)
    #5 /ho

    Any help would be great.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    I wonder if the latest version of WordPress added a namespace to the PHPMailer class. I will push an update to fix this today. Thanks for reporting it!

    Thread Starter shansta

    (@shansta)

    Great, thanks.

    Can you also look at the relative time date format? When testing reviews it displays times for example as “-30000” seconds ago. Now over 12 hours later it is showing the time as 2 hours ago.. something is not working. If not, can you tell me which file holds the relative time output?

    Also, can you tell me if there is a php function to output the number of reviews?

    Cheers.

    Zee

    (@laserjobs)

    Same Issue here

    [2020-08-14 17:25:29] ERROR [Application.php:92] Uncaught TypeError: Argument 1 passed to GeminiLabs\SiteReviews\Modules\Email::buildPlainTextMessage() must be an instance of PHPMailer, instance of PHPMailer\PHPMailer\PHPMailer given, called in /public_html/wp-includes/class-wp-hook.php on line 287 and defined in /public_html/wp-content/plugins/site-reviews/plugin/Modules/Email.php:95
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(287): GeminiLabs\SiteReviews\Modules\Email->buildPlainTextMessage()
    #1 /public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #2 /public_html/wp-includes/plugin.php(544): WP_Hook->do_action()
    #3 /public_html/wp-includes/pluggable.php(494): do_action_ref_array()
    #4 /public_html/wp-content/plugins/site-reviews/plugin/Mod
    Plugin Author Gemini Labs

    (@geminilabs)

    This should be fixed in v4.6.4

    Plugin Author Gemini Labs

    (@geminilabs)

    @shansta Site Reviews uses the timezone of your server. The value will be minus if you change the publish date to after the current date of your server’s timezone.

    Zee

    (@laserjobs)

    I saw the extra “PHPMailer” but you got to it before I had a chance to try fixing it. Thanks!

    Plugin Author Gemini Labs

    (@geminilabs)

    @laserjobs The problem was introduced with WordPress v5.5 where they upgraded the PHPMailer class. Previously it did not have a namespace.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHPMailer Error’ is closed to new replies.