Page 1 of 1

Error on PHP Page

Posted: Fri Aug 20, 2010 9:05 am
by Nick2005
Good Morning

I have installed a framework for PHP (scriptcase). The Windows Setup install all SC packages and, in addition, the Apache server with PHP, MySQL and Zend classes.

All the packages are automatically configured from setup process.

When I open in IE http://127.0.0.1:85/scriptcase, the framework start regularly and allows me to login and open a projects.

But if I try to operate on the project, I have more problems; please, look at following image. I have open a control that manage and create a login form: in the IE status bar appear the exclamation mark. I clik on the sign and an error window is displayed:

Image

After, trying any operation (example cancel a field), I have an error similar to above image and the field is not deleted.

NB - MY OS is Windows 7 64 bit.

I have asked to software manufacturer, without an exaustive reply.

Can anyone help me?

Thank You and Best Regards

Re: Error on PHP Page

Posted: Fri Aug 20, 2010 8:24 pm
by JakeJ
Plese open up the file menu.php and post the code somewhat before and after line 485 and post that here. Please make sure you indicate which line 485 is.

Thanks

Re: Error on PHP Page

Posted: Sun Aug 22, 2010 2:42 am
by Nick2005
Hi JakeJ,

Scriptcase is a WEB Framework that create PHP applications and increase web development productivity. All the files of Scriptcase are encrypted with Zend.

