Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Fatal error: Cannot redeclare class nsRecordRef
I am getting this error when I try to post a form.
Fatal error: Cannot redeclare class nsRecordRef in C:\xampp\htdocs\trial\sites\all\modules\drupaltonetsuite\PHPtoolkit.inc on line 246
here is my code...
[PHP]function drupaltonetsuite_my_form_submit($form, &$form_state) {
include_once (drupaltonetsuite_path().'/PHPtoolkit.inc');
include_once (drupaltonetsuite_path().'/login_info.inc');
$customerFields = array (
'isPerson' => false,
'firstName' => $form_state['values']['first'],
'lastName' => $form_state['values']['last'],
'companyName' => $form_state['values']['company_name'],
'phone' => $form_state['values']['phone'],
'email' => $form_state['values']['email'],
'giveAccess' => false,
//'entityStatus' => array('internalId' => '6'),
Fatal error: Cannot redeclare class nsRecordRef in C:\xampp\htdocs\trial\sites\all\modules\drupaltonetsuite\PHPtoolkit.inc on line 246
here is my code...
[PHP]function drupaltonetsuite_my_form_submit($form, &$form_state) {
include_once (drupaltonetsuite_path().'/PHPtoolkit.inc');
include_once (drupaltonetsuite_path().'/login_info.inc');
$customerFields = array (
'isPerson' => false,
'firstName' => $form_state['values']['first'],
'lastName' => $form_state['values']['last'],
'companyName' => $form_state['values']['company_name'],
'phone' => $form_state['values']['phone'],
'email' => $form_state['values']['email'],
'giveAccess' => false,
//'entityStatus' => array('internalId' => '6'),
0