CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Call to undefined function: prepare()

Print topic Send  topic

Author Message
Terry Valladon
Posted: 07/16/2002, 11:51 AM

I am having the same problem as lukas rueegg was,

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

I have deleted *.php in the destination and project directories.

I have tried the fixes mentioned and I still have the error.
Any way you can help? this just popped up in the upgrade.




Thank you,
Terry Valladon



George Lerma
Posted: 07/16/2002, 3:51 PM

That is a bug. I ran into this bug too with CCS 1.0.6 I have reported it
already, but you should also.

Look in your //Show Page Section. If you find something like this:
$formname->Prepare();

Comment it out, then regenerate and test code. It should go away.If it does,
you can delete if you want. This is only a workaround. I think you need to
report this to Yes anyway.



"Terry Valladon" <tvalladon@eicn.com> wrote in message
news:ah1pv7$see$1@news.codecharge.com...
> I am having the same problem as lukas rueegg was,
>
> 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
>
> I have deleted *.php in the destination and project directories.
>
> I have tried the fixes mentioned and I still have the error.
> Any way you can help? this just popped up in the upgrade.
>
>
>
>
> Thank you,
> Terry Valladon
>
>
>
>

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

george

i reported this to YES and they are aware of the problem. alex from YES
answered my question in the other thread. the second hint of alex, to cleane
out all *.php files in the production folder (not only the publishing
folder!) helped me out.

regards
lukas.



"George Lerma" <glerma@dal.dset.com> wrote in message
news:ah280r$n9g$1@news.codecharge.com...
> That is a bug. I ran into this bug too with CCS 1.0.6 I have reported it
> already, but you should also.
>
> Look in your //Show Page Section. If you find something like this:
> $formname->Prepare();
>
> Comment it out, then regenerate and test code. It should go away.If it
does,
> you can delete if you want. This is only a workaround. I think you need to
> report this to Yes anyway.
>
>
>
> "Terry Valladon" <tvalladon@eicn.com> wrote in message
>news:ah1pv7$see$1@news.codecharge.com...
> > I am having the same problem as lukas rueegg was,
> >
> > 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
> >
> > I have deleted *.php in the destination and project directories.
> >
> > I have tried the fixes mentioned and I still have the error.
> > Any way you can help? this just popped up in the upgrade.
> >
> >
> >
> >
> > Thank you,
> > Terry Valladon
> >
> >
> >
> >
>
>

Terry Valladon
Posted: 07/17/2002, 8:34 AM

*ponder*

Don't know why the did not work yesterday, but I did fresh boot,
deleted the destination directory, deleted all the php files in the project
directory and it worked.

Thank you,
Terry Valladon

"lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
news:ah36lp$dr8$1@news.codecharge.com...
> george
>
> i reported this to YES and they are aware of the problem. alex from YES
> answered my question in the other thread. the second hint of alex, to
cleane
> out all *.php files in the production folder (not only the publishing
> folder!) helped me out.
>
> regards
> lukas.

donb
Posted: 07/17/2002, 3:30 PM

The "code" pages rebuild themselves when you delete them. Elsewise, they
are "edited" during the code-gen process. I suspect that something in the
code was not properly constructed until you deleted the files and they got
built from scratch. I've done dumb things while editing the code, gotten in
a situation where nothing works anymore, and found (in desperation) that
simply deleting common.asp (or whatever), sometimes has amagical effect.

"Terry Valladon" <tvalladon@eicn.com> wrote in message
news:ah42po$1uj$1@news.codecharge.com...
> *ponder*
>
> Don't know why the did not work yesterday, but I did fresh boot,
> deleted the destination directory, deleted all the php files in the
project
> directory and it worked.
>
> Thank you,
> Terry Valladon
>
> "lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
>news:ah36lp$dr8$1@news.codecharge.com...
> > george
> >
> > i reported this to YES and they are aware of the problem. alex from YES
> > answered my question in the other thread. the second hint of alex, to
> cleane
> > out all *.php files in the production folder (not only the publishing
> > folder!) helped me out.
> >
> > regards
> > lukas.
>
>


   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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