Strange Errors in Generated Code

In a form app that has worked perfectly for 3 years, I simply added a button link to a grid app. When I tried running, I now get this error:

Parse error: syntax error, unexpected ‘s’ (T_STRING) in C:…_apl.php on line 2229

The portion of code referred to (system generated), pasted below, shows no such ‘s’.

2224| $_SESSION[‘scriptcase’][‘form_myapp’][‘contr_erro’] = ‘off’;
2225| }
2226| if (!empty($Campos_Crit) || !empty($Campos_Falta) || !empty($this->Campos_Mens_erro))
2227| {
2228| if (!empty($this->sc_force_zero))
2229| {
2230| foreach ($this->sc_force_zero as $i_force_zero => $sc_force_zero_field)
2231| {
2232| eval(’$this->’ . $sc_force_zero_field . ’ = “”;’);
2233| unset($this->sc_force_zero[$i_force_zero]);
2234| }
2235| }
2236| }

I have no variable ‘s’ in my code and no clue what Scriptcase is talking about.

In another previously working app, I now get:

Parse error: syntax error, unexpected ‘org’ (T_STRING) in C:…_apl.php on line 2838

The generated code referred to is

[SIZE=3][COLOR=#DD0000][COLOR=#000000]2821| function ValidateField_productid_(&$Campos_Crit, &$Campos_Falta, &$Campos_Erros)
2822| {
2823| global $teste_validade;
2824| nm_limpa_numero($this->productid_, $this->field_config[‘productid_’][‘symbol_grp’]) ;
2825| if ($this->nmgp_opcao != “excluir”)
2826| {
2827| if ($this->productid_ != ‘’)
2828| {
2829| $iTestSize = 11;
2830| if (strlen($this->productid_) > $iTestSize)
2831| {
2832| $Campos_Crit .= "Product: " . $this->Ini->Nm_lang[‘lang_errm_size’];
2833| if (!isset($Campos_Erros[‘productid_’]))
2834| {
2835| $Campos_Erros[‘productid_’] = array();
2836| }
2837| $Campos_Erros[‘productid_’][] = $this->Ini->Nm_lang[‘lang_errm_size’];
2838| if (!isset($this->NM_ajax_info[‘errList’][‘productid_’]) || !is_array($this->NM_ajax_info[‘errList’][‘productid_’]))
2839| {
2840| $this->NM_ajax_info[‘errList’][‘productid_’] = array();
2841| }
2842| $this->NM_ajax_info[‘errList’][‘productid_’][] = $this->Ini->Nm_lang[‘lang_errm_size’];
2843| } [/COLOR][/COLOR][/SIZE]

To troubleshoot, I changed the ProductID field from being a Select field to simple Integer and removed the lookup that uses [org] field. Still no resolution.

Can anyone help me with troubleshooting steps so I do not have to recreate these apps from scratch as it will be time-wasting.