Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Links Inoperable, all link locations

    To whom may help:

    A few days ago I completed a new install of Zen Cart 1.5.5 using a Toshiba laptop still running Windows Vista Home Version (2007) and installed to a website hosted by HostGator. The Apache hosting server is running OS Linux 3.12.44-94.ELK6.x86_64 along with PHP version 5.5.30 (Zend: 2.5.0) and SQL version 5.5.23 (with options for later versions of both).

    I installed Zen Cart via ftp and by running the zc_install program. MyZen Cart store's address is:


    For the past several days, I've been working to create a customized template for my Zen Cart installation. I named my custom template folder 'emporium'. I haven't installed any plug-ins or add-ons. Please note that I'm just now building this site, so there's not much to see there, if you go to look at it, and I've still many wrinkles to work out. I've been working out the wrinkles one by one by studying the Zen Cart forum postings and FAQs, so that I didn't bother people with meandering questions that have already been answered. So far so good, but despite several days of effort and searching, I can't figure out a problem with my Contact Us link.

    Here's the essential problem: The Contact Us link (renamed "In Touch" in my customized template) doesn't work either in the Information sidebox or on the Site Map. When I click the link in either place, I get a standard HostGator 404 error. Along with standard definitions (as in my customized english.php file), I've located these files that (I assume) should work together to produce both the Contact Us link and the Contact Page itself:

    modules
    includes/modules/pages/contact_us/header_php.php
    includes/modules/pages/contact_us/on_load_main.js
    definitions
    includes/languages/english/emporium/contact_us.php
    text
    includes/languages/english/html_includes/emporium/define_contact_us.php
    contact page
    includes/templates/emporium/templates/tpl_contact_us_default.php

    I have the Contact Us Page Status set to 1 in the Define Page Status Configuration set. Thinking that I had inadvertently broken a file while customizing, I switched back to the Responsive Classic Template (installation files untouched) so that I could study the link properly operating as a way to fix the problem in my customized template. I found, though, that the Contact Us link also doesn't work either in the Responsive Classic Template or in the Classic Contemporary Green template.

    I don't know if the following information bears on the problem, but I'll include it just in case. Here's a rendered link (About Us) from the Information sidebox that works:

    <a href="http://lunekeltkar.xibeta.com/catalog/index.php?main_page=about_us">About the Emporium</a>

    Here's the rendered link for the broken Contact Us link:

    <a href="https://gator4244.hostgator.com/-kennith69/index.php?main_page=contact_us&amp;zenid=d181ffa1c4e852bbd10f2e6dc60bec75">In Touch</a>

    The first part of the link ('https://gator4244.hostgator.com/-kennith69') is I assume the link for the HostGator 404 error page. The remainder of the link ('/index.php?main_page=contact_us&amp;zenid=d181ffa1c4e852bbd10f2e6dc60bec75') identifies the page that isn't manifesting, although this link alone has an addended ZenID. I don't know what that addendum may indicate.

    I don't know where to look farther for a solution to this problem. Any direction would be appreciated.

    Regards,

    Ken Baker

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,513
    Plugin Contributions
    126

    Default Re: Contact Us Link Inoperable, all link locations

    In fact, none of your links work (the Login link at the top of the page also gives a 404). The problem is in your configure.php file.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Contact Us Link Inoperable, all link locations

    I would say that somewhere somehow you have hard coded this into your fileset

    When I hover over "In Touch" the hostgator link displays even before it is clicked

    So it looks like you have hard coded the 404 link

    Try using the developers toolkit in the ZenCart admin and search for "hostgator"
    See where it may be in your files

    Ahhh good catch swguy - - it appears that https links lead to a 404
    Check the configure.php file and set ssl to "false" and see if that changes anything
    Last edited by kobra; 21 Apr 2016 at 05:39 PM.
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Contact Us Link Inoperable, all link locations

    swguy,

    You assert:

    Quote Originally Posted by swguy View Post
    In fact, none of your links work (the Login link at the top of the page also gives a 404). The problem is in your configure.php file.
    This assertion is incorrect. All of my current links work save for the Contact Us and the Log In links. I already knew that my Log In link doesn't work, but that's a wrinkle to be ironed out on another day. Right now I'm trying to iron out the problem with my Contact Us page.

    I'll take a look at the configure.php file, but I've made no changes to that file, so I can't imagine how it might have gotten broken. At any rate, I find it a bit of a puzzle that the Contact Us link doesn't work with either of the two standard template installations (the Responsive Classic and the Classic Contemporary Green templates). I had assumed that these standard templates would be operational right out of the box.

    Ken Baker

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

    Default Re: Contact Us Link Inoperable, all link locations

    Quote Originally Posted by KenBaker View Post
    of the two standard template installations (the Responsive Classic and the Classic Contemporary Green templates). I had assumed that these standard templates would be operational right out of the box.
    Actually, they do work properly out-of-the-box.

    It seems you've got a configuration problem, particularly since forms such as contact-us attempt to submit via SSL. If your SSL is misconfigured in your configure.php then of course you'll get problems similar to what you said you know exist for login.
    .

    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.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Contact Us Link Inoperable, all link locations

    By default, the two pages that have a problem (among other such pages) are to be served via https when https is enabled in the includes/configure.php file. Because these two specific links are not generated properly, it implies that the parts that create a https: page are incorrect (at least for your setup). So yes, out of the box, the links do get properly generated, but if the box is told that ssl is enabled and it is not or if it is told that it is enabled and given the wrong path to get there, then it won't come out right. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Contact Us Link Inoperable, all link locations

    kobra,

    Thanks for the direction. I opened /includes/configure.php and changed this line:

    define('ENABLE_SSL', 'false'); [Originally it read 'true'.]

    I uploaded the edited configure.php file to the website directory, but when I refreshed the screen, the entire site reverted to a pre-install screen for Zen Cart, and I can't get the site back. I suppose I broke something even more seriously in the configure.php file, but I'm too discouraged to try to ferret out the errors today. I'll try to figure it out tomorrow.

    Thanks again for the direction,

    Ken Baker

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Links Inoperable, all link locations

    I opened /includes/configure.php and changed this line:
    What application did you open that file with??

    If not a code editor then yes most likely muffed it up

    One free code editor is notepad++
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,909
    Plugin Contributions
    13

    Default Re: Links Inoperable, all link locations

    it seems that the current problem is related to your DB credentials.

    i would double check these entries in the configure.php file (and most closely the last 3):

    Code:
    define('DB_TYPE', 'mysql'); // always 'mysql'
    define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
    define('DB_SERVER', 'localhost');  // address of your db server
    define('DB_SERVER_USERNAME', 'USERNAME');
    define('DB_SERVER_PASSWORD', 'PASSWORD');
    define('DB_DATABASE', 'DATABASE NAME');
    good luck!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Links Inoperable, all link locations

    Good morning, kobra,


    You ask:

    Quote Originally Posted by kobra View Post
    What application did you open that file with??

    If not a code editor then yes most likely muffed it up

    One free code editor is notepad++
    I do happen to use Notepad++, v. 6.9.1 (still with the kludgy desktop icon, for sentimental reasons). Whatever happened essentially reset my configure.php files to the default, out-of-the-box settings (save for the SSL setting that I manually changed, which did change to 'false'). So far this morning I've been able to recoup about 95% of my customized Zen Cart setup, though I can't view it at present, as I haven't been able to get Zen Cart connected to the ZC database that I set up for my store. That should be a relatively easy glitch to resolve, which I expect that I can manage on my own.

    I recognize, of course, that I caused this problem, not the ZC program. I know that software programs occasionally misbehave, but in my experience the problems that I've encountered with programs almost always turn out to be problems with me.

    I'm still a bit puzzled by the SSL problem. I have a shared SSL certificate through my hosting service with HostGator (not the best SSL choice, I know, but I can't afford an individual SSL certificate at present). Before setting up Zen Cart originally, I got the secure server address from HostGator. Thus, when I configured my Zen Cart store, I activated SSL and entered the secure server address that I had been given by HostGator. I thought that these steps would ensure that the SSL pages would work properly when I activated my Zen Cart store. Obviously that wasn't the case. I clearly recognize that this SSL glitch arises somewhere between me and HostGator, as I'm sure that this built-in Zen Cart SSL protocol has worked fine for likely thousands of other ZC sites. I'm on hold with HostGator (67 minutes and counting) to figure out what went wrong.

    Again, thanks for your help,

    Ken Baker

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. cross link entire categories to multiple locations?
    By johnny roastbeef in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Oct 2012, 09:14 PM
  2. v139f linksmanager - all links listed in my link category pages have suddenly disappeared
    By asiaradiosales in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 28 Feb 2012, 05:44 AM
  3. all locations for url paths?
    By nathanscrivener in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 26 Nov 2010, 04:09 PM
  4. Replies: 1
    Last Post: 1 Jul 2009, 08:09 PM
  5. How to add a simle text link under New/All Products links in CAT side box?
    By oavs in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Dec 2008, 03:17 AM

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