Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Location
    SOUTH KOREA
    Posts
    21
    Plugin Contributions
    0

    Default Creating a new page issue

    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 :
    Name:  configuration_table.jpg
Views: 70
Size:  4.5 KB


    Admin panel (Define Page Status) :
    Name:  define_page_status.jpg
Views: 65
Size:  11.6 KB


    Define Page Editor :
    Name:  define_page_editor.jpg
Views: 64
Size:  65.4 KB

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Creating a new page issue

    While I don't have the access rights to close this thread, a duplicate was posted (with discussion now) at: https://www.zen-cart.com/showthread....new-page-issue

    Please direct additional information to that thread.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v155 Creating a new page issue
    By probtc in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 4 Dec 2018, 08:11 PM
  2. Creating a new page
    By buzzfever in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jun 2010, 05:41 AM
  3. Creating a new page
    By beautifymenow in forum Customization from the Admin
    Replies: 1
    Last Post: 27 Apr 2010, 12:48 AM
  4. Creating A New Page
    By gkarasiewicz in forum General Questions
    Replies: 4
    Last Post: 25 Mar 2010, 07:26 PM
  5. Creating a New page
    By philip937 in forum General Questions
    Replies: 5
    Last Post: 10 Feb 2010, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR