Zen Cart Logo
Forums / General Questions / Contact Us Page not showing up

Contact Us Page not showing up

Views: 1,536

Results 1 to 17 of 17
3 Sep 2013, 8:39 PM
#1
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Contact Us Page not showing up

Unusual issue. Every time I try and go to the contact page on my Zen Cart website, it's not pulling the html content. I have gone to the admin section and under define pages checked to make sure the content was there, I have also changed it from the includes/languages/english/html_includes/classic/define_contact_us.php file. Everything on the coding part shows up like it should be pulling up and on my local website it is pulling up ok. It's just having issues on the live website.

Here is a link to the contact page on the live website: http://gunsandmore.org/~gunsan6/index.php?main_page=contact_us
Here is the code that's in the define_contact_us.php file:

<ul id="contactInfo">
    <li>
        <b>Business hours:</b> 8:30AM - 6PM Monday - Saturday
    </li>
    <li>
        Call us at anytime during business hours at <b>(931) 657 - GUNS (4867)</b>
    </li>
    <li>
        If Your looking to purchase a Firearm, please have your purchase information available
        and for shipping, the location to your nearest FFL (Federal Firearms Licensed) Dealer.
    </li>
    <li>
        <b>We are located at:</b>  <br/>
        Guns And More <br/>
        6877 Spencer HWY <br/>
        Sparta, TN 38583
    </li>
    <li>
        <b>Driving Directions from Sparta, TN:</b><br/>
        Head South on HWY 111 (Spencer HWY) 4 miles outside of city limits is the Spencer/HYW-11 split. 
        Stay right heading towards Spencer. We will be a half mile on the left. We are the old furniture building.
    </li>
</ul>

Any help on this issue or suggestions?

3 Sep 2013, 9:09 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Contact Us Page not showing up

Any error log files in your /logs folder ?

3 Sep 2013, 9:33 PM
#3
lat9 avatar

lat9

Administrator

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

Re: Contact Us Page not showing up

Do you possibly have the define-page turned off in Configuration->Define Page Status?

3 Sep 2013, 10:18 PM
#4
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

Nothing in my Error logs, and the status to the contact us page is a 1. This is really confusing as to why it's not being pulled up.

3 Sep 2013, 10:30 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Contact Us Page not showing up

That appears to be a partial blank page issue, and I would expect an error log file. What version of Zencart ? Also check the /cache folder for error logs. Your Shipping and Returns page is also blank, so you might see what's the same about those two pages.

3 Sep 2013, 10:40 PM
#6
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

Ok, logs were under the cache folder. This is what I'm getting below and the version I'm running is 1.5.0.

For Contact Us:
[03-Sep-2013 15:34:50 America/Los_Angeles] PHP Parse error: syntax error, unexpected T_REQUIRE in /home/gunsan6/public_html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 1

For Shipping:
[03-Sep-2013 15:33:50 America/Los_Angeles] PHP Parse error: syntax error, unexpected T_REQUIRE in /home/gunsan6/public_html/includes/templates/template_default/templates/tpl_shippinginfo_default.php on line 1

3 Sep 2013, 11:39 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Contact Us Page not showing up

Possibly a problem with the content you added. Did you enter it directly, or paste it from another program ? Try removing the content and adding a single word using a text editor and see if it displays.

4 Sep 2013, 12:16 AM
#8
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

Modified it to say only "Hello World" and that's not getting pulled up. It's as if it's having problems even retrieving the page which I don't understand as to why it would be having that problem.

4 Sep 2013, 11:49 AM
#9
stevesh avatar

stevesh

Black Belt

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

Re: Contact Us Page not showing up

Have you tried replacing the two files mentioned in the error messages with new ones from the Zencart .zip file ?

4 Sep 2013, 5:47 PM
#10
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

stevesh:

Have you tried replacing the two files mentioned in the error messages with new ones from the Zencart .zip file ?

Yes I have and the issue still is there. I'm terribly sorry to keep this post going but i'm completely confused as to why my Contact Page is still giving me this issue. Do you know what php file calls the Contact Us page? I don't think there would be an issue on that file but I'll check.

4 Sep 2013, 5:59 PM
#11
stevesh avatar

stevesh

Black Belt

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

Re: Contact Us Page not showing up

And are you still getting the same error messages ? Remember, you're also having the same problem ith the Shipping and returns page.

4 Sep 2013, 6:18 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,786
Plugin Contributions:
11

Re: Contact Us Page not showing up

Have you or a mod (you didn't answer any of the posting tips) changed the tpl_main_page.php in the common folder? It appears the load fails just as the center column is being prepared for display.

Mod status is even more important in your case as you have chosen to stay with a modified classic template versus the override system. Many times a mod will contain files for a custom template folder that will NOT work when put in the templates_default if you are using classic. You might want to rethink the use of the classic template as it will continue to cause difficulty. Especially on upgrade.

5 Sep 2013, 3:04 PM
#13
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

Ok, I actually figured it out. It took some really in depth debugging

Yes, I was having the same problem, and it had nothing to do with any other file or even the extra code I had written but the tpl_contact_us_default.php page. I'm going to explain this so anyone who comes across this post having the same issue might be able to use this for help.

What was happening is when the php file was getting uploaded is was rewriting and compressing itself to only 1 Line. This caused an issue with the way the code was actually written on the default template. It took actually re-opening the template file, copying the code from the un-uploaded file that was formatted correctly on every line, and pasting it into it. After doing this, the file is working just fine and well.

Just uploading the original file won't and didn't fix it though. It actually takes reopening and copying and pasting code back into the file formatted correctly to actually get this to work. I don't know if it's something filezilla or my hosting does when code gets uploaded but that was what was causing the problem.

Very unique if you ask me.

5 Sep 2013, 3:15 PM
#14
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,786
Plugin Contributions:
11

Re: Contact Us Page not showing up

Who was doing the uploading and how was it being done? You mentioned filezilla but I wonder if your settings are off the norm. Cpanel is known to not be a reliable upload tool as well.

5 Sep 2013, 3:21 PM
#15
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

I was using Filezilla, it's under cPanel and with Inmotion hostings Power Plan. I just know it started out with it being formatted correctly and once uploaded it was compiled down to 1 line which was giving me the issue. It actually took reopening the file and copying and pasting the code. That's why it was working ok on the local servers but after being uploaded it was giving me issue. And I haven't changed any of the Filezilla settings besides adding accounts to it since I've installed.

5 Sep 2013, 5:17 PM
#16
jamadri avatar

jamadri

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
31
Plugin Contributions:
0

Re: Contact Us Page not showing up

dbltoe:

Have you or a mod (you didn't answer any of the posting tips) changed the tpl_main_page.php in the common folder? It appears the load fails just as the center column is being prepared for display.

Mod status is even more important in your case as you have chosen to stay with a modified classic template versus the override system. Many times a mod will contain files for a custom template folder that will NOT work when put in the templates_default if you are using classic. You might want to rethink the use of the classic template as it will continue to cause difficulty. Especially on upgrade.

I think I'm starting to run into more issues like this. In order to use the override system, is all I need to do is change the "classic" template folder to a new name and point the template to the correct folder? Is there a link you could give me on using the override system in Zen Cart?