giellacustoms Posted November 7, 2007 Posted November 7, 2007 When I goto my admin I get this error Warning: main(includes/boxes/configuration.php) [function.main]: failed to open stream: No such file or directory in /home/giellacu/public_html/admin/includes/column_left.php on line 13 Fatal error: main() [function.require]: Failed opening required 'includes/boxes/configuration.php' (include_path='.:/usr/lib/php') in /home/giellacu/public_html/admin/includes/column_left.php on line 13 I went to install the better paypal module and the osCommerce_PayPal_IPN_v2.3.2_1 module. Obviously I screwed something up in the code. Can someone tell me which code to change thanks.
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 When I goto my admin I get this errorI went to install the better paypal module and the osCommerce_PayPal_IPN_v2.3.2_1 module. Obviously I screwed something up in the code. Can someone tell me which code to change thanks. OK I now know which line is messed up, it is the "function.main".......but I do not know how to replace it or fix it, please someone help
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 OK I now know which line is messed up, it is the "function.main".......but I do not know how to replace it or fix it, please someone help Ok I have replaced all the files listed in the error from the 1st post and the error is still there!!!! I looked at the php files and everything is spelled right and looks to be in the right spot, but it still isnt seeing the file.....what am I doing wrong here!!!?!?!?!!?
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 25 people have viewed this and no one wants to give it a shot?
Guest Posted November 8, 2007 Posted November 8, 2007 The main function in php is actually encoded into the core of php itself, not a callable function. http://www.php.net/function.main The most likely problem that you are encountering is that the included files are not being found. Have you tried checking that the files are in the correct path and are not corrupt?
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 The main function in php is actually encoded into the core of php itself, not a callable function. http://www.php.net/function.main The most likely problem that you are encountering is that the included files are not being found. Have you tried checking that the files are in the correct path and are not corrupt? I checked file locations and replaced all files mentioned in the above error. I dont know what else to do. My site is ltierally down for the count. I cant even reload a previous version
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 I checked file locations and replaced all files mentioned in the above error. I dont know what else to do. My site is ltierally down for the count. I cant even reload a previous version I cant believe more people are replying to the pop image thing than a FATAL ERROR of a site@@@@
germ Posted November 8, 2007 Posted November 8, 2007 It says it can't find this file: /home/giellacu/public_html/admin/includes/boxes/configuration.php If you've verified the file does exist, check the permissions. They should be 644 As a test, I renamed that file on my site to something else, and received the exact same error. So, if the file is there, and all the permissions are right, it should be found. 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 >
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 It says it can't find this file: /home/giellacu/public_html/admin/includes/boxes/configuration.php If you've verified the file does exist, check the permissions. They should be 644 As a test, I renamed that file on my site to something else, and received the exact same error. So, if the file is there, and all the permissions are right, it should be found. would it help for me to go ahead and download oscommerce again and replace the file I have with the new one? I will re-check that directory to make sure though. Whats a "644"??
germ Posted November 8, 2007 Posted November 8, 2007 644 would be read/write permissions for the file owner, and read-only for everyone else. I don't think replacing the file is the way to go, as it's not a problem with the file per se, just finding it. 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 >
giellacustoms Posted November 8, 2007 Author Posted November 8, 2007 644 would be read/write permissions for the file owner, and read-only for everyone else. I don't think replacing the file is the way to go, as it's not a problem with the file per se, just finding it. ok well thanks, I am lookig nat it right now, will let you know what I find in a bit
giellacustoms Posted November 9, 2007 Author Posted November 9, 2007 /home/giellacu/public_html/admin/includes/boxes/configuration.php ok the configuration.php file is not there, this will be a dum question, but where do I get this file?
germ Posted November 9, 2007 Posted November 9, 2007 Here's mine: <?php /* $Id: configuration.php,v 1.17 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ ?> <!-- configuration //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CONFIGURATION, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration')); if ($selected_box == 'configuration') { $cfg_groups = ''; $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order"); while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) { $cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>'; } $contents[] = array('text' => $cfg_groups); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- configuration_eof //--> You don't have a backup of your site on your PC? :unsure: That's a disaster just waiting to happen.... :o 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 >
giellacustoms Posted November 9, 2007 Author Posted November 9, 2007 Well I backed it up last week but it seems it only backed up half the site, thats the last time I dont check it to make sure it did it right. Is there a way you can upload your PHP file because I dont know how to create a document with that extenson. Thanks.
Guest Posted November 9, 2007 Posted November 9, 2007 When I goto my admin I get this errorI went to install the better paypal module and the osCommerce_PayPal_IPN_v2.3.2_1 module. Obviously I screwed something up in the code. Can someone tell me which code to change thanks. How come you edited the admin column_left file?
Guest Posted November 9, 2007 Posted November 9, 2007 Open notepad or a similar text editor and copy and paste the code in : <?php /* $Id: configuration.php,v 1.17 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ ?> <!-- configuration //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CONFIGURATION, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration')); if ($selected_box == 'configuration') { $cfg_groups = ''; $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order"); while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) { $cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>'; } $contents[] = array('text' => $cfg_groups); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- configuration_eof //--> Click File->Save As Enter the filename as configuration.php Change Save as type : to All Files Save the file to the correct location and upload to your site. Agreed, you should ensure you backup files before making changes. :thumbsup:
giellacustoms Posted November 9, 2007 Author Posted November 9, 2007 Thanks again everyone. I dont remember editing my column_left.php for anything, in fact I am not 100% sure what that php does. I am thankful you guys are helping. I will try this tonight and see what happens.
giellacustoms Posted November 9, 2007 Author Posted November 9, 2007 Thanks again everyone. I dont remember editing my column_left.php for anything, in fact I am not 100% sure what that php does. I am thankful you guys are helping. I will try this tonight and see what happens. OK I added that .php file but it still came up witht he same error. I have decided to post what my column_left.php says, so here it is. It says it cant find it on line 13....please let me know what you see and if I should change what the .php file says <?php/* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // {{ buySAFE Module if (MODULE_BUYSAFE_BUYSAFE_STATUS == 'True' && tep_not_null(MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA) && MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA != '-- none --' && $buysafe_result['IsBuySafeEnabled'] != 'false' && !$buysafe_result['faultstring']) echo "<!-- buySAFE //-->\n<tr><td align=\"center\"><script src=\"" . MODULE_BUYSAFE_BUYSAFE_ROLLOVER_URL . "\"></script><span id=\"BuySafeSealSpan\"><script type=\"text/javascript\">WriteBuySafeSeal('BuySafeSealSpan', '" . MODULE_BUYSAFE_BUYSAFE_SEAL_TYPE . "', 'HASH=" . urlencode(MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA) . "');</script> </span></td></tr>\n<!-- buySAFE_eof //-->\n"; // }} if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?>
germ Posted November 9, 2007 Posted November 9, 2007 That's the one from your Catalog, not Admin... :blush: 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 >
germ Posted November 9, 2007 Posted November 9, 2007 Are you sure you uploaded the file into this folder: /home/giellacu/public_html/admin/includes/boxes :unsure: 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 >
giellacustoms Posted November 10, 2007 Author Posted November 10, 2007 Are you sure you uploaded the file into this folder: /home/giellacu/public_html/admin/includes/boxes :unsure: oh the admin no, I will recheck
giellacustoms Posted November 10, 2007 Author Posted November 10, 2007 I figured it out, I was completely missing the "boxes" folder, once I inserted it, it works fine now......So how do i go about making paypal work so that when someone pays with paypal, I get the order form. I know i have to install a module but please make it a simple one :)
germ Posted November 10, 2007 Posted November 10, 2007 Use the Paypal IPN Module. I installed it in about 15 minutes. After installing it you'll get a few errors, but the instructions say you will, and tell you how to fix them. One thing is though, I believe you have to have a "Merchant account" at Paypal to use this. But, I'm not positive. 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 >
giellacustoms Posted November 11, 2007 Author Posted November 11, 2007 Use the Paypal IPN Module. I installed it in about 15 minutes. After installing it you'll get a few errors, but the instructions say you will, and tell you how to fix them. One thing is though, I believe you have to have a "Merchant account" at Paypal to use this. But, I'm not positive. yes I do have a merchant through them, in fact i pay 30 bucks per month to have them do my stuff
Recommended Posts
Archived
This topic is now archived and is closed to further replies.