
Laquixa
|
| Posted: 09/16/2002, 6:02 PM |
|
I'm having trouble getting everything set up for the first time.
Aiming to try out the bookstore code, I've downloaded the CCS demo.
It will be hosted on a server with php and mysql. I have all the connection stuff for the hosted pages set up, but I've been told that even if I install myodbc (as per the tutorial on this site) It work work unless the server I'm uploading to has it.
Even if I give permission (GRANT I think, through a controlpanel on the website) I can't seem to connect to the db to have CCS make all the tables in design mode (Am I understanding this is the way it works?)
So, I ran the mysql.sql script from the demo, and it seemed to work. Will I have to do that by hand each time? Does ccs write a mysql batch script for each project somewhere I can find each time? Do I have to have a db set up locally (on this computer) for ccs to work? I don't mind running it by hand, it's not as easy as just having it set up, but with a batch, it wouldn't be so bad.
2nd problem, it seems that the uploaded code is having trouble finding the files it included, I don't think i've made any strange changes. but I get this
Warning: Failed opening '/Common.php' for inclusion (include_path='') in public_html/dev3/default.php on line 4
Warning: Failed opening '/Template.php' for inclusion (include_path='') in public_html/dev3/default.php on line 5
Warning: Failed opening '/Sorter.php' for inclusion (include_path='') in public_html/dev3/default.php on line 6
Warning: Failed opening '/Navigator.php' for inclusion (include_path='') in public_html/dev3/default.php on line 7
Warning: Failed opening '/Header.php' for inclusion (include_path='') in public_html/dev3/default.php on line 12
Fatal error: Class clscategoriesdatasource: Cannot inherit from undefined class clsdbinternet in public_html/dev3/default.php on line 112
Why can't if find the includes? What do I need to change?
I can't wait to see what this program can do.
-LaQuixa
|
|
|
 |
Jeremy
|
| Posted: 09/16/2002, 6:24 PM |
|
Sounds odd. Almost looks like the server can't find the include files.
Don't expect CCS to write tables for you, it's just there to do the other code. Meaning application development. It is not a frontend for a database. At least not from what I have done with it.
I would try running it on a local server, making sure your mysql server is running right. Verify this by using a gui frontend or just open the cmd line, or whatever OS you are using to check to be sure the server is running correctly. Once you verify your web server and db server are runnin right, then generate the files and test local. Just to start.
Let us know if this works
|
|
|
 |
Laquixa
|
| Posted: 09/16/2002, 7:24 PM |
|
Figured out all the includes...
For some reason the default.php was looking for (line 12) Header.php, but the file name is actually header.php, strange discrepancy, is ccs ftp forcing files lowercase? Others seem to have Uppercase. so I changed it in default.php to a lowercase h, and no error. However, will I have to change all the includes on all pages to the lowercase?
And the page still not displaying because of:
I'm getting this error
Fatal error: Class clscategoriesdatasource: Cannot inherit from undefined class clsdbinternet in public_html/dev3/default.php on line 112
Which is strange because line 112 states
112 class clscategoriesDataSource extends clsDBinternet
Note the capital DB.
I have no clue what clsDBinternet is, or where it comes from, or why the difference in caps. Any clues?
|
|
|
 |
Laquixa
|
| Posted: 09/16/2002, 8:11 PM |
|
Ok, I took the 'easy' way and just renamed the files for the Header and Footer.
my login.php page loads now, but I still get that fatal error on the default.php page. where does clsdbinternet come from anyway?!
|
|
|
 |
Laquixa
|
| Posted: 09/16/2002, 8:14 PM |
|
Seems the login.php is the only page that displays, all the pages it links to it has trouble figuring out the capitalization, some links refering to capitals that don't exist, I don't understand why I'm having so much trouble with this...
|
|
|
 |
Laquixa
|
| Posted: 09/17/2002, 6:18 AM |
|
I know I can start all over again with a new project if I need to. Has anyone else had trouble with the bookstore project that comes with CCS? It doesn't seem to reference itself properly, trying to get Header.php when the file is header.php, and similar problems. I though that the included templates were mostly upload and go, with a few variables changed. What am I doing wrong?
|
|
|
 |
|

|