Forums / Customization from the Admin / define_main_page blank in admin

define_main_page blank in admin

Started by pixelpadre on 14 Jun 2012, 11:47 AM · Views: 2,710

Results 1 to 16 of 16
14 Jun 2012, 11:47 AM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

define_main_page blank in admin

define main page is blank in admin, all of the other pages come up fine using v1.5.

When I go directly to the file via control panel, everything shows up in the file that admin told me I could go to edit. No biggie but I find it odd.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2012, 12:32 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: define_main_page blank in admin

I had exactly the same thing happen with one installation. Never did figure out what was happening.

14 Jun 2012, 12:35 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: define_main_page blank in admin

Character Set problem?

.
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.

14 Jun 2012, 1:37 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: define_main_page blank in admin

Not unless I munged something up by mistake. The original edit on define_main_page was done in the editor (Plain Text mode), saved properly and appeared on the site OK. It's just when I re-opened it in the editor, the page (in the editor window) was empty and anything entered into it after that didn't 'take'.

14 Jun 2012, 1:43 PM
#5
lat9 avatar

lat9

Administrator

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

Re: define_main_page blank in admin

Are there any admin .log files in the /cache directory? I've seen this issue when, as DrByte said, there was a charset-related problem with the data.

14 Jun 2012, 3:14 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: define_main_page blank in admin

Character Sets must not be mismatched. If they are mismatched then the data won't be displayed.

.
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.

15 Jun 2012, 12:49 AM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

14-Jun-2012 04:36:45] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in public_html/.com/idscanners/Rapscallion/define_pages_editor.php on line 188???

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

15 Jun 2012, 1:18 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: define_main_page blank in admin

.
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.

15 Jun 2012, 2:08 AM
#9
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

while we're on the subject of cache log files.....whats this?

[11-Jun-2012 04:56:59] PHP Warning: require(includes/templates/template_default/templates/tpl_advanced_search_resultmain_page1_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

15 Jun 2012, 2:35 AM
#10
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

Clicked on your link. Ambiguous directions....is it latin1 or iso-8859-1? I tried changing the two configs and english.php and nothing changed in define page editor.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

15 Jun 2012, 3:54 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: define_main_page blank in admin

pixelpadre:

while we're on the subject of cache log files.....whats this?

[11-Jun-2012 04:56:59] PHP Warning: require(includes/templates/template_default/templates/tpl_advanced_search_resultmain_page1_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in

That will be from you typing in a wrong URL ... ie: index.php?main_page=advanced_search_resultmain_page1

.
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.

15 Jun 2012, 9:27 PM
#12
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

In myphpadmin this is the info about mysql:

Server: Localhost via UNIX socket
Server version: 5.0.92-community-log
Protocol version: 10
User: &&^%$@localhost
MySQL charset: UTF-8 Unicode (utf8)
Is there a way to change that to latin?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

15 Jun 2012, 9:31 PM
#13
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

Thats odd because I don't believe I use advanced search or even regular search on my website. Could it have been a viewer or spammer?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

27 Jun 2012, 11:54 PM
#14
piop avatar

piop

New Zenner

Join Date:
May 2012
Posts:
8
Plugin Contributions:
0

Re: define_main_page blank in admin

pixelpadre:

14-Jun-2012 04:36:45] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in public_html/.com/idscanners/Rapscallion/define_pages_editor.php on line 188???

Hi, I experienced this problem after installing the ck editor to use on define main page. After using the ckeditor my slideshow images show they slide but don't actuallly show. Have swapped char set as instructed in the link;
http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8.
And vice versa still my images are not showing... not even the slide show images...failed to solve this with a late night help help.

This is line 188;

<td class="main"><?php echo zen_draw_textarea_field('file_contents', 'soft', '100%', '30', htmlspecialchars($file_contents, ENT_COMPAT, CHARSET, TRUE), (($file_writeable) ? '' : 'readonly') . ' id="file_contents"'); ?></td>

any ideas?

19 Jul 2012, 10:15 PM
#15
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: define_main_page blank in admin

:smartalec:Well. Once again, I solved my own problem. Just like being back in college again.

I opened the blank files in a text editor and found a strange character shaped like a square. Deleted it and Vuola! All pages viewable now!!!!!!!!!

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

20 Jul 2012, 8:09 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: define_main_page blank in admin

Glad you found and removed the characters from the invalid character set, which then solved the problem.

.
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.