Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4212
Latest: bricktop
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 42779
Total Topics: 7453
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 28
Total: 28

Author Topic: Error upon sending PM after Newsletter Pro upgrade  (Read 773 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: 16228
    • 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
6152 Views
Last post October 28, 2008, 03:37:48 am
by clive
2 Replies
5612 Views
Last post December 31, 2008, 05:54:57 am
by ke4obt
7 Replies
6982 Views
Last post July 16, 2009, 12:22:14 am
by SMFHacks
14 Replies
11549 Views
Last post November 01, 2009, 04:14:02 am
by Vincent Volmer
3 Replies
5500 Views
Last post March 26, 2013, 01:40:57 pm
by SMFHacks

+- Recent Topics

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Additional Recommendations for SMF Store by SMFHacks
March 07, 2023, 02:41:18 pm

Gallery Selection List Order by mickjav
March 05, 2023, 10:49:10 am

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
February 26, 2023, 01:30:48 pm

Powered by EzPortal