Fatal error: Cannot redeclare theme_cpg_die() Fatal error: Cannot redeclare theme_cpg_die()
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Fatal error: Cannot redeclare theme_cpg_die()

Started by laracroftonline, January 23, 2019, 10:04:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

laracroftonline

Since my upgrade to 1.6.05 including setting the server to php 7.2 i get
QuoteFatal 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.

ron4mac

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

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.