News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

PHP 7 Error (mysql_escape_string) in jD 3.2.45 (Not jD Bug)

Started by Nyx, 29.09.2016 10:05:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nyx

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?
  •  

Nyx

  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

Hi,

ok thanks.
Then i will wait for your solution ;-)
  •  

Arno

I wait still on your PM with the complete error message....  ::)
I think that this error comes from another extension.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

sorry, i don't see the pm.
Your have a pm ;-)
  •  

Nyx

The problem got solved (see pms).
Not with jdownloads was the error, but another component.
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •