Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configure.php


djtalon

Recommended Posts

Hi all,

I have this message on opening of Shopping Cart;

 

Warning: I am able to write to the configuration file: /homepages/11/d100105969/htdocs/wsc100105977/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

how do I fix it?

Thanks

Gary ( stuck again )

Link to comment
Share on other sites

And,

I have removed the Install package but this message still remains at the top of the Shopping Cart Index page;

 

Warning: Installation directory exists at: /homepages/11/d100105969/htdocs/wsc100105977/catalog/install. Please remove this directory for security reasons.

 

Please help me sort it out as I know absolutely nothing about php!

 

Thanks Gary

Link to comment
Share on other sites

So, you fixed it.

 

Use your ftp program to set the permissions (chmod) of the configure.php file to 644 or rr- r-- r--

 

If you've taken the installer files out of the install folder you can just change its name. osC only looks for a folder with that name and then warns if it exists.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

ello again,

So now I'm in tools/define languages/index.php and I wiped the crap off only to get this;

 

Parse error: parse error in /homepages/11/d100105969/htdocs/wsc100105977/catalog/includes/languages/english/index.php on line 13

 

Here's the file;

 

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

<font color="#f0000"><b></b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define(What's New, 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

I'm sure I've just lost a character but I don't know what?

 

Also I haven't got an ftp Program if you mean something like ftp commander.

 

Gary

Link to comment
Share on other sites

What's this? :huh:

 

define(What's New, 'Let\'s See What We Have Here');

 

How did you get that in there. It's line 14 so it's no wonder you throw an error on 14.

 

I'd upload a fresh copy and be a little more careful next time. :D

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Oops, looking at the wrong file.

 

Lemmee check more.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Here we go. You didn't read the instructions on the default main page. You took out too much stuff.

 

The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

define('TEXT_MAIN', '');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I don't know what it is I'm doing wrong I've deleted between the () and nothing else but I still have a warning for Parse error this time line 13;

 

Parse error: parse error in /homepages/11/d100105969/htdocs/wsc100105977/catalog/includes/languages/english/index.php on line 13

 

Here's the text;

 

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define();

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

By the way thanks for being patient with me!

Link to comment
Share on other sites

Ah got rid of the parse error although I have Text_Main showing on that Index page. I can't see anything out of Tags. I'll have another look.

 

In the mean time I still have the warning Message;

 

Warning: I am able to write to the configuration file: /homepages/11/d100105969/htdocs/wsc100105977/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

You said something about my being able to right this problem with an FTP Program. The problem is I don't have an FTP Program. Are you talking about something like FTP Commander because I can download something like this now???

Link to comment
Share on other sites

Here's the example from the demo store.

 

define('TEXT_MAIN', '');

 

It's an empty string, but the line must be there.

 

 

As to the permissions, follow the instructions by bluepony in this thread if you have no ftp program that will set permissions.

 

http://www.oscommerce.com/forums/index.php?showtopic=87339&st=0&

 

This only works on linux/unix servers.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...