Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Define Pages problem (after upgrade)

    Hi Guys,

    I thought I'd seen them all, but I'm working on a site update and have hit a snag that I've not managed to solve yet (and am about to head off to bed).

    Problem, when testing the define pages editor it seems to fail to import the existing file(s).

    The override folders are being used is per the following.

    Editing file:
    /home/xxxxx/public_html/store/includes/languages/english/html_includes/freetemplate3/define_contact_us.php
    The already edited page is displayed by the store as it should be, but the edit box is devoid of any data. This is using both plaintext and the ckeditor (which I've reinstalled)

    The strange thing is, if I 'edit' the blank page with a 'Hello World" and save it, all is working fine.. I see the newly edited page from the front end, and I can re-edit the page without any problem. I've verified that the edited page is indeed overwriting the original file at
    /home/xxxxx/public_html/store/includes/languages/english/html_includes/freetemplate3/define_contact_us.php so there is something amiss with the reading of the original files (The problem occurs with all define editor pages, not just the contact page.

    There's nothing in the log files to suggest anything is going wrong.

    Any ideas?

    Cheers
    Rod

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Define Pages problem (after upgrade)

    Not sure 100% of the cause, but as a workaround you may be able to simply "copy" from the source file, "paste" into the define text editor, and save. This may get you up and running and allow you to edit the define pages in the future.

    If nothing else I would try this on at least one page (keeping a backup of the original define page)... And then do a file comparison to see what is different between the original and the new one... Maybe some difference can be spotted which will help (Character encoding? Line terminators? EOF / NULL character out of place)?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Define Pages problem (after upgrade)

    Any chance it's a browser issue ? Looking through the forum, it looks like a character set mismatch will cause that, too.
    Last edited by stevesh; 15 Oct 2013 at 07:16 PM.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Define Pages problem (after upgrade)

    Quote Originally Posted by RodG View Post
    The already edited page is displayed by the store as it should be, but the edit box is devoid of any data.
    As stevesh said, that's a classic symptom of charset mismatch.
    .

    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
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Define Pages problem (after upgrade)

    Thanks Guys. Problem solved.

    It was a character set mismatch, and I have to blame myself for this one.

    When I'd made the change to keep iso-8859-1/latin1 I somehow managed to use a ` rather than a' (what can I say.. it'd been a long day and I was tired)
    (backtick vs single quote)

    Apologies to all, and thanks again.

    Cheers
    Rod

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Define Pages problem (after upgrade)

    Hi Guys,

    I've just found another strange problem with my latest site upgrade.

    Neither of the shippinginfo and conduct_us show up. Both produce a 'page not found' error, but only when the store is live. If I switch it back to "Down for maintenance" there's no problem.

    Any ideas?

    Cheers
    Rod

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Define Pages problem (after upgrade)

    Quote Originally Posted by RodG View Post
    Hi Guys,

    I've just found another strange problem with my latest site upgrade.

    Neither of the shippinginfo and conduct_us show up. Both produce a 'page not found' error, but only when the store is live. If I switch it back to "Down for maintenance" there's no problem.

    Any ideas?

    Cheers
    Rod
    I'm still struggling with this. I also need to add the 'Privacy Notice' to the list. Again, only when the site is live. All is fine when Down for maintenance.

    I'm really stumped. What is it about being in maintenance mode that could be preventing a problem that shows on the live site? I've also not been able to determine exactly what the filename is that is causing the error. Nothing in any of the logs. There's no URL rewriting tools installed.

    Cheers
    Rod

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

    Default Re: Define Pages problem (after upgrade)

    RodG,
    In another thread, it was found that the culprit for the mismatch was a define file for the template. It was not in an area that the DTK searched.
    Maybe that's the culprit in your case as well.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Define Pages problem (after upgrade)

    Quote Originally Posted by dbltoe View Post
    RodG,
    In another thread, it was found that the culprit for the mismatch was a define file for the template. It was not in an area that the DTK searched.
    Maybe that's the culprit in your case as well.
    I'm not discounting this (in fact I'm not discounting anything at the moment), but if it were a template/define problem I'd be expecting to be seeing the same issue when both live and in maintenance mode, because the same templates/defines are being used in both cases.

    Obviously I'm missing some important factor here, but I'm just not seeing what it is. Are there modules (or something) being activated in live mode that are *not* being activated in maintenance mode that are causing a conflict? If so, which ones?

    I'm starting to think I'm going to have to bite the bullet on this one and install a copy of the site locally, then step through the code line by line. (At the moment I'm working on a copy on the clients server).

    Cheers
    Rod

 

 

Similar Threads

  1. Replies: 9
    Last Post: 10 Apr 2013, 01:09 PM
  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. Help, lost some define pages after upgrade
    By jon113 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Jan 2011, 06:09 AM
  4. After Upgrade define pages editor does not work.
    By ADE Cyber Emporium in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Oct 2010, 02:57 PM

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