Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11778
Latest: robgratt
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40981
Total Topics: 7173
Most Online Today: 31
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 31
Total: 31

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

+- Recent Topics

Where are original uploaded files stored? by robgratt
June 20, 2021, 12:41:48 pm

Errors for nonexistent members by Krash
June 14, 2021, 09:51:47 pm

Error message: cannot access upload path by SMFHacks
June 08, 2021, 10:06:22 am

How to change order of the Classifieds board by SMFHacks
May 31, 2021, 09:57:36 am

Standard version of Downloads mod value missing by SMFHacks
May 25, 2021, 11:32:48 pm

Privacy Link by SMFHacks
May 14, 2021, 11:11:51 am

Gallery font by SMFHacks
May 13, 2021, 09:58:02 am

Mod Using Google App Script by T7i
May 09, 2021, 08:19:03 pm

Guest has high bid? by Shades
May 06, 2021, 01:36:08 pm

Simple Portal Block - Classifieds by Shades
May 06, 2021, 12:24:32 pm

Powered by EzPortal