Mark Russell Posted September 23, 2002 Share Posted September 23, 2002 Greetings, I'm running Apache 1.3.20, PHP 4.0.5 and MySql locally for my dev environment. I'm having some problems with the GV Credit Class system that I think are related to incorrect paths in my configure.php file(s). Anyone running a similar environment willing to post (or PM me) both of their configure.php files? I'd really like to fix this or rule out the possibility that it is in my configuration. Thanks, Mark Link to comment Share on other sites More sharing options...
Ian Posted September 23, 2002 Share Posted September 23, 2002 Mark, If your system was working ok before installing the Credit Class GV, then the problem is unlikely to be your configure.php What exactly are the problems you are encountering. Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Mark Russell Posted September 23, 2002 Author Share Posted September 23, 2002 Hi Ian, I had this same error about 1 month ago. You tried to help me then. I was using an April 2002 snapshot and you recommended I update. I d/l a Sep 18 snapshot and installed, plus installed the GV/CC .94 and I get the same error now as I was with the April snapshot. This happens when I click on any of the GV links in admin. Fatal error: Cannot redeclare class currencies in c:apachehtdocscatalogincludesclassescurrencies.php on line 16 The funny thing is is that the directory I'm working on is 'catalog918' (I'm playing with a later snapshot than my current catalog), yet the error message is pointing across directories to 'catalog'. This is why I think I have a configure.php problem. So in summary: - I have my regular dev environment in 'catalog', which is working w/out GV/CC. Snapshot from April 2002. - I have the new dev environment in 'catalog918', which is working fine except the error above when I click on a GV link in admin. Snapshot from Sep 18 2002. - Both on the same localhost, windows98, apache, php4, mysql Thanks for any help, Mark Link to comment Share on other sites More sharing options...
Ian Posted September 23, 2002 Share Posted September 23, 2002 You have me stumped, As far as I know, any file in admin which needs the currencies class should include it itself, rather than relying on application top. This is what the gv files do. The only thing I can suggest is to edit each of the files gv_mail.php gv_queue.php gv_sent.php Near the top of each file you will find. require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); remove both of these lines. See if this works, also could you post your configure.php (directory definitions only) Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Mark Russell Posted September 24, 2002 Author Share Posted September 24, 2002 Ian, I found and installed your "loaded" version thinking I may solve my problems if they are all integrated from the start. What a mess I have now. - I installed the loaded version as catalog923. - I have admin923 inside catalog923 - All other directories I left in the Loaded_2 directory structure under htdocs (is this correct?) Result: Big time cross over between catalog923 and catalog (my current working shop's dev environment). Big time cross over between admin923 and admin. A lot of errors, too numerous to list. Back to basics: What should my php.ini include_path look like? Seems like most of my errors come from not accessing the catalog923/includes and admin923/includes direcory and subdirectories. My configure.php files seem ok. Thx, Mark catalog923 configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); define('ENABLE_SSL', false); define('DIR_WS_CATALOG', '/catalog923/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', 'c:/apache/htdocs'); define('DIR_FS_CATALOG', 'c:/apache/htdocs/catalog923/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); admin923 configure // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'https://localhost'); define('ENABLE_SSL', 'false'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'c:/apache/htdocs'); define('DIR_WS_ADMIN', '/catalog923/admin923/'); define('DIR_FS_ADMIN', 'c:/apache/htdocs/catalog923/admin923/'); define('DIR_WS_CATALOG', '/catalog923/'); define('DIR_FS_CATALOG', 'c:/apache/htdocs/catalog923/'); / define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Link to comment Share on other sites More sharing options...
Mark Russell Posted September 24, 2002 Author Share Posted September 24, 2002 Ian, I fixed it. It was my php.ini include_path. It now looks like this: include_path = ".;c:apachehtdocs" for anyone interested. I added the first period "." before the first semi-colon and that took care of all of my errors. Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.