Quantcast

Form Designer errors/warnings

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Form Designer errors/warnings

rfthomas
When we attempt use the Form Designer, the following errors are displayed in many places ion the screen:

Warning: array_key_exists(): The first argument should be either a string or an integer in /ast$www/weberp/includes/php-gettext/gettext.php on line 258

This number of times this is displayed makes the code impossible to use.

Bob Thomas
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Form Designer errors/warnings

Andrew Galuski
The problem is with how this screen tries to use the Language function for translation.
When it outputs 'translated' text using _($FormDesign['name']) $FormDesign['name'] is not a string but an XML Object
Var_dump($FormDesign['name'] yields

object(SimpleXMLElement)[2]
  string 'FG Label' (length=8)

If you cast it as a string using _((string)$FormDesign['name']) it works.
If you go through the code everywhere the can do a search and replace on _($FormDesign[' and change it to _((string)$FormDesign['  same with _($subkey[' and _($key['

I attached a copy that works for me


Best Regards,
Andrew Galuski
ResMart LLC.
817.615.3206 (Office)
817.821.0544 (Cell)
www.resmart.com


-----Original Message-----
From: rfthomas [mailto:[hidden email]]
Sent: Monday, March 07, 2016 12:22 PM
To: [hidden email]
Subject: [WebERP-developers] Form Designer errors/warnings

When we attempt use the Form Designer, the following errors are displayed in many places ion the screen:

Warning: array_key_exists(): The first argument should be either a string or an integer in /ast$www/weberp/includes/php-gettext/gettext.php on line 258

This number of times this is displayed makes the code impossible to use.

Bob Thomas



--
View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Form-Designer-errors-warnings-tp4658541.html
Sent from the web-ERP-developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

FormDesigner.php (25K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Form Designer errors/warnings

gsavix
hi. i will run tests on our environment (pt-br). thanks.

2016-03-07 17:09 GMT-03:00 Andrew Galuski <[hidden email]>:
The problem is with how this screen tries to use the Language function for translation.
When it outputs 'translated' text using _($FormDesign['name']) $FormDesign['name'] is not a string but an XML Object
Var_dump($FormDesign['name'] yields

object(SimpleXMLElement)[2]
  string 'FG Label' (length=8)

If you cast it as a string using _((string)$FormDesign['name']) it works.
If you go through the code everywhere the can do a search and replace on _($FormDesign[' and change it to _((string)$FormDesign['  same with _($subkey[' and _($key['

I attached a copy that works for me


Best Regards,
Andrew Galuski
ResMart LLC.
<a href="tel:817.615.3206" value="+558176153206">817.615.3206 (Office)
<a href="tel:817.821.0544" value="+558178210544">817.821.0544 (Cell)
www.resmart.com


-----Original Message-----
From: rfthomas [mailto:[hidden email]]
Sent: Monday, March 07, 2016 12:22 PM
To: [hidden email]
Subject: [WebERP-developers] Form Designer errors/warnings

When we attempt use the Form Designer, the following errors are displayed in many places ion the screen:

Warning: array_key_exists(): The first argument should be either a string or an integer in /ast$www/weberp/includes/php-gettext/gettext.php on line 258

This number of times this is displayed makes the code impossible to use.

Bob Thomas



--
View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Form-Designer-errors-warnings-tp4658541.html
Sent from the web-ERP-developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers




--
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil





------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
Loading...