Zen Cart Logo
Forums / General Questions / Text/Code doesn't display in Define Page Editor (definie_main_page.php)

Text/Code doesn't display in Define Page Editor (definie_main_page.php)

Views: 476

Results 1 to 3 of 3
29 May 2016, 6:12 PM
#1
sfklaas avatar

sfklaas

Zen Follower

Join Date:
Mar 2008
Posts:
219
Plugin Contributions:
0

Text/Code doesn't display in Define Page Editor (definie_main_page.php)

When I try to use the Define Page Editor through my Admin and try to edit the Define_main_page.php file, there is no text or code to modify. But if I go to my includes/languages/english/html_includes/CUSTOM/define_main_page.php file in my file manager of cpanel, I can see and edit all the text there. Why can't I see that code/text through my admin?

Thanks for any suggestions!

29 May 2016, 8:40 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Text/Code doesn't display in Define Page Editor (definie_main_page.php)

When trying to edit the file in the admin, does the same path appear above the text entry area as the file that you see/are editing through your cPanel?

Have you tried changing the text editor to view the source of the text box?

The file that you are viewing through your cPanel does it involve php code where you see something like ```

<?php ``` towards the start of the file?
30 May 2016, 12:28 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Text/Code doesn't display in Define Page Editor (definie_main_page.php)

What character set (CHARSET) is being used in your admin? Look in the main language file, for example /YOUR_ADMIN/includes/languages/english.php, for that definition.

What character set is being used by the define_page file? That's a bit more difficult, but I use NotePad++ and click on the Encoding tab to see the current encoding of the file.

The symptoms you describe could be due to your attempting to view a utf8-encoded define_page when your admin's display character-set is set to some latin1 variant (like ISO-8559-1).