mikecnz:
[27-Jan-2025 21:48:11 UTC] PHP Fatal error: Uncaught Error: Undefined constant "FILENAME_DOCUMENT_GENERAL_INFO" in /home/zcammell8139nz/public_html/includes/extra_datafiles/ceon_uri_mapping_product_pages.php:24
Stack trace:
#0 /home//public_html/includes/init_includes/init_file_db_names.php(54): include()
#1 /home//public_html/includes/application_top.php(214): require('/home/zcammell8...')
#2 /home//public_html/index.php(25): require('/home/zcammell8...')
#3 {main}
thrown in /home//public_html/includes/extra_datafiles/ceon_uri_mapping_product_pages.php on line 24
I have Ceon URI Mapping 5.1.0 (I think) and, searching for FILENAME_DOCUMENT_GENERAL_INFO, I see that as my init_file_db_names.php runs its last few lines it's iterating $directory_array and executing each file, for me these two are executed in this order:
includes/extra_datafiles/ceon_uri_mapping_filenames.php
includes/extra_datafiles/ceon_uri_mapping_product_pages.php
The file ceon_uri_mapping_filenames.php defines the constant you're seeing an error for:
if (!defined('FILENAME_DOCUMENT_GENERAL_INFO')) {
define('FILENAME_DOCUMENT_GENERAL_INFO', 'document_general_info');
}
In your case, from your stack trace, init_file_db_names.php seems to be executing ceon_uri_mapping_product_pages.php but the constant is not defined at that time.
Do you have ceon_uri_mapping_filenames.php on your system, and does it define the constant correctly? If you can't use a debugger (I use VS Code for local development) you may want to put echo statements or similar in various files to check what order they're being loaded.