pgm Posted December 1, 2005 Share Posted December 1, 2005 >_< This contrib was uploaded on the 30th and looks to be exactly what I (and loads of other people judging by the other posts on this board) are looking for ... :rolleyes: Javascript function to pull the Values for Attributes ... ie. shows only the relevant options for a particular attribute. Superb ... BUT ... :x I get an error which I would really appreciate some help with ... Warning: main(includes/configure.php): failed to open stream: No such file or directory in /data/members/paid/s/i/silkbarn.co.uk/htdocs/www/admin/includes/application_top.php on line 29 Warning: main(includes/configure.php): failed to open stream: No such file or directory in /data/members/paid/s/i/silkbarn.co.uk/htdocs/www/admin/includes/application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/s/i/silkbarn.co.uk/htdocs/www/admin/includes/application_top.php on line 29 Application_top.php calls the configure.php file ... I've looked at the configure.php file and can see nothing wrong with it! <?php/* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.silkbarn.co.uk/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.silkbarn.co.uk/'); define('HTTPS_CATALOG_SERVER', 'http://www.silkbarn.co.uk/'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'silkbarn_co_uk'); define('DB_SERVER_PASSWORD', '*********'); define('DB_DATABASE', 'silkbarn_co_uk_1'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> I have search Google and these boards and it seems to be a common error to do with .htaccess or php.ini? I am a newbie to this and couldn't find a solution that made any sense. I am hosting this on Lycos who I have since found out restrict some php functions and CHMOD ... could this be the problem? Any help would be great. Thanks in advance. :D :D :D Quote Link to comment Share on other sites More sharing options...
pgm Posted December 1, 2005 Author Share Posted December 1, 2005 Sorry ... Forgot to add link to this excellent Mod ... http://www.oscommerce.com/community/contributions,3809 Quote Link to comment Share on other sites More sharing options...
AlaneinHilo Posted January 13, 2006 Share Posted January 13, 2006 Hi Giles, Did you solve your problem? I encountered the same issue. What I did to fix it was upload the options_attributes.php file to catalog/admin rather than catalog/admin/includes then 2 changes: Changed options_update.js: http.open('get',"includes/options_attributes.php?po_id="+id) to: http.open('get',"options_attributes.php?po_id="+id) Changed options_attributes.php: require('application_top.php'); To: require('includes/application_top.php'); Alane Quote www.luminousgifts.com Link to comment Share on other sites More sharing options...
pgm Posted January 16, 2006 Author Share Posted January 16, 2006 Hi Alane, Thanks for your response. I moved the files and changed the code which has got rid of the errors - which is a good start ... BUT When I select the attribute drop down it changes to loading (as expected) but then it does not bring back any values so I end up with an empty drop down box! Did you have anything like this? Thanks again for the help Giles. :thumbsup: Quote Link to comment Share on other sites More sharing options...
gargsuchi Posted May 16, 2006 Share Posted May 16, 2006 I am facing the following issue with this - when i change the option name in the drop down, instead of a option values drop down, i get the follwoing error: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. I am on shared hosting - so i cant change my php.ini. Also, i tried using .htaccess - php_flag register_globals 1 but this gives a 500 (internal server error) Pls help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.