Rewmer Posted June 5, 2011 Share Posted June 5, 2011 After some teething trouble and some help from BryceJr, I now have acces to the shop front. I need to start editing now but cant get access to the admin page it just keeps throwing up the following error.. "PHP Warning: require(/catalog/includes/classes/action_recorder.php) [function.require]: failed to open stream: No such file or directory in C:\domains\genetic-gems.com\wwwroot\catalog\adminavailable\includes\classes\action_recorder.php on line 13 PHP Fatal error: require() [function.require]: Failed opening required '/catalog/includes/classes/action_recorder.php' (include_path='.;C:\php5\pear') in C:\domains\genetic-gems.com\wwwroot\catalog\adminavailable\includes\classes\action_recorder.php on line 13 " Can anybody give me a lead. Ive had a look at the config files and checked my spellings but I am a little lost at this point. Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 Check the admin config file for the changes Bryce suggested. You might have missed one or two. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rewmer Posted June 5, 2011 Author Share Posted June 5, 2011 Thanks Germ, It looks OK to me....... This is the actual admin/includes config... define('HTTP_SERVER', 'http://www.genetic-gems.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.genetic-gems.com'); define('HTTPS_CATALOG_SERVER', 'https://www.genetic-gems.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $_SERVER['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', '/catalog/adminavailable/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Please tell me if I am being stupid !! Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 Is that your local copy, or did you read it from the server before you posted it? :unsure: If you edit things locally then FTP to the server the FTP program may not always overwrite the file on the server. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rewmer Posted June 5, 2011 Author Share Posted June 5, 2011 Is that your local copy, or did you read it from the server before you posted it? Straight of the server..... Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 Copy the code from the codebox below and save it as a php file in the admin folder. Access it with your browser. Copy/paste the output it produces into your next post. <?php // load server configuration parameters if (file_exists('includes/local/configure.php')) { // for developers include('includes/local/configure.php'); } else { include('includes/configure.php'); } echo 'DIR_FS_DOCUMENT_ROOT [' . DIR_FS_DOCUMENT_ROOT . ']<br>'; echo 'DIR_WS_CATALOG [' . DIR_WS_CATALOG . ']<br>'; echo 'DIR_FS_CATALOG [' . DIR_FS_CATALOG . ']<br>'; ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rewmer Posted June 5, 2011 Author Share Posted June 5, 2011 As instructed, readout from admin executed php file DIR_FS_DOCUMENT_ROOT []DIR_WS_CATALOG [/catalog/] DIR_FS_CATALOG [/catalog/] Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 In the admin config file change this: define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); To: define('DIR_FS_DOCUMENT_ROOT', 'C:/domains/genetic-gems.com/wwwroot'; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 My bad... :blush: define('DIR_FS_DOCUMENT_ROOT', 'C:/domains/genetic-gems.com/wwwroot'); Stupid should hurt.... :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rewmer Posted June 5, 2011 Author Share Posted June 5, 2011 Germ, I have upgraded your status to - LEGEND. I was thrown abit to start with as there was a ) missing off the end of the code you posted, but it seems Dreamweaver is more vigilant than me and flagged it up. I now have full access to admin. Many thanks for your help, I hope I can start giving back to the forum when I get stuck into the formating. :thumbsup: Link to comment Share on other sites More sharing options...
germ Posted June 5, 2011 Share Posted June 5, 2011 Bryce deserves the credit, not I. The code he posted should have worked. For some reason $_SERVER['DOCUMENT_ROOT'] isn't being set on the server so we just switched to the alternative - a "hard coded path". :) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.