Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11801
Latest: Dimon_1955
New This Month: 7
New This Week: 2
New Today: 1
Stats
Total Posts: 41510
Total Topics: 7264
Most Online Today: 47
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 47
Total: 47

Author Topic: Error upon sending PM after Newsletter Pro upgrade  (Read 138 times)

0 Members and 1 Guest are viewing this topic.

Offline bearpaw

  • Community Suite Customer
  • Member
  • ******
  • Posts: 7
    • View Profile
Error upon sending PM after Newsletter Pro upgrade
« 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.
« Last Edit: July 29, 2021, 05:17:02 pm by bearpaw »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15709
    • View Profile
Re: Error upon sending PM after Newsletter Pro upgrade
« Reply #1 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5839 Views
Last post October 28, 2008, 03:37:48 am
by clive
2 Replies
5039 Views
Last post December 31, 2008, 05:54:57 am
by ke4obt
7 Replies
6384 Views
Last post July 16, 2009, 12:22:14 am
by SMFHacks
14 Replies
11043 Views
Last post November 01, 2009, 04:14:02 am
by Vincent Volmer
3 Replies
4864 Views
Last post March 26, 2013, 01:40:57 pm
by SMFHacks

+- Recent Topics

prettyurls - TroubleShooting.wiki by SF
October 26, 2021, 04:39:52 pm

Stats Page by mickjav
October 19, 2021, 01:10:42 pm

Question (Gallery Pro) by mickjav
October 17, 2021, 11:59:10 am

Image View by SMFHacks
October 14, 2021, 11:55:21 am

From SMF Gallery Lite to SMF Gallery Pro by SMFHacks
October 11, 2021, 08:00:29 am

Picture Orientation by mickjav
October 09, 2021, 01:25:54 pm

4. Global Headers and Footers by mickjav
October 07, 2021, 12:22:09 am

S3 System For SMF Attachments by shuban
October 06, 2021, 07:58:50 am

Download Page images by mickjav
October 04, 2021, 01:28:07 pm

Agree To Licence by mickjav
October 03, 2021, 10:00:27 am

Powered by EzPortal