Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing in text editor vs File Manager


Guest

Recommended Posts

As recommended, I downloaded the entire site to my computer and began editing column_left.php in Arachnophilia - a shareware text editor (I use it instead of Notepad because it colors the tags so I can tell if I forgot to close anything).

 

Upon editing column_left.php and uploading (I just commented out one line to remove the manufacturers box), it gave the following errors:

 

Warning: main(includes/boxes/configuration.php) [function.main]: failed to open stream: No such file or directory in /var/www/greatlakes/www.greatlakesgeographic.com/www/catalog/includes/column_left.php on line 13

Fatal error: main() [function.require]: Failed opening required 'includes/boxes/configuration.php' (include_path='.:/usr/local/lib/php') in /var/www/greatlakes/www.greatlakesgeographic.com/www/catalog/includes/column_left.php on line 13

 

So, I uploaded the backup of the file I made (using FileZilla as the FTP program) and replaced the file and got the same error as above.

 

When I open the file in File Manager, it now looks different than column_right.php. All the if(isset and similar lines are missing - it's simply a list of require statements.

 

Is anyone familiar with this? Is it my FTP program messing something up? Editing in the File Manager doesn't seem to hurt anything - why should I not be using that? I've edited php files successfully (outside of osCommerce) in Arachnophilia before and uploaded via Filezilla and not had any trouble. I obtained the original copy of column_left.php from the install zip file and uploaded it and it went back to normal - this would lead me to believe its not my FTP program.

 

Has anyone run into this before? Is it safe to continue to use the File Manager to edit? Editing the stylesheet.css in Arachnophilia didn't hurt anything.

 

Thanks in advance. I haven't had to post prior to now because the forum search has turned up such good results.

Link to comment
Share on other sites

On further reading of other posts, I downloaded Crimson Editor, and I'm getting the same effect.

 

If I look at the column_left.php file in the File Manager, it looks like this:

 

<?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 (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 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');
?>

 

If I open the same file in Crimson Editor, the file looks like this:

 

<?php
/*
 $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'configuration.php');
 require(DIR_WS_BOXES . 'catalog.php');
 require(DIR_WS_BOXES . 'modules.php');
 require(DIR_WS_BOXES . 'customers.php');
 require(DIR_WS_BOXES . 'taxes.php');
 require(DIR_WS_BOXES . 'localization.php');
 require(DIR_WS_BOXES . 'reports.php');
 require(DIR_WS_BOXES . 'tools.php');
?>

 

It's a completely different file! What is going on?

Link to comment
Share on other sites

Your looking at two different files, look at the Copyrights

 

The first is from 2003 the othr is from 2002

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...