Page 1 of 1

Deprecated: Function set_magic_quotes_runtime() is deprecate

Posted: Fri Oct 22, 2010 8:10 am
by vinhcv
To who may concern!

I have get error "Deprecated: Function set_magic_quotes_runtime() is deprecate" when using PDF creator library in Joomla 1.5.20 with PHP 5.3.

I have fix your code and run well:
In file: [ROOT]\libraries\tcpdf\tcpdf.php
Replace line:
set_magic_quotes_runtime(0);

to:
if(get_magic_quotes_runtime()){
set_magic_quotes_runtime(0);
}

To fix this problem, I think, your Joomla Development team must have check and fix this bug to release new Joomla version.

VinhCV.
JoomlArt Staff
Skype: vinhcv

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Posted: Mon Feb 07, 2011 9:47 pm
by waarnemer
I found this is still the case with Joomla 1.5.22 or at least when upgraded from 1.5.20 to 22.

(it happens in about 4 lines)

I did attach the corrected tcpdf.php file

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Posted: Thu Oct 04, 2012 5:23 pm
by cboydave
Thaaaaaaaaaaaaaank-YOU!!!!

Uploaded your version to 2.5, works like a charm. Would have taken me forever to figure this one out.

Much appreciated. Cheers!

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Posted: Sat May 04, 2013 4:05 pm
by daisylane
This also worked for me. Thank you very much!

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Posted: Mon Jul 01, 2013 10:36 am
by beharhaziri
hello,
sorry to post this question, but i'm new to Joomla so i don't quite understand the terminology

what do I have to do to "I did attach the corrected tcpdf.php file" as mentioned above


regards

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Posted: Thu Jul 04, 2013 8:35 am
by waarnemer
it means that I did attach the file to this forum thread...
in 1.5.20+ you replace the original with this file. (don't forget to make back-ups !)