Forums / General Questions / Help - I broke something! (maybe an easy fix?)

Help - I broke something! (maybe an easy fix?)

Locked

Views: 1,148

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
28 Feb 2008, 10:34 PM
#1
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Help - I broke something! (maybe an easy fix?)

Hi,

I am almost ready to launch my first Zen Cart. My last step was to set up shared SSL with my host and to go through the Security steps in the tutorial on the Zen Cart site.

I verified that the SSL stuff seemed to be working fine before moving on to the Security steps found here: https://www.zen-cart.com/tutorials/index.php?article=73

I did steps 1-6 and step 8. When I went to all the "define" files in the folder for my template under html_includes, they were all already set to 644 so I did not make any changes there.

I then went into Admin and turned OFF my category that is Test Products. When I did that I got an error saying:
Error: Catalog images directory is not writeable: /Library/WebServer/WebSites/harmonyyoga/public_html/zencart/images/

However, I checked that directory and it is 755, so I'm not sure why it is saying that? (My site doesn't have any images either)

ANYWAY, here is the problem: now when I go in my Zen Cart none of my "define" content on the main page, privacy page, etc. displays at all!

Where has it gone? Can anyone help me or tell me what to check?

Site is http://www.harmonyyogaannarbor.com/zencart

Man I was really hoping to get this launched tonight before I leave for the weekend! What the heck did I screw up???

Karen :ohmy:

28 Feb 2008, 11:07 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

Whenever you run into these type problems or just for good form, doing a Code Validation is strongly advised.

For your site, coding errors need correcting as your page is not fully displaying. Some code you put in your 'define_pages' perhaps, is causing the problem?

The learning is in the doing.

Potent Products

28 Feb 2008, 11:42 PM
#3
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

Thanks Rob. I see what you mean... even without validating, I can see when I View Source that the page is not totally loading in. It gets up to the point where it should load the unique content and then bails.

The thing is, I don't know wny it's doing that. I have not added any new code since the last time it was working properly. I have checked all my "define" files for my template and they all still contain all the content I am hoping to see.

I guess I will go back through everything I was doing related to the security stuff and see if I have a missing semicolon in there or something! Man, I just cannot figure out why it is bailing out on me! :frusty:

Karen

29 Feb 2008, 12:06 AM
#4
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

I am truly :frusty:

I have looked at includes/languages/english/index.php and that appears to be where it calls in the TEXT_INFORMATION that is defined in the various pages under includes/languages/english/html_includes/MY_TEMPLATE

The html_include files all look fine and I haven't made any changes there. I have also double checked that all the permissions are 644.

Here is my index.php. My greetings display just fine but then I get no copy after that. I think it is bailing out on line 21, or maybe wherever it goes to look based on line 21 has something wrong? (I don't even know where to look for that...)

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', 'Welcome! Please <a href="%s">log in</a> to get started.'); } else { define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.'); } define('TEXT_GREETING_PERSONAL', 'Welcome <span class="greetUser">%s</span>!'); define('TEXT_INFORMATION', 'Define your main Index page copy here.'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product Image'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Filter Results by:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Harmony Yoga Online Class Registration and Payment'); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Harmony Yoga Online Class Registration and Payment'); } ?>
29 Feb 2008, 12:32 AM
#5
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

Maybe this is a valuable clue:

In the source code that gets sent to the browser, the page gets as far as an opening div tag for:

<div id="indexDefaultMainContent" class="content">

and then that's it, that's where it is bailing out...

So is there someone smarter than me that knows which file I should look at to find what is causing it to bail at that particular point?

Karen

29 Feb 2008, 1:04 AM
#6
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

OK, I think I am getting somewhere. I turned on error reporting and I'm getting a Warning that my define_main_page.php failed to open (no such file or directory). That is followed by a Fatal error because it doesn't have that file.

However, I have checked and double checked and triple checked and all of my "define" files ARE there in html_includes under my template folder!

So why would it say they are not there when they are? Am I getting closer?

I don't want to post the exact warnings here since that could provide permanent info about paths on my site, but if you go to the page now you can see it and once I get this figured out I will disable the errors again...

Anyone? I'm dying here!

Karen

29 Feb 2008, 1:20 AM
#7
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

I fixed it! I fixed it! :clap:

Turns out the permissions on my html_includes folder had gotten changed to 744 instead of 755.

3 hours later... :shocking: UGH

Thanks, you all, for putting up with my rambling on this.

29 Feb 2008, 1:42 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Help - I broke something! (maybe an easy fix?)

Nice bit of trouble shooting and glad to hear it's now sorted. :smile:

The learning is in the doing.

Potent Products