SMFHacks.com

Newsletter Pro => Support => Topic started by: bearpaw on July 29, 2021, 05:02:59 pm

Title: Error upon sending PM after Newsletter Pro upgrade
Post by: bearpaw on July 29, 2021, 05:02:59 pm
Hello,

After upgrading to latest on SMF 2.0.18, we get on each sent PM (they do still send):
Code: [Select]
https://BOARD/smf/index.php?action=pm;sa=send2
2: substr() expects parameter 1 to be string, array given
File: /home/USER/public_html/smf/Sources/Subs-Post.php
Line: 629

Line 629 is within // Newsletter Pro blocks:
Code: [Select]
if (substr($to, -4) == '.bad' || substr($to, -9) == '.complain')
        return false;

This may need to be moved to after the array is defined for $to and then walk it, remove those entries and then if $to is empty, return false?

Anyway, hope you can fix it asap as its scrolling logs on each sent PM.
Title: Re: Error upon sending PM after Newsletter Pro upgrade
Post by: SMFHacks on July 30, 2021, 09:11:45 pm
Have posted a fix https://www.smfhacks.com/index.php/topic,2407.msg11756.html#msg11756

Uninstall old version and install new version.