Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-04 08:48:17
- Rufnex
- Archived Plugin Author
- From: Germany, Munich (Bavaria)
- Registered: 2004-06-23
- Posts: 51
Problem with file downloads
Hi,
i’ve a problem with the file database. if i want to push some information (description, cat) into the database, i got the following error:
<code>Fatal error: Call to undefined function: mysql_real_escape_string() in /…/textpattern/include/txp_file.php on line 421</code>
any ideas?
thx
Last edited by Rufnex (2005-11-04 08:58:29)
Offline
Re: Problem with file downloads
Hmm, I wonder how that got there… In Line 421 of the specified file, replace:
$perms = mysql_real_escape_string($permissions);
with
$perms = doSlash($permissions);
Offline
#3 2005-11-04 10:41:01
- Rufnex
- Archived Plugin Author
- From: Germany, Munich (Bavaria)
- Registered: 2004-06-23
- Posts: 51
Re: Problem with file downloads
Thx Sencer (nice hat g) .. no it works but …
If i build in the downloadlink like
<code>
<txp:file_download_link id=“1”>hier als PDF-Datei downloaden</txp:file_download_link>
</code>
i got this error:
<code>
Fatal error: Call to undefined function: ob_clean() in /…/textpattern/publish.php on line 124
</code>
any ideas again?
thx!
Offline
Re: Problem with file downloads
It looks like the PHP version you are using is way out of date. ob_clean was added in PHP 4.2, for Textpattern 4.3.x is recommended.
While it is possible to work around your specific error-message, other issues will invariably crop up.
Offline
#5 2005-11-04 16:16:35
- Rufnex
- Archived Plugin Author
- From: Germany, Munich (Bavaria)
- Registered: 2004-06-23
- Posts: 51
Re: Problem with file downloads
Yes, your right .. i’ve installed a older version of debian woody .. so i’ve to update my server (maybe with sarge). thx!
Offline
Pages: 1