Fatal error: Cannot unset string offsets in http://mywebsite\includes\form.inc on line 319
adale - June 6, 2007 - 20:12
| Project: | erp |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | singularo |
| Status: | won't fix |
Jump to:
Description
I get the following when I select "accounts" in the erp accounting menu.
Fatal error: Cannot unset string offsets in http://mywebsite\includes\form.inc on line 319
The installation was handled using the erp.profile with Drupal 5.1 and either erp-5.x-1.1 and ero-HEAD.

#1
I think you have a string going into a form function where you should have an array. I'm working on this problem myself.
#2
Any news on this one? Does anyone have a workaround or a clue on why this error is occurring?
/ Mats
#3
There are a lot more issues with the v5.x version at this stage. Development is still in 4-7 at the moment, so 5.x isn't getting much love.
The accounts menu allows configuration of accounts, but that isn't yet used anywhere else, so can safely be ignored for now.
Any patches/updates will definitely be looked at/applied if you're a developer looking to help.
#4
The issue is within hook_menu of erp_accounting.module (line 52ish). The menu item is being treated as a form, not a regular page, and Drupal doesn't appreciate it. The code:
<?php$items[] = array('path' => 'admin/erp/accounting/accounts',
'title' => t('accounts'),
'access' => user_access('admin erp accounting'),
'callback' => 'drupal_get_form',
'callback arguments' => 'erp_accounting_admin_accounts_settings');
?>
Should be:
<?php$items[] = array('path' => 'admin/erp/accounting/accounts',
'title' => t('accounts'),
'access' => user_access('admin erp accounting'),
'callback' => 'erp_accounting_admin_accounts_settings');
?>
#5
The 5.x branch of erp has never been completed, please try the 6.x branch instead, which is nearing beta quality.