CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Studio BugTracking Solution DB_ class

Print topic Send  topic

Author Message
EMG
Posted: 04/24/2002, 2:24 PM

When I generate the bugtracking solution I get:

"Fatal error: Class clsdbintranet: Cannot inherit from undefined class db_ in C:\Inetpub\wwwroot\BugTracker\BugTracker\Common.php on line 68"

It refers to:
intranet Connection Class @-1BC6FA16
class clsDBintranet extends DB_

The said class extends DB_, but I am not able to find any such DB_ class.
Is this feature not yet working?
Vince
Posted: 04/25/2002, 3:09 AM

I have exactly the same problem. Could you please make the answer to this available to the public? Thanks
ami
Posted: 04/25/2002, 4:12 AM

Yes - please publish answer to this. I haven't got any PHP code to work yet with error at same line in Common.php. (ASP does seem to work)
Alex Alexapolsky
Posted: 04/25/2002, 4:38 AM

Have specified PHP database library in
Project/Settings/Connections/Server ?
Alex Alexapolsky
Posted: 04/25/2002, 4:38 AM

Have you specified PHP database library in
Project/Settings/Connections/Server ?
john@jrthorne.com
Posted: 04/25/2002, 4:47 AM

php/mySQL:
It seems that the server host/dbase/username/password data are not being
saved on the commom/db_mysql.inc file. After getting this error, I viewed
this file and the fields were blank ("") Entered the data manually and
published the files and thinks worked.

Looks like this program will be in Microsoft Office 2003 Developer...
A friendly InterDev...

jrt
Nicole
Posted: 04/25/2002, 4:48 AM

please check server side connection settings. Select Menu Project->Settings, go to Connection tab and select existing connection. Then select 'Modify' option and you'll be presented with Modify Connection window. On Server tab enter db connection settings the same way as in CC. Also select date and boolean fields format. Then regenerate the project.
ami
Posted: 04/25/2002, 6:24 AM

Thanks
have got this to work by specifying PHP database library, Database name, and host on the 'Server' tab of 'Modify Connection'.

didn't do this before because, thinking of CC2.x, I expected the 'Server' tab to refer to the remote (non-design) location. Also, isn't the database and host already specified in the ODBC connection that I am using?


But:
I get about 100 lines of 'Warning undefined variable..." warnings at the top of the page before the form.
EMG
Posted: 04/25/2002, 6:44 AM

Finally got it working, but with ~30 undefined property, variable, and index errors too. Other than that this thing is slick! I am very impressed. Robust with a capital R! OO structure is nice.
Ed
Posted: 04/25/2002, 8:21 AM

- “Finally got it working, but with ~30 undefined property, variable, and index errors …. “

Hmm , I got the same problem. But when I uploaded everything to my ISP Web-server everything was alright , no more errors. So I thought this was something with my local php settings. Messing a bit in php.ini (located in the win dir ) and changing the “display_errors = On” to “Off” the problem was gone. However this does not mean that there are no more errors , they just are not showed. But the application seems to run fine. I just hope somebody will come up with a real solution to remove the errors instead of hiding them. Hope this works for U2 for the time being.
Greetings,
Ed,

ami
Posted: 04/25/2002, 8:34 AM

Yes, Local design PHP installations are normally set to show warnings for debugging, while the public server would normally be set to hide them.

Turning off the warnings is one solution, but I don't remember CodeCharge (non studio) generating such warnings. Is this expected behaviour (for the beta), or could there be another setting somewhere that we've missed?
Ed,
Posted: 04/25/2002, 9:05 AM

No Idea ? I do know that my CC2.05 is not generating any errors at all.
Now I just generated a sample project without altering any settings , so this should work without any errors , I guess. So it could be Studio related.
Ciao. Ed,
feha
Posted: 04/25/2002, 1:28 PM

I have still the same problem...
(could this be made the simple way as CC2.05 ?)
EMG
Posted: 04/25/2002, 2:07 PM

I've given up...wasting too much time B(
CC - any ideas on all the undefined errors for php?
Ed
Posted: 04/25/2002, 3:37 PM

Did you try changing the settings in your php.ini file ? (see previous)
EMG
Posted: 04/26/2002, 6:16 AM

turning errors off is work-around, not a fix
Alex Alexapolsky
Posted: 04/26/2002, 6:58 AM

The fix is to put

error_reporting (E_ALL ^ E_NOTICE);

into common.php file.
If you would turn the same level of error reporting in CC 2.0 you'd get the
same warnings.
Ed
Posted: 04/26/2002, 9:50 AM

“ If you would turn the same level of error reporting in CC 2.0 …. “

Hi Alex , what do you mean by “same level of error reporting” ?
A standard project under CC 2.0 doesn’t give me any errors at all , however with studio it does , unless I switch the error reporting off in my php.ini file.
Ed,

ami
Posted: 04/26/2002, 9:55 AM

I suppose Alex means that the line
error_reporting (E_ALL ^ E_NOTICE); (which has a similar effect to altering the ini file I believe)
was included in common.php in CC2.0 (and it is), but has been left out of common.php in CCS.

Presumably the line will be reinstated into common.php in a later version of CCS?

Still a work-around, but it obviously never troubled us all this time in CC2.0! Thinking about it, if CCS were to declare all these dozens of variables (and thus avoid all warnings) perhaps that would just increase the size of the code without any real benefit.
feha
Posted: 04/27/2002, 6:03 PM

I tested portal it works ok...
I tested RegForm it doesn't work ok...
I tested Bugtrack not ok...
here is for the last one i sow the difference...

http://www.vision.to/bug/bug.jpg

So please Check it to be sure?!
regards
feha
feha
Posted: 04/28/2002, 3:16 AM

Now it works great the problem was setting in both project an server connections to DB...
dsafar
Posted: 04/29/2002, 9:46 PM

OK. I set error_reporting(0); in common.php that fixed the Undefined variable problem, (I could have just changed all the variables - e.g. $PathToRoot; to $PathToRoot='';). I set the server connections to point to mysql. It seems that the sql statements get generated with the table name and field name surrounded by brackets - [tablename] and mysql doesn't like this. I removed. next error is - Database error: Invalid SQL: SELECT COUNT(*) FROM (SELECT link_name, link_url FROM links) cnt
I tried running this from phpmyadmin and mysql doesn't like the syntax. Looks like the studio version needs some serious debugging before it can be used with php/mysql.
dsafar
Posted: 04/29/2002, 10:01 PM

Hold on. When I changed the design time environment from access to mysql, Voila, it works. Who woulda thunk it? Will studio require that the design time and run time environments be the same?

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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