l have problem and the output error is
Warning: "zoop::include_once(DB.php) [function.zoop-include-once]: failed to open stream: No such file or directory" in file /zoop.php (on line 159)
PHP Backtrace
File: Line: Function:
/app/error.php 49 fetch_backtrace ()
/zoop.php 159 error_debug_handler (2, "zoop::include_once(DB.php) [function.zoop-include-once]: failed to open stream: No such file or directory", "/data/websites/egov/zoop/zoop.php", 159, )
/zoop.php 159 zoop::autoLoad ()
/zoop.php 22 zoop->autoLoad ("db")
/db/database.php 63 __autoload ("db")
/db/mysql.php 19 database->database ()
/db/mysql.php 186 sql_connect ()
/data/websites/egov/zone_default.php 426 sql_fetch_one_cell ("SELECT username FROM users WHERE username = '' AND password = ''")
/zone/zone.php 435 zone_default->postLogin ()
/zone/zone.php 363 zone->_checkFuncs ("login", )
/zone/zone_component.php 87 zone->handleRequest ()
/zoop.php 194 component_zone->run ()
/data/websites/egov/index.php 15 zoop->run ()
Warning: "zoop::include_once() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/data/websites/egov/zoop/lib/pear:')" in file /zoop.php (on line 159)
PHP Backtrace
File: Line: Function:
/app/error.php 49 fetch_backtrace ()
/zoop.php 159 error_debug_handler (2, "zoop::include_once() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/data/websites/egov/zoop/lib/pear:')", "/data/websites/egov/zoop/zoop.php", 159, )
/zoop.php 159 zoop::autoLoad ()
/zoop.php 22 zoop->autoLoad ("db")
/db/database.php 63 __autoload ("db")
/db/mysql.php 19 database->database ()
/db/mysql.php 186 sql_connect ()
/data/websites/egov/zone_default.php 426 sql_fetch_one_cell ("SELECT username FROM users WHERE username = '' AND password = ''")
/zone/zone.php 435 zone_default->postLogin ()
/zone/zone.php 363 zone->_checkFuncs ("login", )
/zone/zone_component.php 87 zone->handleRequest ()
/zoop.php 194 component_zone->run ()
/data/websites/egov/index.php 15 zoop->run ()
Fatal error: Class 'db' not found in /data/websites/egov/zoop/db/database.php on line 63
__________________________________________________________
I HAVE THE db.php IN "my_application/config/" what might be the problem?
You are missing the Pear DB Library
The file DB.php has an uppercase DB which is usually related to the Pear library. The file db.php with a lower case db is the config file for the Zoop database.
Some background, Zoop uses Pear libraries to provide database functionality so the Pear DB files need to be in a path which Zoop knows about so it will be able to access the files. The Pear library is provided as a separate download for Zoop and can be placed in the same folder as your website for easy access if you are new to Pear and PHP applications. The other options is to use the pear command at the console to automatically install the Pear libraries.
From the error you posted it looks as if the Pear libraries are not installed because your copy of Zoop is looking in the standard Pear locations plus your application folder. This is seen on in the line pasted below:
(include_path='.:/usr/share/php:/usr/share/pear:/data/websites/egov/zoop/lib/pear:')
Each colon above represents a path which PHP will look in to find files so the three folders your application knows about are /usr/share/php, /usr/share/pear, and /data/websites/egov/zoop/lib/pear.
If you use a download copy of the Pear libraries from the Zoop website you can just decompress it into the same folder as your website files and Zoop should be able to locate the libraries.
If you use the pear command to install the missing library you would want type "pear install -a DB" at the command prompt in a terminal window (Note: type what is between the quotes). This command will not install all of the Pear libraries only the missing DB library. The command pear is based on the Linux operating system with the PHP and Pear properly installed.
Solution
We found the problem he was having was in the include_path. On Windows, the path separator for the include path is ;, on Unix, it is :. Make sure that your include_path has no colons, but only semicolons when using zoop in windows. In particular, the zoop_skeleton had an error with a trailing : in the config.php line that adds zoop/lib to the include_path for windows.