Deprecated: Function set_magic_quotes_runtime() is deprecate

This forum is for reporting bugs in Joomla!. Please don't report problems with extensions in here.
Forum rules
Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
vinhcv
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Oct 22, 2010 8:03 am

Deprecated: Function set_magic_quotes_runtime() is deprecate

Post by vinhcv » Fri Oct 22, 2010 8:10 am

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

waarnemer
Joomla! Ace
Joomla! Ace
Posts: 1993
Joined: Sun May 04, 2008 12:37 pm

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Post by waarnemer » Mon Feb 07, 2011 9:47 pm

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
You do not have the required permissions to view the files attached to this post.

cboydave
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 04, 2012 5:19 pm

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Post by cboydave » Thu Oct 04, 2012 5:23 pm

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!

daisylane
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat May 04, 2013 3:57 pm

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Post by daisylane » Sat May 04, 2013 4:05 pm

This also worked for me. Thank you very much!

beharhaziri
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 01, 2013 10:33 am

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Post by beharhaziri » Mon Jul 01, 2013 10:36 am

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

waarnemer
Joomla! Ace
Joomla! Ace
Posts: 1993
Joined: Sun May 04, 2008 12:37 pm

Re: Deprecated: Function set_magic_quotes_runtime() is depre

Post by waarnemer » Thu Jul 04, 2013 8:35 am

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 !)


Locked

Return to “Joomla! 1.5 Bug Reporting”