Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12392
Latest: xtianau
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 40461
Total Topics: 7113
Most Online Today: 109
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 89
Total: 89

Author Topic: Call to undefined function mysql_num_rows()  (Read 239 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: 15220
    • 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
16371 Views
Last post January 07, 2008, 02:36:45 am
by Arie.
0 Replies
4805 Views
Last post January 05, 2008, 07:15:49 pm
by Arie.
4 Replies
3700 Views
Last post January 18, 2009, 03:44:17 pm
by SMFHacks
3 Replies
2881 Views
Last post September 04, 2017, 11:19:16 am
by SMFHacks
4 Replies
513 Views
Last post January 18, 2020, 02:06:47 pm
by SMFHacks

+- Recent Topics

How to display Items from Subcategories within Parent Category? by Nicole
December 02, 2020, 05:01:42 am

How to seperate/determine pictures from videos by SMFHacks
November 29, 2020, 09:02:28 am

Problem mit PHP 7.3 + 7.4 by SMFHacks
November 26, 2020, 09:13:20 am

End of Year Sale SMFHacks 2020 by SMFHacks
November 24, 2020, 08:35:13 pm

[Mod] Tagging System by SMFHacks
November 23, 2020, 06:25:59 pm

Additional Recommendations for SMF Store by SMFHacks
November 20, 2020, 11:19:13 pm

smf gallery Pro --> link to yotube/vimeo? Web Responsive to clik images? by Rock Lee
November 19, 2020, 10:10:37 pm

Payment method by SMFHacks
November 10, 2020, 11:54:47 pm

Need Help with Coppermine Conversion by SMFHacks
November 04, 2020, 01:24:09 pm

Feature Request for Classifieds by SMFHacks
October 21, 2020, 10:30:17 pm

Powered by EzPortal