CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 error: regexp code on line 1

Print topic Send  topic

Author Message
bas
Posted: 07/15/2009, 2:34 PM

converted an app from 2.3 to 4.1 - after uploading I get an error when I
open a page

Fatal error: Call to a member function GetText() on a non-object in
/home/tatweb/public_html/testsite/Template.php(85) : regexp code on line 1

any ideas?


jjrjr1


Posts: 942
Posted: 07/18/2009, 8:36 AM

Hmmm

This sort of problem occurs when a method is called for a component or control from a location in the code where that component or control is out of scope.

Did you look at line 85 in Template.php?? That is an odd place for the error to be generated from.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/18/2009, 8:37 AM

Another thought.

Maybe the jump from ver 2 to ver 4 does not work so good.

Can you try converting to ver 3 then to ver 4???


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
bas
Posted: 07/18/2009, 3:52 PM

Unfortunatly I can't !

I bought v2 a long time ago for a one off ASP project and didn't use it for
anything else
I then upgraded to v4 when I had other project where I thought CCS would
help so I don't have v3

:(




"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:54a61ec492fa81@news.codecharge.com...
> Another thought.
>
> Maybe the jump from ver 2 to ver 4 does not work so good.
>
> Can you try converting to ver 3 then to ver 4???
>
>
> _________________
> More CodeCharge Studio Support at - http://CCSElite.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

jjrjr1


Posts: 942
Posted: 07/18/2009, 7:06 PM

If you want. you can zip up your project and e-mail it to me.

I can try and convert it for you.

john@realsites.biz


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/18/2009, 7:06 PM

BTW Send the version 2 of the project

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
bas
Posted: 07/22/2009, 2:35 AM

John

Thanks for the offer - but it didn't work.

I downloaded CCS3.2 and installed as a trial

I had 53 pages to test I removed some none essential pages and reduced it to
44 (Trial only work with MAX of 45 page)

I get the same error.

Googled but no help.

I'm looking at what it would take to redo in CCS4 at the moment.

"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:54a627f9778e5b@news.codecharge.com...
> If you want. you can zip up your project and e-mail it to me.
>
> I can try and convert it for you.
>
>john@realsites.biz
>
>
> _________________
> More CodeCharge Studio Support at - http://CCSElite.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

damian

Posts: 838
Posted: 07/22/2009, 2:47 AM

so you got same error under 3.x or was that actually under 4.x after doing double upgrade?
have you tried (on a backup only) deleting the php pages (except *_events.php) and letting ccs rebuild the pages?
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
damian

Posts: 838
Posted: 07/22/2009, 2:58 AM

actually googling suggests that following 2 fixes -

a named index key does not exist - if its happening on every page that should help you track down which table is at issue
or
turn off error reporting in your php.ini


_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/22/2009, 10:34 AM

Yeah

But this error is a fatal error and even tells him it is not a database problem but it is telling him that the object he is referencing does not exist where he is accessing it. Objects in this context are classes created to handle each component on the page.

Turning off error reporting for fatal errors will certainly get rid of this message. But when it runs it will give him a blank screen with no info as to what happened. During development it is not good to turn off fatal error reporting as debugging is made pretty difficult.


I also woud be curious what that line in Template.php is doing. That is an odd place for it to pop up. By following the code it may be possible to determine which component is trying to be accessed. This implies to me that it has somthing to do with the referencing of the page components as they are put into the template for display.

Template.php is common to all his pages


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/22/2009, 10:49 AM

Hi

I just thought of a possible solution for you to try.

You must try this on a copy of your project in case sonething breaks.

This has worked for me before in conversion situations like this

Try first convert your original ver 2 project to version 4.

Now go into the converted version 4 project and remove ALL the common CCS files like

Common.php
Template.php
Functions.js.... etc
All the others that are common files that CCS uses.

Then, as Damian suggests, Remove ALL the base page files. (not the ccp) but if you are using php remove all the base .php files. Do not remove any *_events.php files

For example
You have a page

index.ccp. There will be index.ccp index.php index.html and index_events.php

For this page only remove the index.php file

Do that for all your pages.

Now re-publish the entire project

Let me know if that helps



_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
bas
Posted: 07/22/2009, 12:44 PM

Damian

Yes, that worked

I deleted all the PHP pages except *_event.php and it worked

Great Thanks.


"damian" <damian@forum.codecharge> wrote in message
news:54a66e031bae7f@news.codecharge.com...
> so you got same error under 3.x or was that actually under 4.x after doing
> double upgrade?
> have you tried (on a backup only) deleting the php pages (except
> *_events.php)
> and letting ccs rebuild the pages?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

bas
Posted: 07/22/2009, 12:45 PM

John,

Yes, that worked.

I deleted all the PHP pages except *_event.php and it worked

Great Thanks.



"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:54a6751207e1ed@news.codecharge.com...
> Hi
>
> I just thought of a possible solution for you to try.
>
> You must try this on a copy of your project in case sonething breaks.
>
> This has worked for me before in conversion situations like this
>
> Try first convert your original ver 2 project to version 4.
>
> Now go into the converted version 4 project and remove ALL the common CCS
> files
> like
>
> Common.php
> Template.php
> Functions.js.... etc
> All the others that are common files that CCS uses.
>
> Then Remove ALL the base page files. (not the ccp) but if you are using
> php
> remove all the base .php files. Do not remove any *_events.php files
>
> For example
> You have a page
>
> index.ccp. There will be index.ccp index.php index.html and
> index_events.php
>
> For this page only remove the index.php file
>
> Do that for all your pages.
>
> Now re-publish the entire project
>
> Let me know if that helps
>
>
>
> _________________
> More CodeCharge Studio Support at - http://CCSElite.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>


Add new topic Subscribe to topic   


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.