#400 htmlspecialchars() error when creating/updating work order

cosmetic
closed-fixed
nobody
5
2007-02-21
2007-02-14
Chavous P. Camp
No

Ok on creating or updating a WORKORDER, right below the ---SELECT--- link for the organization, the following error shows up:

htmlspecialchars() expects parameter 1 to be string, array given C:\Projects\DCL\inc\plugins\function.dcl_selector_org.php (84) : htmlspecialchars
C:\Projects\DCL\templates\default\templates_c\%%117^%%117711894^htmlWorkOrderForm.tpl.php (179) : smarty_function_dcl_selector_org
C:\Projects\DCL\inc\Smarty.class.php (1266) : include
C:\Projects\DCL\inc\Smarty.class.php (1115) : Smarty->fetch
C:\Projects\DCL\inc\functions.inc.php (387) : Smarty->display
C:\Projects\DCL\inc\class.htmlWorkOrderForm.inc.php (312) : SmartyDisplay
C:\Projects\DCL\inc\class.boWorkorders.inc.php (39) : htmlWorkOrderForm->Show
C:\Projects\DCL\inc\functions.inc.php (214) : boWorkorders->newjcn
C:\Projects\DCL\main.php (34) : Invoke

I traced it out and resolved it by removing the reference to htmlspecialchars() around the $params['decoded'] portion of line 84 in inc/plugins/function.dcl_selector_org.php

The error does not appear to be anything other than a cosmetic error, as everything else functions normally.

Discussion

    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=309748
    Originator: YES

    You are correct sir... I reverted my version of function.dcl_selector_org.php back to the version in SVN and updated to head... and magically its fixed!

    Thank you sir!

     
    • status: closed-fixed --> open
     
  • Logged In: YES
    user_id=309748
    Originator: YES

    Sorry to re-open this... but now its doing it on EDITING work orders...

    C:\Projects\DCL\inc\plugins\function.dcl_selector_org.php (84) : htmlspecialchars
    C:\Projects\DCL\templates\default\templates_c\%%117^%%117711894^htmlWorkOrderForm.tpl.php (179) : smarty_function_dcl_selector_org
    C:\Projects\DCL\inc\Smarty.class.php (1266) : include
    C:\Projects\DCL\inc\Smarty.class.php (1115) : Smarty->fetch
    C:\Projects\DCL\inc\functions.inc.php (390) : Smarty->display
    C:\Projects\DCL\inc\class.htmlWorkOrderForm.inc.php (320) : SmartyDisplay
    C:\Projects\DCL\inc\class.boWorkorders.inc.php (88) : htmlWorkOrderForm->Show
    C:\Projects\DCL\inc\functions.inc.php (217) : boWorkorders->modifyjcn
    C:\Projects\DCL\main.php (34) : Invoke

     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=309748
    Originator: YES

    appears to be resolved now as well as of rev60

     
  • iw0k
    iw0k
    2007-05-14

    Logged In: YES
    user_id=1792800
    Originator: NO

    sorry to come back on this issue, but now I have the same error when i'm choosing a closed ticket, clicking on "Copy to WO" and I have the following error :
    Warning [ Backtrace << ]: htmlspecialchars() expects parameter 1 to be string, array given
    ---------------------------------------
    /home/iwok/sd/altarea/www/dcl/inc/plugins/function.dcl_selector_org.php (84) : htmlspecialchars
    /home/iwok/sd/altarea/www/dcl/templates/default/templates_c/%%117^%%117711894^htmlWorkOrderForm.tpl.php (179) : smarty_function_dcl_selector_org
    /home/iwok/sd/altarea/www/dcl/inc/Smarty.class.php (1266) : include
    /home/iwok/sd/altarea/www/dcl/inc/Smarty.class.php (1115) : Smarty->fetch
    /home/iwok/sd/altarea/www/dcl/inc/functions.inc.php (390) : Smarty->display
    /home/iwok/sd/altarea/www/dcl/inc/class.htmlWorkOrderForm.inc.php (320) : SmartyDisplay
    /home/iwok/sd/altarea/www/dcl/inc/class.boTickets.inc.php (165) : htmlWorkOrderForm->Show
    /home/iwok/sd/altarea/www/dcl/inc/functions.inc.php (217) : boTickets->copyToWO
    /home/iwok/sd/altarea/www/dcl/main.php (40) : Invoke
    -------------------------------------