Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12383
Latest: klumba
New This Month: 2
New This Week: 1
New Today: 1
Stats
Total Posts: 40254
Total Topics: 7090
Most Online Today: 112
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

Author Topic: Call to undefined function mysql_num_rows()  (Read 77 times)

0 Members and 1 Guest are viewing this topic.

Offline Puppeteer

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Godlike Productions
Call to undefined function mysql_num_rows()
« on: July 30, 2020, 12:22:43 am »
We are running 4.1.8 of Downloads Systems Pro, and have started getting the following error, for one of our membership classes

Call to undefined function mysql_num_rows(), when they try to download a file.

We are running php 7, and I suspect that this error is due to mysql_connect being deprecated.

Is there a fix available for this?

Offline Puppeteer

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Godlike Productions
Re: Call to undefined function mysql_num_rows()
« Reply #1 on: July 30, 2020, 01:32:44 am »
I think I fixed this.

Line 9686 of Downloads2.php needs to be changed to

Code: [Select]
$totalRow['total'] = mysqli_num_rows($dbresult);

To make it compatible with php7+

mysql_ has been deprecated.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Call to undefined function mysql_num_rows()
« Reply #2 on: July 30, 2020, 07:45:29 am »
Yeah that was fixed in a later version of Downloads Pro.
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
15016 Views
Last post January 07, 2008, 02:36:45 am
by Arie.
0 Replies
4733 Views
Last post January 05, 2008, 07:15:49 pm
by Arie.
4 Replies
3586 Views
Last post January 18, 2009, 03:44:17 pm
by SMFHacks
3 Replies
2128 Views
Last post September 04, 2017, 11:19:16 am
by SMFHacks
4 Replies
396 Views
Last post January 18, 2020, 02:06:47 pm
by SMFHacks

+- Recent Topics

Moving pictures to another user personal gallery by Hatshepsut
August 10, 2020, 11:07:26 pm

Rebuild related images time too long by SMFHacks
August 09, 2020, 01:52:57 pm

Call to undefined function mysql_num_rows() by SMFHacks
July 30, 2020, 07:45:29 am

Problem with one videosite embedding by Hatshepsut
July 24, 2020, 01:25:08 am

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

Powered by EzPortal