But I have installed on the Firefox Browser the Firebug plugin. In this way, analyzing a scriptcase application, I could deduce the following source code:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
 <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
 <META http-equiv="Last-Modified" content="Sun, 22 Aug 2010 06:44:59" GMT">
 <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
 <META http-equiv="Cache-Control" content="post-check=0, pre-check=0">
 <META http-equiv="Pragma" content="no-cache">
 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <META name="author" content="NetMake">

 <META name="generator" content="ScriptCase">
 <TITLE><ScriptCase></TITLE>
 <LINK REL="stylesheet" HREF="/scriptcase/tmp/sc_css_c27e780a1d1e0c66c78b343b9b156afb_b461.css">
 <SCRIPT language="javascript">
 function nm_edit(str_file)
 {
  bol_pode = true;
  if (parent && parent.nmFrmEditPhpEdit && parent.nmFrmEditPhpEdit.nm_form && parent.nmFrmEditPhpEdit.nm_form.modificado && parent.nmFrmEditPhpEdit.nm_form.modificado.value == "S" && !confirm('O arquivo foi editado modificado. \ Em nClique OK para abrir o novo arquivo descartar e come modificaes.'))
  {
   bol_pode = false;
  }
  if (bol_pode)
  {
   document.nm_form.action='nm_edit_php_edit.php';
   document.nm_form.field_file.value = str_file;
   document.nm_form.submit();
  }
 }
 function nm_delete(str_file)
 {
  bol_pode = true;
  if (parent && parent.nmFrmEditPhpEdit && parent.nmFrmEditPhpEdit.nm_form && parent.nmFrmEditPhpEdit.nm_form.modificado && parent.nmFrmEditPhpEdit.nm_form.modificado.value == "S" && !confirm('O arquivo foi editado modificado. \ Em nClique OK para abrir o novo arquivo descartar e come modificaes.'))
  {
   bol_pode = false;
  }
 if (bol_pode && confirm('Fare clic su OK per confermare l'eliminazione di file.'))
  {
   document.nm_form_del.field_file.value = str_file;
   document.nm_form_del.submit();
  }
 }
 function nm_change_module(obj_sel)
 {
  document.nm_form_del.enviado.value = "S_EditPhpMod";
  document.nm_form_del.field_file.value = obj_sel.options[obj_sel.selectedIndex].value;
  document.nm_form_del.submit();
 }
 function nm_window_upload_(str_mod)
 {
  obj_win = window.open("/scriptcase/devel/iface/upload.php?mod=" + str_mod, "nmWinUpload_", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=320,height=240");
  obj_win.focus();
 }
 function nm_window_upload(str_mod)
 {
   document.nm_form.arq_rename.value = '';
   document.nm_form.upload_target.value = document.nm_form.elements['field_module'].value;
   document.nm_form.action = '/scriptcase/devel/iface/upload.php?redir=nm_edit_php_list&mod=' + str_mod;
   document.nm_form.submit();
 }
  function nm_view_source_lib(arq)
  {
   document.nm_form.action = "/scriptcase/devel/generator/nm_gp_view_lib.php?tmp=&rand=41604040d1306b45" + "&opendiv=S&arq=" + arq;
   document.nm_form.submit();
  }
 function nm_window_upload_rename(str_mod, str_arq)
 {
   document.nm_form.arq_rename.value = str_arq;
   document.nm_form.upload_target.value = document.nm_form.elements['field_module'].value;
   document.nm_form.action = '/scriptcase/devel/iface/upload.php?redir=nm_edit_php_list&mod=' + str_mod;
   document.nm_form.submit();
 }
 function nm_user_not_access()
 {
   alert("Nome utente senza il permesso!");
 }
 </SCRIPT>
</HEAD>
<BODY CLASS="nmPage">
<table>
<tr>
<td>&nbsp;&nbsp;</td>
<td>
<form name="nm_form" action="nm_edit_php_edit.php" method="post" target="nmFrmEditPhpEdit">

<input type="hidden" name="arq_rename">
<input type="hidden" name="field_file">
<input type="hidden" name="upload_target">
<input type="hidden" name="form_upload" value='open'>
<select name="field_module" class="nmText" onChange="nm_change_module(this)">
 <option value="scriptcase" selected="selected"></option>
 <option value="sys">Pubblico</option>
 <option value="grp">Progetto</option>
 <option value="usr">Utente</option>
</select>

<br />
<br />
<div style="height:270px; width:230px; overflow:auto">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tr>
  <td nowrap><span class="nmText">
   <label title="Eliminare"><a href="javascript:nm_delete('sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//trash.gif" border="0" align="absmiddle"></a></label>	
   <label title="Rinominare"><a href="javascript:nm_window_upload_rename('php', 'sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_fld_text.gif" border="0" align="absmiddle"></a></label>   
   <label title="Visualizazione"><a href="javascript:nm_view_source_lib('scriptcase__NM__sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_filtervisual.gif" border="0" align="absmiddle"></a></label>   
   sc_calc_processos.php  </span></td>
 </tr>
 <tr>

  <td nowrap><span class="nmText">
   <label title="Eliminare"><a href="javascript:nm_delete('sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//trash.gif" border="0" align="absmiddle"></a></label>	
   <label title="Rinominare"><a href="javascript:nm_window_upload_rename('php', 'sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_fld_text.gif" border="0" align="absmiddle"></a></label>   
   <label title="Visualizazione"><a href="javascript:nm_view_source_lib('scriptcase__NM__sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_filtervisual.gif" border="0" align="absmiddle"></a></label>   
   sc_ssn.php  </span></td>
 </tr>
</table>
</div>
</form>
<form name="nm_form_del" action="nm_edit_php_list.php" method="post" target="nmFrmEditPhpList">
<input type="hidden" name="enviado" value="S_EditPhpDel">
<input type="hidden" name="field_file">
</form>

</td>
</tr>
</table>
</FONT>
</BODY>
</HTML>
Firebug return me this message:
missing ) after argument list
http://127.0.0.1:85/scriptcase/devel/co ... p_list.php Line 36
The code in this line is
if (bol_pode && confirm('Fare clic su OK per confermare l'eliminazione di file.'))

I suppose that the error is the second single quote in the string 'Fare clic su OK per confermare l'eliminazione di file.'. This is interpreted as the end of string and generate the error.

Is it correct ?

Of course, the wrong string was created by the authors of Scriptcase and not by me.

Thank You and Best Regards

Re: Error on PHP Page

Posted: Sun Aug 22, 2010 3:46 am
by JakeJ
I seems to me you might be on the right track there.

I guess you have to email their support team and go from there.

Re: Error on PHP Page

Posted: Mon Aug 23, 2010 12:48 am
by Nick2005
Yes, I have already sent an email to technical support with a comprehensive documentation.

I hope that I will respond soon and solve the problem, because I pay a expensive yearly subscription for support.

Regards