[Vtigercrm-developers] Error trying to save a new Record of a new Custom module

Juan Pablo Botero juanpabloboterolopez at gmail.com
Mon Aug 20 21:18:30 PDT 2012


Hello all.

I just made a new module from vtlib in Vtiger 5.4 in a LAMP plataform, i
can see the module and the edit view when i try to make a new record.
So, when i try to save the new record i got an error:

Sorry! Attempt to access restricted file.
Filepath:
Rootdirpath: <root of vtigercrm>

So, i changed the php.ini to show all errors and i got a lot of lines, but
i notice the following.


*Notice*: Undefined index: assigned_user_id in *<root of
vtiger>/modules/Beneficiarios/Save.php* on line *24*


The new record has a field 'assigned to'.
The line 23 and 24 of that file are:

23: if($_REQUEST['assigntype'] == 'U') {
24:    $focus->column_fields['assigned_user_id'] =
$_REQUEST['assigned_user_id'];

I also changed the debug options in vtiger, i can see that vtiger got the
fields of the new record.

How can i solve this?

Thanks.

-- 
Cordialmente:
Juan Pablo Botero
Administrador de Sistemas informáticos
Fedora Ambassador for Colombia
http://www.jpilldev.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120820/66102a9f/attachment.html 


More information about the vtigercrm-developers mailing list