Subscription error

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

ifa2017
Posts: 1
Joined: Thu Jan 19, 2017 2:14 pm

Subscription error

Post by ifa2017 »

Hi everyone,

The company I work for uses OpenEMM for a long time, and a strange mistake appeared few times ago. It is indeed currently not possible to subscribe to the newsletters. When submitted we get the error form as a result with the following error :
Error in line 3, column 29: Null reference $customerID.[]
Error in line 3, column 1: Invalid method $BindingEntry.setCustomerID().[]
The error seems to come from one of our scripts to validate user inputs, but, as we didn't do any changes on this script recently, we are wondering why ...

Code: Select all

## Maillist 1
$BindingEntry.setMailinglistID(1)
$BindingEntry.setCustomerID($customerID)

#if($BindingEntry.getUserBindingFromDB(1) == true)
   #if($BindingEntry.getUserStatus() == 5)
        $BindingEntry.setUserStatus(1)
        $BindingEntry.setUserRemark("Opt-in by User")
        $BindingEntry.updateStatusInDB(1)
   #end
#end

## Maillist 2
$BindingEntry.setMailinglistID(2)
$BindingEntry.setCustomerID($customerID)

#if($BindingEntry.getUserBindingFromDB(1) == true)
   #if($BindingEntry.getUserStatus() == 5)
        $BindingEntry.setUserStatus(1)
        $BindingEntry.setUserRemark("Opt-in by User")
        $BindingEntry.updateStatusInDB(1)
   #end
#end

...
Besides, we also have an other error which occurs regularly : the mailing sometimes stops and we need to restart the server to fix the problem. Maybe there is a link between our problems.

Our actual configuration is :
- OpenEMM 2013
- Tomcat 6
- Java 6

Please, let me know if you need any additional information,

Thanks for your help.