Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 271
Total: 271

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal