
Originally Posted by
kernheimer
'm on 1.5.7 and php 7.3
WARNING: An Error occurred, please refresh the page and try again.
( only on the template.. when getting back to classic or responsive nothing is wrong)
15-Jul-2020 01:46:00 Europe/Amsterdam] Request URI: /index.php?main_page=contact_us, IP address: 213.125.**.***
#1 require() called at [/var/www/clients/*************/++++++/includes/init_includes/init_zca_bootstrap.php:35]
#2 require_once(/var/www/clients/*************/++++++/includes/init_includes/init_zca_bootstrap.php) called at [/var/www/clients/*************/++++++/includes/autoload_func.php:37]
#3 require(/var/www/clients/*************/++++++/includes/autoload_func.php) called at [/var/www/clients/*************/++++++/includes/application_top.php:219]
#4 require(/var/www/clients/*************/++++++/includes/application_top.php) called at [/var/www/clients/*************/++++++/index.php:25]
--> PHP Warning: Declaration of zca_breadcrumb::trail($separator = '##&nbs...') should be compatible with breadcrumb::trail($separator = '##&nbs...', $prefix = '', $suffix = '') in /var/www/clients/*************/++++++/includes/classes/zca/zca_breadcrumb.php on line 71.
[15-Jul-2020 01:46:00 Europe/Amsterdam] Request URI: /index.php?main_page=contact_us, IP address: 213.125.**.***
#1 require(/var/www/clients/*************/++++++/includes/templates/bootstrap/common/tpl_main_page.php) called at [/var/www/clients/*************/++++++/index.php:94]
--> PHP Warning: Use of undefined constant DISPLAY_PAGE_PARSE_TIME - assumed 'DISPLAY_PAGE_PARSE_TIME' (this will throw an Error in a future version of PHP) in /var/www/clients/*************/++++++/includes/templates/bootstrap/common/tpl_main_page.php on line 251.
:-)
for the first error, line 35 of:
includes/classes/zca/zca_breadcrumb.php
PHP Code:
//from
function trail($separator = ' ')
//to
function trail($separator = ' ', $prefix = '', $suffix = '')
i think that should fix that one.
the 2nd error, the DISPLAY_PAGE_PARSE_TIME is no longer part of the ZC core. you can either define or remove it depending if you want to see that data.
includes/templates/bootstrap/common/tpl_main_page.php
PHP Code:
<!--bof- parse time display -->
<?php
// add the following line and set to true or anything else if you want to see the data or not!
define('DISPLAY_PAGE_PARSE_TIME', 'true');
if (defined('DISPLAY_PAGE_PARSE_TIME') && DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="text-center">
Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?>
</div>
<?php
}
?>
<!--eof- parse time display -->
Bookmarks