Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function: clear_posts() ..checkout_payment.php


EM60

Recommended Posts

Hi everyone,

 

I have spend the last 2-3 days trying to resolve this error with the help of these forums but I am still not there yet.

 

I have a number of contributions installed on my shopping cart that includes

1.Credit Class and Gift Voucher (CCGV - installing instructions by Deathgod)

2. Paypal IPN for osCommerce

3. Header Tags Controller

4. All Products

5. cDynamic Meta Tags

6. Easypopulate Ver 2.79

 

 

However I think my problem is to do with payment scripts as the error clearly indicates

 

 

Fatal error: Call to undefined function: clear_posts() in /home/cashregi/public_html/catalog/checkout_payment.php on line 90

 

--------------------------------------------------------------------------------------------

line 90 in checkout_payment.php is in blue as follows:

 

// #################### Added CGV ######################

require(DIR_WS_CLASSES . 'order_total.php');//ICW ADDED FOR CREDIT CLASS SYSTEM

$order_total_modules = new order_total;//ICW ADDED FOR CREDIT CLASS SYSTEM

[color=#3333FF]$order_total_modules->clear_posts(); // ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13[/color]

// #################### End Added CGV ######################

 

 

it seems I am going round and round on this roundabout and I am hoping someone can help me take the correct exit to get to my destination.

 

thank you for reading this

and if you can help I will be so grateful.

 

Edwin

Link to comment
Share on other sites

--------------------------------------------------------------------------------------------

line 90 in checkout_payment.php is in blue as follows:

 

// #################### Added CGV ######################

require(DIR_WS_CLASSES . 'order_total.php');//ICW ADDED FOR CREDIT CLASS SYSTEM

$order_total_modules = new order_total;//ICW ADDED FOR CREDIT CLASS SYSTEM

[color=#3333FF]$order_total_modules->clear_posts(); // ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13[/color]

// #################### End Added CGV ######################

 

Hello!

Im also new to php but try this: search for older version of this contribution since it says here that this is new in this version "by Rigadin in v5.13" then compare the two versions and do the changes, or You can try to put space after clear_post before () or maybe space goes before clear_post so it looks like that?:

$order_total_modules -> clear_posts(); - this could be it, i dont know, try, call to undefined functon is mostly typing error in the code!

Good luck!

Link to comment
Share on other sites

You suggestion were much appreciated. I tried inserting a space before and after 'clear_posts'

 

[/code]

$order_total_modules->clear_posts(); // ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13

 

but regrettably to no joy.

 

I also compared the coding in /catalog/checkout_payment.php CCGV v5.16 which contains the above code with the /catalog/checkout_payment.php coding in CCGV v5.12. The difference I notice is that the code is missing in v5.12. I used beyond Compare Software for this comparison.

 

I wonder whether it is anything to do with osCommerce-PayPal_IPN_with_fee for MS2 Nov 2005 Release which is installed.?

 

Any more help is appreciated !

Thanks

Link to comment
Share on other sites

  • 9 months later...

I am having this exact same issue. Anyone have any ideas?

 

Thank you VERY much.

 

Marand

 

 

Hi everyone,

 

I have spend the last 2-3 days trying to resolve this error with the help of these forums but I am still not there yet.

 

I have a number of contributions installed on my shopping cart that includes

1.Credit Class and Gift Voucher (CCGV - installing instructions by Deathgod)

2. Paypal IPN for osCommerce

3. Header Tags Controller

4. All Products

5. cDynamic Meta Tags

6. Easypopulate Ver 2.79

However I think my problem is to do with payment scripts as the error clearly indicates

Fatal error: Call to undefined function: clear_posts() in /home/cashregi/public_html/catalog/checkout_payment.php on line 90

 

--------------------------------------------------------------------------------------------

line 90 in checkout_payment.php is in blue as follows:

 

// #################### Added CGV ######################

require(DIR_WS_CLASSES . 'order_total.php');//ICW ADDED FOR CREDIT CLASS SYSTEM

$order_total_modules = new order_total;//ICW ADDED FOR CREDIT CLASS SYSTEM

[color=#3333FF]$order_total_modules->clear_posts(); // ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13[/color]

// #################### End Added CGV ######################

it seems I am going round and round on this roundabout and I am hoping someone can help me take the correct exit to get to my destination.

 

thank you for reading this

and if you can help I will be so grateful.

 

Edwin

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...