'Build Directory' is not working! [message #1066] |
Wed, 29 August 2007 17:06 |
bbkwon
Messages: 13 Registered: August 2007
|
Junior Member |
|
|
Hi,
I finally set everything right to begin build my application.
But when I try to use 'Build Directory' for my new Subsystem, it doesn't do anything.
I only get the following message at the bottom of the 'List Subsystem' page after clicking the button.
------ "0 records were updated in MNU_SUBSYSTEM"
I guess it means Radicore didn't do anything about it.
I check the directory under radicore, none is created. No Task(menu) is created either.
I'm running:
Ubuntu 6.1
PHP5.1.6
MySql 5
Apache2
The web service user 'www-data' has right to create directory in radicore.
What can make this happen?
How can I troubleshoot this?
Which file is used for 'Build Directory'?
Is there any way to this in manual? If there is what is the procedure?
Thanks.
|
|
|
Re: 'Build Directory' is not working! [message #1067 is a reply to message #1066] |
Wed, 29 August 2007 18:03 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I have just tried this procedure on my PC, and it works as advertised. If I ask it to create a new directory it does it and displays the message "Directory X created". If I repeat the operation it displays the message "Directory X already exists".
I am running on Windows, so there might be something peculiar happening on your machine. Can you step through with your debugger to see what is going wrong?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: 'Build Directory' is not working! [message #1069 is a reply to message #1068] |
Wed, 29 August 2007 19:40 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I know nothing about the permissions system of Ubuntu, so I cannot offer any advice. All I can say is that whatever user that Apache is running as must be able to create directories and subdirectories, and must be able to delete and create files in any of those directories.
You need an interactive debugger so that you can step through each line of code as it is being executed, then you will be able to see what is going on. Do a google search on "php debugger".
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
Re: 'Build Directory' is not working! [message #1073 is a reply to message #1072] |
Thu, 30 August 2007 09:13 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
All the database table classes in Radicore are actually subclasses of std.table.class.inc which contains all the method names which are called from the page controller.
_cm_post_getData() is called from the superclass(std.table.class.inc) immediately after the getData() method.
If you did as I asked and stepped through the code with your debugger instead of simply looking at the code you would see the path taken through the code, and you would see where it was failing.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: 'Build Directory' is not working! [message #1075 is a reply to message #1074] |
Thu, 30 August 2007 18:28 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
mnu_subsystem_s02 extends mnu_subsystem, which extends std.table, so when an object is instantiated from class mnu_subsystem_s02 any method in that subclass will override any method with the same name in any superclass. When the getData() method in std.table.class.inc calls _cm_post_getData() it should most definitely use the one in mnu_subsystem_s02. This is how it works on both of my PCs, one which runs PHP 4.4.7 and the other which runs PHP 5.2.3.
If it does not then there is something seriously wrong with your PHP installation, and not any code in the Radicore framework.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|