Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4200
Latest: [chrisB]
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42622
Total Topics: 7434
Most Online Today: 196
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

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

0 Members and 1 Guest are viewing this topic.

Offline bearpaw

  • 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: 16164
    • 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
6103 Views
Last post October 28, 2008, 03:37:48 am
by clive
2 Replies
5523 Views
Last post December 31, 2008, 05:54:57 am
by ke4obt
7 Replies
6918 Views
Last post July 16, 2009, 12:22:14 am
by SMFHacks
14 Replies
11389 Views
Last post November 01, 2009, 04:14:02 am
by Vincent Volmer
3 Replies
5403 Views
Last post March 26, 2013, 01:40:57 pm
by SMFHacks

+- Recent Topics

SMF 2.1 Final Released by [chrisB]
December 05, 2022, 11:56:13 am

Errors with SMF2WPBridge by SMFHacks
December 04, 2022, 11:28:57 am

List of changes in SMFGallery by Monocero
December 02, 2022, 06:23:53 am

Permissions query by davejo
November 30, 2022, 09:52:38 am

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by SMFHacks
November 29, 2022, 01:15:50 pm

Undefined index: id by Shades
November 29, 2022, 12:15:20 pm

Additional Recommendations for SMF Store by Michael Vail
November 26, 2022, 12:49:58 pm

SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null by Michael Vail
November 26, 2022, 12:07:42 pm

Modification: Subcategories total in main gallery view by VisiGod
November 26, 2022, 11:27:34 am

Change log for Downloads Pro 6.13 and 6.14 by Nicole
November 20, 2022, 08:24:34 am

Powered by EzPortal