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
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

pkarl - August 15, 2007 - 19:09

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

msjoedin - January 23, 2008 - 18:45

Any news on this one? Does anyone have a workaround or a clue on why this error is occurring?

/ Mats

#3

singularo - January 29, 2008 - 02:45
Assigned to:Anonymous» singularo
Status:active» postponed

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

Ryan Palmer - August 10, 2008 - 06:22
Component:User interface» Code
Status:postponed» active

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

singularo - September 4, 2009 - 02:34
Status:active» won't fix

The 5.x branch of erp has never been completed, please try the 6.x branch instead, which is nearing beta quality.

 
 

Drupal is a registered trademark of Dries Buytaert.