Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11790
Latest: ButtKoWitz
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 41408
Total Topics: 7255
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 31
Total: 32

Author Topic: Error after php upgrade  (Read 350 times)

0 Members and 1 Guest are viewing this topic.

Offline wargamesillustrated

  • Member
  • *
  • Posts: 6
    • View Profile
Error after php upgrade
« on: January 26, 2021, 04:32:35 am »
Hi there, our host has moved our forum to PHP 7.3 everything seems to be working ok but we have the error at the top of the site:

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /homepages/7/d856305556/htdocs/leadadventureforum.com/public_html/Sources/adseller2.php on line 4351

Is this something that can be fixed?

Thank you

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15662
    • View Profile
Re: Error after php upgrade
« Reply #1 on: January 26, 2021, 01:45:25 pm »
This was fixed in an update.
Fixed function below
Code: [Select]
function AdSellerisMobileDevice()
{

$user_agents = array(
array('iPhone', 'iphone'),
array('iPod', 'ipod'),
array('iPad', 'ipad'),
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ?  'operamini' : ''),
array('Opera Mobile', 'Opera Mobi'),
array('Android', 'android'),
array('Symbian', 'symbian'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);

foreach ($user_agents as $ua)
{
$string = (string) $ua[1];

if (!empty($string))
if ((strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $string)))
return true;
}

        return false;

}
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/

Offline wargamesillustrated

  • Member
  • *
  • Posts: 6
    • View Profile
Re: Error after php upgrade
« Reply #2 on: January 27, 2021, 12:37:06 pm »
Thank you, How do I apply this fix/ update?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15662
    • View Profile
Re: Error after php upgrade
« Reply #3 on: January 27, 2021, 01:01:47 pm »
You can either replace the function in sources/adseller2.php with the above new code.

Or purchase a renewal at a lower price for which has updates for another year as well
https://www.smfhacks.com/index.php?action=license
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
37 Replies
23562 Views
Last post December 27, 2007, 10:22:10 pm
by SMFHacks
2 Replies
2658 Views
Last post October 02, 2009, 06:59:00 pm
by SMFHacks
upgrade??

Started by Bob1 Support

1 Replies
1976 Views
Last post December 08, 2010, 05:27:33 pm
by SMFHacks
4 Replies
4442 Views
Last post November 17, 2013, 08:42:19 pm
by dan42101
1 Replies
98 Views
Last post July 30, 2021, 09:11:45 pm
by SMFHacks

+- Recent Topics

Import downloads by mickjav
September 25, 2021, 04:47:13 am

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal