error in product.inc.php

Discussion in 'Troubleshooting' started by cvac, Jun 6, 2012.

  1. cvac

    cvac New Member

    Joined:
    Mar 24, 2009
    Messages:
    3
    We have recently moved out site to a new hosting provider. We integrate amember with 1shoppingcart.com
    Created new db and imported old db - all fine. Can access amember, users can log in to protected area but whenever a user tries to join or renew their membership we are getting this error:

    Fatal error: Call to undefined function ref_new() in /home/cvac/public_html/amember/product.inc.php on line 474

    We were originally getting the deprecating error on this line so we made the recommended changes.

    Old line 474: $terms = & new PaymentTerms();

    New line 474: $terms = & ref_new(PaymentTerms());

    I am not a programmer - just a site owner and I really need help. We've been down for 2 weeks.

    Thanks,

    Elayne
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    ref_new is not a standart php function. Was this something that was created by you? If so make sure that you copied file where this function is defined as well.

Share This Page