Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Hi there,

    I'm a relatively new user to Zencart (version 1.39h). I've successfully changed the heading/nav bar titles of pages 2, 3 & 4 in the english.php file. However, I'm having problems after changing the URL too, to match these new heading/nav bar titles.

    I've followed the following instructions posted in another thread, and managed to change the URL itself. However, all the text from the web page previously displayed (i.e. page 2 had my 'About Us' text) is completely blank when I load up the page in a browser - even though it's displayed fine when I select the given page in the 'Define Pages' editor.

    Here are the instructions I followed to change the URL itself:

    "if you care about the url...

    you need to change includes/filenames.php
    find define('PAGE_2', 'page_2'); and change the lower case page_2 to what ever you want to name it - I CREATED AN OVER-RIDE FOLDER, COPIED FILENAMES.PHP TO THAT AND MODIFIED THAT FILE.

    now find includes/languages/english/page_2.php and rename it. ( changing the text inside as well - AGAIN, COPIED THE PAGE_2.PHP FILE TO MY OVER-RIDE FOLDER, RENAMED IT AND CHANGED THE TEXT INSIDE FOR THE NAVIGATION AND BREADCRUMB LINKS.

    now go to includes/languages/english/html_includes/page_2.php and rename it. - I DID NOT FIND THIS FILE HERE - COULD ONLY SEE "DEFINE_PAGE2.PHP. I JUST CHANGED THIS FILE NAME IN MY OVER-RIDE DIRECTORY.

    now go to includes/modules/pages/page_2 and change the name of the folder to what ever your new name is. - I CHANGED THE NAME OF THIS FOLDER DIRECTLY - I DID NOT CREATE AN OVER-RIDE FOLDER. SHOULD I HAVE ADDED AND OVER-RIDE FOLDER WITH THE RENAMED FOLDER INSIDE THAT? THERE IS A HEADER_PHP FILE IN THERE THAT I DID NOT CHANGE.

    now go to includes/templates/your_templat/templates/tpl_page_2_default.php and change the name to tpl_your new name_default.php - DONE"

    I also installed an SQL patch so my altered page names can be turned on/off from the 'Define Page' Status in the Admin, but this has made no difference, and a blank page is still displaying without the text I've written.

    I'd be so very grateful for some help with this issue as I've spent nearly 3 days trying to figure it out (the longest I've spent trying to figure out any single Zencart problem - just!)

    Many thanks in advance.....

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Get the 3rd party addon for about us

    It outlines the 8 files/edits required to create a new define page which is what you are attempting to do by changing all these thing for an existing define page
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Hi Kobra,

    Many thanks for the reply. I know this sounds stupid, but I don't really know how to install add-ons. I'd be too worried about uploading the new files/folders to the server and trying to ensure each goes to the correct destination. I did try to install an add-on once when I ran my test site on a local server (MAMP), and managed to crash the whole thing!

    Isn't there another way to change the 'Define Pages' URLs without having to go down the add-on route. After all, it was extremely easy to change the heading and nav bar titles to what I wanted - it's a bit frustrating for the URL change (to match these titles) to be so difficult to achieve!

    Were the steps I followed (outlined in my original post) incorrect, and/or did I miss something out?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Also look at the myDebug-xxx.log files to see what you've broken. Ref: https://www.zen-cart.com/tutorials/index.php?article=82
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    DrByte,

    I'm sorry but I wouldn't understand how to use this, and am unable to install 3rd party add-ons (please see above).

    Isn't there a straightforward way to change a Define Page URL, like there is to alter the heading/nav bar titles in the english.php file..?

  6. #6
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Please can anybody help with this - I'm tearing my hair out?!

    I can't have my URLs written as /page_2 or /page_3 or /conditions etc...

    Is there anyway to re-write the URL, without the text from the Define Page disappearing???

    I'm must add that I'm pretty new to Zencart, so please bear this in mind if you reply...

    Many thanks in advance...

  7. #7
    Join Date
    Jan 2009
    Location
    Ireland
    Posts
    431
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    What is it exactly that you are trying to achieve?
    just add more pages?

    installing addons is much simplier than what you are trying to do.

  8. #8
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    I'm trying to change the URL name from /page_2 to /about_us; /page_3 to /links; page_4 to /size_guide and so on... It doesn't look neat to click on the size guide and have the URL say page_3 etc. It's confusing for users and it may have an effect on SEO too.

    I managed to change the heading and nav bar titles with great ease, but altering the text in the english.php language file, and followed instructions I found on another thread (see original post) to change the page URL to page this. However, as already stated, my page is now blank when loaded into the web page - even though the relevant text displays fine when I edit it in 'Define Pages'.

    Installing add-ons might be really easy for yourself to do, but I'm new to all this, so to me it seems a daunting task.

    Can you help me to change the URL please..?

  9. #9
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    I meant 'by altering', not 'but altering'...

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Blank Web Pages after changing Page_2_3_4 URLs in Define Pages

    Installing add-ons might be really easy for yourself to do, but I'm new to all this, so to me it seems a daunting task.

    Can you help me to change the URL please..?
    If you require this alteration you need to roll your sleves up and follow what I posted in post #2

    There is no other way to accomplish what you seek
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Blank pages because of long (session?) urls
    By einarso in forum General Questions
    Replies: 15
    Last Post: 6 Jan 2013, 08:28 PM
  2. Define Pages Leaves Blank page?
    By NewbietoEC in forum General Questions
    Replies: 6
    Last Post: 15 Nov 2010, 01:04 PM
  3. Web pages are blank after transferring files
    By john_c in forum General Questions
    Replies: 4
    Last Post: 10 Mar 2010, 04:40 AM
  4. Web Links Are Not Working in Define Pages Editor
    By neophyte2007 in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Sep 2007, 06:23 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