jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: Nyx on 29.09.2016 10:05:35

Title: PHP 7 Error (mysql_escape_string) in jD 3.2.45 (Not jD Bug)
Post by: Nyx on 29.09.2016 10:05:35
Hi,

Sys:
Ubuntu 14.04.5 LTS
Apache 2.4.7
MySQL 5.5.52
Jommla 3.6.2
jD 3.2.45

I have a problem with the jD "upload form" in the joomla frontage with PHP 7.0.11 (under php 5.6.26 there is no problem).
Wenn i try a upload (after the file sendling) come the error "Call to undefined function mysql_escape_string()"
But the file is sending (with email) and the download entry is ok.

So under php 7 the function not supported:
http://php.net/manual/en/function.mysql-escape-string.php

php.net says to change to the code:
mysqli_escape_string()
OR
PDO::quote()

I don't found the relevant code in jD php files.

May be a the "plupload" is the Problem? Your Version is from the year 2014.
You should integrate the version Plupload 2.1.9.

Any Idea?
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Nyx on 03.10.2016 14:34:23
*push*

Any Idea, Arno? Colin?
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Arno on 06.10.2016 13:01:42
Hi Nyx,
sorry for the late reply.

jDownloads use the database functions from Joomla so you can not find a mysql_escape_string function in jDownloads.
Joomla supported PHP 7 so i must check what can be the reason for this error.

The Pluploadcan not be the reason, It is not used in the frontend. Only when you use the special upload form in the jD backend.
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Nyx on 06.10.2016 14:58:07
Hi,

ok thanks.
Then i will wait for your solution ;-)
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Arno on 07.10.2016 17:32:44
I wait still on your PM with the complete error message....  ::)
I think that this error comes from another extension.
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Nyx on 10.10.2016 12:37:38
sorry, i don't see the pm.
Your have a pm ;-)
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45
Post by: Nyx on 11.10.2016 15:17:31
The problem got solved (see pms).
Not with jdownloads was the error, but another component.
Title: Re: PHP 7 Error (mysql_escape_string) in jD 3.2.45 (Not jD Bug)
Post by: Arno on 11.10.2016 20:17:50
A hint for all other users what exactly was here the problem:
http://solidsystem.it/forum/custom-properties-3-for-joomla-3x/1500-problems-after-migrating-to-php7.html

The extension is: Custom Properties