Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default shipping estimator breaks at line 8?

    Parse error: syntax error, unexpected '}' in /public_html/includes/templates/my_custom_template/templates/tpl_modules_shipping_estimator.php on line 8
    Above error is what I get where I should see the estimated shipping in the shopping cart. Looked at tpl_modules_shipping_estimator.php, but nothing jumps out at me. Exceptionally baffling in that line 8 is commented author/version notes, containing no '}' whatsoever.

    Any ideas? I am encountering this error on a site running 1.3.6. I compared tpl_modules_shipping_estimator.php to its counterpart on another site running 1.3.5 with the 1.3.6 database patch, and the files are perfectly identical. The shipping estimator on the other site works fine.

    Prior to upgrading the site with the broken estimator to 1.3.6, I had some custom coding done to prevent different Product Types from going through the checkout together (long story) -- I wonder if I may have mutilated something pertaining to the override when I upgraded. So far, everything else seems to work fine.

  2. #2
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: shipping estimator breaks at line 8?

    I don't know why this worked, but it did.

    I deleted extra lines from tpl_modules_shipping_estimator.php, then tried again. Works like a charm now.

    It's a moot point, but I'm awe-struck by how a file that throws errors on one site can work fine on another. Maybe a subtle difference in configuration of shared hosting servers?

    No matter: I'm just relieved it works again.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: shipping estimator breaks at line 8?

    Might be one of those mysterious errors of the invisible something living on a line and by deleting it you remove whatever the invisible something was ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: shipping estimator breaks at line 8?

    Death to the Invisible Somethings!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: shipping estimator breaks at line 8?

    I have often wished that myself ... but they live on ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 Shipping Estimator Questions for Popup and In-Line Cart Views
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2012, 12:52 AM
  2. Shopping cart and popup shipping estimator shows items/weight/total line but shouldnt
    By ffdotnet in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Aug 2010, 02:59 PM
  3. Line Breaks ??
    By evil turinp in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Feb 2010, 12:07 PM
  4. New line or Add a Space in CSS Shipping Estimator
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 26 Apr 2009, 12:48 PM

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