Pear Usage

Hi,

I installed Zoon properly on the web server using cpanel. But I already have pear tools in cpanel installed at the "root/php" folder. The zoon is stored at "root/www/". I am not sure if I can do the pear install as per: http://zoopframework.com/docs/user-manual/installation/installing-zoop. Nevertheless, I installed the pear libraries as listed on the link, through cpanel PEAR PHP tool.

Please tell me if I can use the same pear or I need to do something else.

Moreover, I could successfully tested all the examples except the one involving the CRUD with form, that requires pear. I searched the website and internet but unable to find the solution. Please respond.

Thanks.
Sangharsh

Pear Libraries From Net

There is no need to use the Pear Libraries included with Zoop if your ISP allows you to install Pear libraries directly. The inclusion of the Pear libraries in the download is for the benefit of people who's Web Host does not allow Pear installation. I use Pear Libraries directly from the Pear site and all the most recent versions work with Zoop.

If your ISP already has installed the Pear libraries I would avoid installing the ones from Zoop as you may run into a conflict. You may also want to avoid adding a reference to the Pear Library location in the config.php file as your Web Host should have already included it in the php.ini if they are allowing you access from the beginning.

What errors are you seeing when you attempt to access the example?

jmorant@cloud9l... 06 Apr 2009

Irrespective of whether I

Irrespective of whether I keep the include statement for Pear or not, I am getting following error:

Application Error 154.49da98c7e0986

An error has occurred. Please report the error code above.

The number keeps on changing. Also I tried deleting the code to know which lines might be causing problem. Following is the code in zones/users.
__________________________________________________________________________________________________________
function pagelistUsers($inPath)
{
global $gui;
// create a new form if one isn't already in the zone
if(!isset($this->form)) $this->form = &new form;
$table = "regions"; // define which table in the database you are using
$this->form->initTable($table); // initialize the table inside the form object
}
__________________________________________________________________________________________________________
**regions is one of the table in my mysql db.
If I delete the last line, I get a blank page otherwise I am getting the error. I think there is an error in initializing the table. I am not sure if db is connecting properly. Although I kept mysql authentication in the skeleton/config.php I did not connect any of my pages to db.
What do you think its db or Pear thats causing problems?

Many thanks.
Sangharsh

meetsang 07 Apr 2009

Error messages

In your config.php, you have defined app_status to be either 'live' or 'test'. This will log errors and display a message like the one above to the user. The log will be saved in the location specified by define('LOG_FILE', 'some/file/location'); You can check that log to see what the error is. You can also change your app_status by doing: define('app_status', 'dev'); in config.php.

john 07 Apr 2009