Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Shipping Modles - Error in Admin

    I'm getting the following error on my "shipping modules" page in admin:
    Fatal error: Call to a member function show_weight() on a non-object in /home/mycpanel/public_html/includes/modules/shipping/perweightunit.php on line 66
    I can't understand what this problem is, I can't find anything wrong with the code, I don't know when or why this started - and I haven't found anything in the forums. Can anyone lead me in the right direction?

    Asked for some help here as well, will be following both threads:
    http://www.zen-cart.com/forum/showthread.php?t=155328

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

    Default Re: Shipping Modles - Error in Admin

    the show_weight is not available in the Admin so you need to preface that test with:
    !IS_ADMIN_FLAG &&

    Example: in an IF statement you would use something like:

    Code:
    if (!IS_ADMIN_FLAG && $_SESSION['cart']->show_weight() > 30) {
    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!

  3. #3
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Re: Shipping Modles - Error in Admin

    Quote Originally Posted by Ajeh View Post
    the show_weight is not available in the Admin so you need to preface that test with:
    !IS_ADMIN_FLAG &&

    Example: in an IF statement you would use something like:

    Code:
    if (!IS_ADMIN_FLAG && $_SESSION['cart']->show_weight() > 30) {
    That worked! Thanks Sent a donation

    Any idea why this may have changed, for "no reason"?

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

    Default Re: Shipping Modles - Error in Admin

    Perhaps you set all your Shipping modules up and then made your customizations and never went back to the Modules ... Shipping ... to notice that there was a problem on the Admin side with your new code ...
    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. v150 USPS Shipping Configuration Error in Admin
    By stangirl in forum Addon Shipping Modules
    Replies: 6
    Last Post: 16 Apr 2013, 05:22 PM
  2. Error message in Admin - Shipping Modules
    By dfontana in forum Customization from the Admin
    Replies: 6
    Last Post: 24 Mar 2008, 02:37 PM
  3. Strange Error in shipping admin when clicking on UPS & USPS
    By theVR in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 3 Jul 2007, 01:47 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