CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 CCS 1.0.7 BUG?

Print topic Send  topic

Author Message
lukas rueegg
Posted: 07/16/2002, 5:58 AM

i just installed the CCS V.1.0.7 and tried to work on a project generated in
CCS 1.0.5.
a problem occured after generating a Record Form with a Select field. i now
always get the following PHP-Error:

Fatal error: Call to undefined function: prepare() in
/data/www/jobtv/htdocs/admin/person_det.php on line 294

the code on this line looks like the following and is originally created by
CCS (no changes):
//Show Method @2-5E7072DC
function Show()
{
global $Tpl;
global $FileName;
$Error = "";

if(!$this->Visible)
return;

==>> $this->country->Prepare();

the last line is the one which generates the error. i don't find a function
named prepare() in this class...


does anyone has the same problem?

regards

lukas.



Alexey Alexapolsky
Posted: 07/16/2002, 8:48 AM

Please check the size and date of your PHPTemplates.xml file.
There should be
07/11/2002 07:14p 10,398 PHPTemplates.xml

--

Alex,
Support Engineer
CodeCharge Team


"lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
news:ah159j$ime$1@news.codecharge.com...
> i just installed the CCS V.1.0.7 and tried to work on a project generated
in
> CCS 1.0.5.
> a problem occured after generating a Record Form with a Select field. i
now
> always get the following PHP-Error:
>
> Fatal error: Call to undefined function: prepare() in
> /data/www/jobtv/htdocs/admin/person_det.php on line 294
>
> the code on this line looks like the following and is originally created
by
> CCS (no changes):
> file://Show Method @2-5E7072DC
> function Show()
> {
> global $Tpl;
> global $FileName;
> $Error = "";
>
> if(!$this->Visible)
> return;
>
> ==>> $this->country->Prepare();
>
> the last line is the one which generates the error. i don't find a
function
> named prepare() in this class...
>
>
> does anyone has the same problem?
>
> regards
>
> lukas.
>
>
>
>

Alexey Alexapolsky
Posted: 07/16/2002, 8:52 AM

Please also try to remove all code files (*.php, do not forget to backup if
needed)
and try to publish the page again.

--

Alex,
Support Engineer
CodeCharge Team


"lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
news:ah159j$ime$1@news.codecharge.com...
> i just installed the CCS V.1.0.7 and tried to work on a project generated
in
> CCS 1.0.5.
> a problem occured after generating a Record Form with a Select field. i
now
> always get the following PHP-Error:
>
> Fatal error: Call to undefined function: prepare() in
> /data/www/jobtv/htdocs/admin/person_det.php on line 294
>
> the code on this line looks like the following and is originally created
by
> CCS (no changes):
> file://Show Method @2-5E7072DC
> function Show()
> {
> global $Tpl;
> global $FileName;
> $Error = "";
>
> if(!$this->Visible)
> return;
>
> ==>> $this->country->Prepare();
>
> the last line is the one which generates the error. i don't find a
function
> named prepare() in this class...
>
>
> does anyone has the same problem?
>
> regards
>
> lukas.
>
>
>
>

lukas rueegg
Posted: 07/16/2002, 11:27 AM

alex

thanks for your hint, that really solved my problems!

best regards
lukas.



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:ah1fgo$8c1$2@news.codecharge.com...
> Please also try to remove all code files (*.php, do not forget to backup
if
> needed)
> and try to publish the page again.
>
> --
>
> Alex,
> Support Engineer
> CodeCharge Team
>
>
> "lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
>news:ah159j$ime$1@news.codecharge.com...
> > i just installed the CCS V.1.0.7 and tried to work on a project
generated
> in
> > CCS 1.0.5.
> > a problem occured after generating a Record Form with a Select field. i
> now
> > always get the following PHP-Error:
> >
> > Fatal error: Call to undefined function: prepare() in
> > /data/www/jobtv/htdocs/admin/person_det.php on line 294
> >
> > the code on this line looks like the following and is originally created
> by
> > CCS (no changes):
> > file://Show Method @2-5E7072DC
> > function Show()
> > {
> > global $Tpl;
> > global $FileName;
> > $Error = "";
> >
> > if(!$this->Visible)
> > return;
> >
> > ==>> $this->country->Prepare();
> >
> > the last line is the one which generates the error. i don't find a
> function
> > named prepare() in this class...
> >
> >
> > does anyone has the same problem?
> >
> > regards
> >
> > lukas.
> >
> >
> >
> >
>
>

Terry Valladon
Posted: 07/16/2002, 11:29 AM

I am having the same problem,

ERROR:
Fatal error: Call to undefined function: prepare() in
s:\nusphere\apache\users\rpgtable3\register.php on line 226

Line 226:
$this->country_id->Prepare();

Directory listing for C:\Program
Files\CodeChargeStudio\Components\CodeTemplates:
07/11/2002 07:14p 10,360 ASPTemplates.xml
07/11/2002 07:14p 9,088 C#.xml
07/11/2002 07:14p 15,768 CFML.xml
07/11/2002 07:14p 3,765 CFMLTemplates.xml
07/11/2002 07:14p 4,120 JSP.xml
07/11/2002 07:14p 10,500 PerlTemplates.xml
07/11/2002 07:14p 10,398 PHPTemplates.xml
07/11/2002 07:14p 2,929 ServletTemplates.xml

in the same page there is this function:
//Prepare Method @4-C8A0D032
function Prepare()
{
$this->wp = new clsSQLParameters();
$this->wp->AddParameter("1", "urlMember_ID", ccsInteger, "", "",
$this->Parameters["urlMember_ID"], "");
$this->AllParametersSet = $this->wp->AllParamsSet();
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "`Member_ID`",
$this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"),
ccsInteger));
$this->Where = $this->wp->Criterion[1];
}
//End Prepare Method

Any way you can help? this just popped up in the upgrade.

Thank you,
Terry Valladon


"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:ah1f8a$7pv$2@news.codecharge.com...
> Please check the size and date of your PHPTemplates.xml file.
> There should be
> 07/11/2002 07:14p 10,398 PHPTemplates.xml
>
> --
>
> Alex,
> Support Engineer
> CodeCharge Team
>
>
> "lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
>news:ah159j$ime$1@news.codecharge.com...
> > i just installed the CCS V.1.0.7 and tried to work on a project
generated
> in
> > CCS 1.0.5.
> > a problem occured after generating a Record Form with a Select field. i
> now
> > always get the following PHP-Error:
> >
> > Fatal error: Call to undefined function: prepare() in
> > /data/www/jobtv/htdocs/admin/person_det.php on line 294
> >
> > the code on this line looks like the following and is originally created
> by
> > CCS (no changes):
> > file://Show Method @2-5E7072DC
> > function Show()
> > {
> > global $Tpl;
> > global $FileName;
> > $Error = "";
> >
> > if(!$this->Visible)
> > return;
> >
> > ==>> $this->country->Prepare();
> >
> > the last line is the one which generates the error. i don't find a
> function
> > named prepare() in this class...
> >
> >
> > does anyone has the same problem?
> >
> > regards
> >
> > lukas.
> >
> >
> >
> >
>
>

Terry Valladon
Posted: 07/16/2002, 11:30 AM

Also I have cleared out the destination directory and re-published and still
get the error.

Terry Valladon

lukas rueegg
Posted: 07/17/2002, 12:23 AM

terry

i also cleaned out the *.php files in the production folder of CCS where
your project-files (*.ccs, *.ccp) is stored. maybe you should try this...
(but don't forget to backup them first!)

lukas.



wrote in messagenews:ah1ooa$q2v$1@news.codecharge.com...
> Also I have cleared out the destination directory and re-published and
still
> get the error.
>
> Terry Valladon
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.