New Zenner
- Join Date:
- Jun 2005
- Posts:
- 22
- Plugin Contributions:
- 0
Custom observer class stopped working after upgrade to v1.5.5a
I had a custom observer class in the following location that was doing some additional processing after a new customer signup:
/includes/classes/observers/class.create_file_add_customer_record.php
It is no longer working correctly after upgrading from 1.5.1 to 1.5.5a. The values I am looking for in the $paramsArray are coming back blank now:
class create_file_add_customer_record extends base {
function __construct()
{
global $zco_notifier;
$zco_notifier->attach($this, array('NOTIFY_MODULE_CREATE_ACCOUNT_ADDED_CUSTOMER_RECORD'));
}
function update(&$class, $eventID, $paramsArray = array())
{
$_SESSION['cst_customers_firstname'] = $paramsArray['customers_firstname'];
$_SESSION['cst_customers_lastname'] = $paramsArray['customers_lastname'];
$_SESSION['cst_customers_email_address'] = $paramsArray['customers_email_address'];
...
Is there something that would have changed between these versions to make $paramsArray not work anymore, or is there something I should be looking for in another file that may have been overwritten?
Other points to note:
- Along with Zen Cart, I have also upgraded from PHP 5.3 to 5.6
- I have other custom observer classes dealing with customer updates and order creation. These other classes are still working correctly, as far as I can tell.
Thanks!