mesnitu:
I've updated to 155f , php 7.1 and CEON php7 .... and maybe this in not the right place to ask , but anyway here it goes:
I got issues! :smile:
Categories menu links are ok, but products ( canonical, breadcrumb ) are not.
I also had the breadcrumbs to work with product type handler ( or term) bookx like this:
if ($get_term_breadcrumb->RecordCount() > 0) {
// BEGIN CEON URI MAPPING 1 of 2
// Set the required parameters so that an attempt can be made to map the link to any static URI for the
// filtered page
$typefilter_parameters = '';
if ($get_terms->fields['get_term_name'] != 'manufacturers_id') {
$fix_bookx_term = explode('_',$get_terms->fields['get_term_name'] );
//@ALTERED for Bookx terms
if( $fix_bookx_term['0'] == 'bookx') {
$typefilter_parameters = 'typefilter=' . $fix_bookx_term['0'] . '&';
} else {
$typefilter_parameters = 'typefilter=' . str_replace('_id', '', $get_terms->fields['get_term_name']) . '&';
}
}
$typefilter_parameters .=
$get_terms->fields['get_term_name'] . '=' . $_GET[$get_terms->fields['get_term_name']];
$breadcrumb->add($get_term_breadcrumb->fields[$get_terms->fields['get_term_name_field']],
zen_href_link(FILENAME_DEFAULT, $typefilter_parameters));
/*
// END CEON URI MAPPING 1 of 2
$breadcrumb->add($get_term_breadcrumb->fields[$get_terms->fields['get_term_name_field']], zen_href_link(FILENAME_DEFAULT, $get_terms->fields['get_term_name'] . "=" . $_GET[$get_terms->fields['get_term_name']]));
// BEGIN CEON URI MAPPING 2 of 2
*/
// END CEON URI MAPPING 2 of 2
}
}
>
> $typefilter_parameters are ok, so I guess all this should be confined to the html_output.php or as I was reading the auto_loaders position.
> Anyway, I've check and diff the html_output with the CEON 4.5.3 and I'm completely lost .
> So maybe this is related to the auto_loaders position...
> Sorry for the long report , but perhaps you could give a clue about this:
>
> ```
[autoLoadConfig] => Array
(
[0] => Array
(
[0] => Array
(
[autoType] => include
[loadFile] => includes/version.php
)
[1] => Array
(
[autoType] => class
[loadFile] => class.base.php
)
[2] => Array
(
[autoType] => class
[loadFile] => class.notifier.php
)
[3] => Array
(
[autoType] => classInstantiate
[className] => notifier
[objectName] => zco_notifier
)
[4] => Array
(
[autoType] => class
[loadFile] => class.phpmailer.php
)
[5] => Array
(
[autoType] => class
[loadFile] => boxes.php
)
[6] => Array
(
[autoType] => class
[loadFile] => category_tree.php
)
[7] => Array
(
[autoType] => class
[loadFile] => template_func.php
)
[8] => Array
(
[autoType] => class
[loadFile] => split_page_results.php
)
[9] => Array
(
[autoType] => class
[loadFile] => language.php
)
[10] => Array
(
[autoType] => class
[loadFile] => cache.php
)
[11] => Array
(
[autoType] => class
[loadFile] => sniffer.php
)
[12] => Array
(
[autoType] => class
[loadFile] => shopping_cart.php
)
[13] => Array
(
[autoType] => class
[loadFile] => navigation_history.php
)
[14] => Array
(
[autoType] => class
[loadFile] => currencies.php
)
[15] => Array
(
[autoType] => class
[loadFile] => message_stack.php
)
[16] => Array
(
[autoType] => class
[loadFile] => breadcrumb.php
)
[17] => Array
(
[autoType] => class
[loadFile] => query_cache.php
)
[18] => Array
(
[autoType] => classInstantiate
[className] => QueryCache
[objectName] => queryCache
[checkInstantiated] => 1
)
[19] => Array
(
[autoType] => class
[loadFile] => class.zcPassword.php
)
[20] => Array
(
[autoType] => classInstantiate
[className] => zcPassword
[objectName] => zcPassword
)
[21] => Array
(
[autoType] => class
[loadFile] => class.CeonURIMappingHandler.php
)
[22] => Array
(
[autoType] => class
[loadFile] => observers/class.ceon_uri_mapping_link_build.php
)
)
[10] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_file_db_names.php
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_database.php
)
[2] => Array
(
[autoType] => class
[loadFile] => observers/class.bookx_observers.php
)
[3] => Array
(
[autoType] => class
[loadFile] => observers/class.tpl_pb.php
)
[4] => Array
(
[autoType] => init_script
[loadFile] => init_tpl_pb.php
)
)
[30] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => cache
[objectName] => zc_cache
)
)
[40] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_db_config_read.php
)
)
[50] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => sniffer
[objectName] => sniffer
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_gzip.php
)
[2] => Array
(
[autoType] => init_script
[loadFile] => init_sefu.php
)
)
[60] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_general_funcs.php
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_tlds.php
)
)
[70] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_sessions.php
)
)
[80] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => shoppingCart
[objectName] => cart
[checkInstantiated] => 1
[classSession] => 1
)
)
[90] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => currencies
[objectName] => currencies
)
[1] => Array
(
[autoType] => classInstantiate
[className] => productTypeFilterObserver
[objectName] => productTypeFilterObserver
)
[2] => Array
(
[autoType] => class
[loadFile] => observers/class.reward_points.php
)
[3] => Array
(
[autoType] => classInstantiate
[className] => RewardPoints
[objectName] => RewardPoints
)
[4] => Array
(
[autoType] => classInstantiate
[className] => class_tpl_pb
[objectName] => class_tpl_pb
)
)
[99] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => CeonURIMappingHandler
[objectName] => ceon_uri_mapping
)
)
[100] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => template_func
[objectName] => template
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_sanitize.php
)
[2] => Array
(
[autoType] => classInstantiate
[className] => navigationHistory
[objectName] => navigation
[checkInstantiated] => 1
[classSession] => 1
)
)
[110] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_languages.php
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_templates.php
)
)
[115] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_zca_layout.php
)
)
[120] => Array
(
[0] => Array
(
[autoType] => objectMethod
[objectName] => navigation
[methodName] => add_current_page
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_currencies.php
)
)
[130] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => messageStack
[objectName] => messageStack
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_customer_auth.php
)
)
[140] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_cart_handler.php
)
)
[150] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_special_funcs.php
)
)
[160] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => breadcrumb
[objectName] => breadcrumb
)
[1] => Array
(
[autoType] => init_script
[loadFile] => init_category_path.php
)
)
[161] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_canonical.php
)
)
[165] => Array
(
[0] => Array
(
[autoType] => classInstantiate
[className] => CeonUriMappingLinkBuild
[objectName] => ceon_uri_mapping_link_build
)
)
[170] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_add_crumbs.php
)
)
[175] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_observers.php
)
)
[180] => Array
(
[0] => Array
(
[autoType] => init_script
[loadFile] => init_header.php
)
)
[190] => Array
(
[0] => Array
(
[autoType] => class
[loadFile] => observers/class.google_recaptcha.php
)
[1] => Array
(
[autoType] => classInstantiate
[className] => google_recaptcha
[objectName] => google_recaptcha
)
[2] => Array
(
[autoType] => class
[loadFile] => observers/class.products_viewed_counter.php
)
[3] => Array
(
[autoType] => classInstantiate
[className] => products_viewed_counter
[objectName] => products_viewed_counter
)
)
)
It's unfortunate that having issues; however, it's difficult to identify a solution to a problem that isn't explained, what the issues are, what notifications/errors are reported, etc...
The autoLoadConfig array provided identifies that at least the modifications implemented in the software for the breadcrumbs are loaded before attempting to access the breadcrumbs.
As to the modification made in the breadcrumbs file, while not sure what value is returned for bookx from $get_terms->fields['get_term_name'] other than expecting it to begin with bookx_, but the code there appears to handle the situation correctly to support addressing the bookx product type as compared to the ZC default that includes _id on the end of it.