Thread: Define pages

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Define pages

    Info in my signature is up to date.

    I am trying to edit my define pages and for some reason the info I have put there is not showing upto me on my website, or to others who have checked via their devices ie mobile and computer, but is there in the define pages editor and via the define pages in cpanel.

    I have tried adding the info via the ck editor and the plain text editor to no avail.
    I am not sure what is going on, have cleared cookies and cache etc.

    here is a link to the page

    https://angiesartspace.co.uk/index.php?main_page=page_2
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Define pages

    You're getting a partial blank page. Check your /logs folder to see what the root cause of this is. Once you fix this, your define page content will show.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Re: Define pages

    There is nothing showing in the logs if I am looking in the right place that is?

    Edit to add there is in the cpanel but that could be because I also tried to do the define page via the cpanel aswell.

    Am not sure how to fix that log
    Last edited by Angiex1; 6 Jul 2022 at 12:40 PM.
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Define pages

    Post the log you are getting.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Re: Define pages

    This is the latest log I can find, it wont let me upload the file as showing as invalid so have copied it


    [06-Jul-2022 16:35:22 UTC] Request URI: /index.php?main_page=page_2, IP address: 64.233.172.16
    #1 require() called at [/home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php:24]
    #2 require(/home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php) called at [/home/angiesar/public_html/includes/templates/clone/common/tpl_main_page.php:202]
    #3 require(/home/angiesar/public_html/includes/templates/clone/common/tpl_main_page.php) called at [/home/angiesar/public_html/index.php:94]
    --> PHP Warning: require(includes/languages/english/html_includes/define_page_2.php): failed to open stream: No such file or directory in /home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php on line 24.

    [06-Jul-2022 16:35:22 UTC] PHP Fatal error: require(): Failed opening required 'includes/languages/english/html_includes/define_page_2.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php on line 24
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Define pages

    First of all, make sure you get a file into the folder mentioned in the log.

    edit: changing fix
    Last edited by dbltoe; 6 Jul 2022 at 08:24 PM.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Define pages

    Since you have probably not messed with the original file, open your cPanel and navigate to:

    public_html/includes/templates/boostrap/templates/tpl_page_2_default.php

    Right-click on the file and select copy.

    In the Copy window, change
    Code:
    /public_html/includes/templates/bootstrap/templates
    to
    Code:
    /public_html/includes/templates/clone/templates
    and click on Copy Files.

    Next, check to see that you do not still have a partial blank page. If so, there should be another log that needs to be addressed.

    If not, you should now be able to edit the file from the tools menu in your admin.
    Attached Images Attached Images  

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Define pages

    Make sure you have

    ./includes/languages/english/html_includes/define_page_2.php

    and ideally also

    ./includes/languages/english/html_includes/clone/define_page_2.php
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Define pages

    Quote Originally Posted by swguy View Post
    Make sure you have
    ./includes/languages/english/html_includes/define_page_2.php
    and ideally also
    ./includes/languages/english/html_includes/clone/define_page_2.php
    Good advice to be sure of their presence.

    They should already be there if the OP has been able to edit them in the Define Pages Editor.

    The bootstrap tpl file is the file that allows the define_page_2.php file to be "seen" in boostrap.

    Hence, the log stating the tpl could not be found.

  10. #10
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Re: Define pages

    Quote Originally Posted by dbltoe View Post
    Since you have probably not messed with the original file, open your cPanel and navigate to:

    public_html/includes/templates/boostrap/templates/tpl_page_2_default.php

    Right-click on the file and select copy.

    In the Copy window, change
    Code:
    /public_html/includes/templates/bootstrap/templates
    to
    Code:
    /public_html/includes/templates/clone/templates
    and click on Copy Files.

    Next, check to see that you do not still have a partial blank page. If so, there should be another log that needs to be addressed.

    If not, you should now be able to edit the file from the tools menu in your admin.


    I cannot find the part to edit or am I missing it.

    Code:
    <?php
    /**
     * tpl_page_2_default.php
     * 
     * BOOTSTRAP v1.0.BETA
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_page_2_default.php 3464 2006-04-19 00:07:26Z ajeh $
     */
    ?>
    <div id="page2Default" class="centerColumn">
        
    <h1 id="page2Default-pageHeading" class="pageHeading"><?php echo HEADING_TITLE; ?></h1>
    
    <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
    <div id="page2Default-defineContent" class="defineContent">
    <?php
    /**
     * load the html_define for the page_2 default
     */
      require($define_page);
    ?>
    </div>
    <?php } ?>
    
    <div id="page2Default-btn-toolbar" class="btn-toolbar my-3" role="toolbar">
    <?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?>
    </div>
    
    </div>
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v156 How to define anchors (fragment identifiers) in define pages?
    By gernot in forum Customization from the Admin
    Replies: 11
    Last Post: 21 Jun 2019, 08:15 AM
  2. Blank Web Pages after changing Page_2_3_4 URLs in Define Pages
    By chevvychase81 in forum General Questions
    Replies: 14
    Last Post: 31 Mar 2011, 10:15 AM
  3. Define Define Pages / Information pages Manager needed
    By thunderesl in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2010, 02:42 PM
  4. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  5. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 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