Hi all;
I am trying to create new define page for FAQ. i have followed up instruction on this link (https://www.zen-cart.com/wiki/index....ting_new_pages) and have created all required files under related folder. I have also inserted a new line to configuration table to control "define_faq.php" on admin panel. But I am getting "page not found" notice when i try to access to this page. I have no idea about what I am doing wrong.I would really appreciated, If someone could help me out to find a solution for this issue.
Thanks
Page definition/locations :
includes/filenames.php :
Code:
define('FILENAME_DEFINE_FAQ', 'define_faq');
includes/modules/pages/faq/header_php.php :
Code:
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));$breadcrumb->add(NAVBAR_TITLE);// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_FAQ, 'false');
includes/templates/template_default/templates/tpl_faq_default.php :
Code:
<div class="centerColumn" id="pageTwo">
<div class="page-title mb-45">
<h1 id="pageTwoHeading"><?php echo HEADING_TITLE; ?></h1>
</div>
<?php if (DEFINE_FAQ_STATUS >= 1 and DEFINE_FAQ_STATUS <= 2) { ?>
<div id="pageTwoMainContent" class="content">
<?php
/**
* load the html_define for the page_faq
*/
require($define_page);
?>
</div>
<?php } ?>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
</div>
includes/extra_datafiles/faq.php :
Code:
<?php
define(FILENAME_DEFINE_FAQ, 'define_faq');
?>
includes/languages/english/faq.php :
Code:
<?php
define('NAVBAR_TITLE', 'FAQ');
define('HEADING_TITLE', 'FAQ');
define('TEXT_INFORMATION', 'Prestige Cookware FAQ.');
?>
log file error description :
[03-Dec-2018 06:50:21 UTC] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_faq_default.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/theuniv2/public_html/prestige/includes/templates/marcus/common/tpl_main_page.php on line 238
configuration table record :
Admin panel (Define Page Status) :
Define Page Editor :
Bookmarks