Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Update Database  (Read 2530 times)

0 Members and 1 Guest are viewing this topic.

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Update Database
« on: August 28, 2013, 01:46:00 pm »

In update.php line 33

Quote
Deprecated line 33: Function set_magic_quotes_runtime() is deprecated

Find
Code: [Select]
set_magic_quotes_runtime(0);

Replace
Code: [Select]
ini_set("magic_quotes_runtime", 0);

Regards
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Update Database
« Reply #1 on: August 28, 2013, 02:06:37 pm »

This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

However, ini_set is no option as it's not available on all hosts and there's even a comment:
Code: (http://www.php.net/manual/de/function.set-magic-quotes-runtime.php#109610) [Select]
Be aware that even using ini_set to set 'magic_quotes_runtime' will stop working in PHP 5.4.  See http://php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Update Database
« Reply #2 on: August 31, 2013, 11:04:37 am »

Thank you André.

Regards.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.