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: Fatal error: Cannot redeclare theme_cpg_die()  (Read 3776 times)

0 Members and 1 Guest are viewing this topic.

laracroftonline

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Fatal error: Cannot redeclare theme_cpg_die()
« on: January 23, 2019, 10:04:01 pm »

Since my upgrade to 1.6.05 including setting the server to php 7.2 i get
Quote
Fatal error: Cannot redeclare theme_cpg_die() (previously declared in /home/siedirectory/public_html/uniload.php:63) in /home/sitedirectory/public_html/themes/responsive/theme.php on line 1795
This theme was made using the sample theme.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error: Cannot redeclare theme_cpg_die()
« Reply #1 on: January 24, 2019, 01:40:15 am »

Delete the function from the theme.php file or wrap it in:

Code: [Select]
if (!function_exists('theme_cpg_die')) {

  < function in your theme.php >

}

The Sample theme is more meant to be a demonstration rather than a starting point for a new theme. Theme override functions should only be used if there is a good reason for doing so. You would be better advised to start with water_drop ... which is sample without all the overrides.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.