If this is your first visit, check our documentation. To post, register or login.

Fatal Error

Locked

Started by lizar5 on 1 Jun 2008, 1:20 PM · Views: 1,771

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
1 Jun 2008, 1:20 PM
#1
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Fatal Error

I just upgraded and noticed this when going to list new items

Fatal error: Call to undefined function: zen_get_products_sale_discount() in /public_html/admin/includes/modules/category_product_listing.php on line 143

1 Jun 2008, 3:12 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Fatal Error

That function is located in:
/includes/functions/functions_prices.php

and in the Admin it is in:
/admin/includes/functions/functions_prices.php

Check to ensure that you have Upgraded your site correctly and not added on add-ons that have overwritten these files ...

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 Jun 2008, 2:45 AM
#3
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: Fatal Error

Ajeh:

That function is located in:
/includes/functions/functions_prices.php

and in the Admin it is in:
/admin/includes/functions/functions_prices.php

Check to ensure that you have Upgraded your site correctly and not added on add-ons that have overwritten these files ...

hey, pretty sure this is causing some problem... what does this have to do with anything?

<td class="dataTableContent" align="right"> <?php echo zen_get_products_sale_discount('', $categories->fields['categories_id'], true); ?></td>
3 Jun 2008, 2:57 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Fatal Error

That is letting you know the discounts and since the function is missing you are getting the error instead ...

Either you are missing the function zen_get_products_sale_discount altogether or the function file is not being loaded ...

Do a search in your Tools ... Developers Tool Kit ...

In the bottom input box enter:
function zen_get_products_sale_discount

pick the Catalog/Admin and see what comes up ... you should see the same files that I posted ...

Then, if you enter:
zen_get_products_sale_discount

it should show you what files are calling this function ...

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 Jun 2008, 12:22 AM
#5
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: Fatal Error

that search returned this

/home/d2equip/public_html/includes/functions/functions_prices.php

Line #803 : function zen_get_products_sale_discount_type($product_id = false, $categories_id = false, $return_value = false) {

Line #895 : function zen_get_products_sale_discount($product_id = false, $categories_id = false, $display_type = false) {

the coding of both files is fine, they are the default from zencart
their is no outside coding or editing
if there is any errors its based off the default coding from
zen-cart-v1.3.8a-full-fileset-12112007

4 Jun 2008, 2:35 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Fatal Error

Check and see if you have a similar function in the /admin ... you should have two files that have this function ... this one too is needed:
/admin/includes/functions/functions_prices.php

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 Jun 2008, 4:18 PM
#7
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: Fatal Error

Ajeh:

Check and see if you have a similar function in the /admin ... you should have two files that have this function ... this one too is needed:
/admin/includes/functions/functions_prices.php

YOU THE MAN AJEH! FIXED :D