Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help please its for my site www.tulios.com


squash

Recommended Posts

Posted

i have clicked browse and it shows my harddrive co i click this and it adds it to text box next to browse ,but when i save it does not load my image ,why?

i need to act fast fast here to upload my site tulios.com ,plz help.

Posted
i have clicked browse and it shows my harddrive co i click this and it adds it to text box next to browse ,but when i save it does not load my image ,why?

i need to act fast fast here to upload my site tulios.com ,plz help.

 

 

Check that the permissions on the images directories on the server are properly set.

 

John

Posted

Perhaps your provider set the settings for File Uploads in php.ini to Off?

; Whether to allow HTTP file uploads.
file_uploads = Off

Posted
Perhaps your provider set the settings for File Uploads in php.ini to Off?

; Whether to allow HTTP file uploads.
file_uploads = Off

 

so when i upload my image ,from browse it goes to my hard drive ,yes how do i change to 755 permmisions

i cannot do this on my hardrive can i?

so i go to my sever host yes ,i have changed to 755 on my host so what happens next if my hardrive image is 644,how do i get the 755 image

Posted

Leave the images directory at 777. When uploading the images, you shouldn't need to change permissions on individual files. Just make sure that the directory is 777.

 

-jared

Posted
Leave the images directory at 777.  When uploading the images, you shouldn't need to change permissions on individual files.  Just make sure that the directory is 777.

 

-jared

 

the files are bieng uploaded as 655

when i upload to the server ,so i need to change this to 777 correct?

so when i hit browse why is it going to my hard drive and still getting the unchanged image of 655?

i want to go to host server but this is not possible .

Posted

You don't need to change the individual image files to 777.

 

When you click "Browse" it will always go to your local hard drive.

 

-jared

Posted
You don't need to change the individual image files to 777.

 

When you click "Browse" it will always go to your local hard drive.

 

-jared

 

 

yes it goes to my hard drive but nothing happens when i save why?

sever has been changed to 777 filemanager,whats going on plz help ,i want to add images to my site.

Posted
yes it goes to my hard drive but nothing happens when i save why?

sever has been changed to 777  filemanager,whats going on plz help ,i want to add images to my site.

 

yes i know it goes to my hard drive ,but it will no load an image from my drive!

i have loads of images that are 777 in my hosting server site yet my hard drive i cannot get it to load an image ,i cannot even change the images that are in my server host as it will no access this it freezes ,so yes it only goes to my hard drive .

when i login to browse explain to me who is uploading the image from my hard drive ?

and how can i set permmissions to 777 to enable this to upload .

Posted

Ok - - slow down. Let's take this one step at a time.

 

1) are you sure that the images directory on your hosting server has the permissions set to 777?

2) are you trying to upload images from your hard drive, or are you trying to have your products refer to images that you have already uploaded?

3) If you put the URL to the image (i.e. http://yourdomain.com/images/someimage.jpg) does it show up in your browser?

 

-jared

Posted
Ok - - slow down.  Let's take this one step at a time.

 

1) are you sure that the images directory on your hosting server has the permissions set to 777?

2) are you trying to upload images from your hard drive, or are you trying to have your products refer to images that you have already uploaded?

3) If you put the URL to the image (i.e. http://yourdomain.com/images/someimage.jpg) does it show up in your browser?

 

-jared

 

please i am live online live poerator at the moment please can you go there ,i need to set up my shop today,

 

this image is loaded to the server ,

 

this is the image http://tulios.com/shop/images/matrox/ghdpinkys.jpg

i have put this in the browse box ,but it does not load ,i cannot add any or change any images at all in my os commerce shop.

Posted
please i am live online live poerator at the moment please can you go there ,i need to set up my shop today,

 

You didn't say where to go . . .

 

The field next to "browse" is referring to the hard drive on your PC. If you download ghdpinkys.jpg to your hard drive, and then browse to it with the browse button (if you notice, when you click it you are looking for images on your local PC hard drive) then it will upload it for you (again, but that's ok) and associate it with the product.

 

If you want to use images that you've already uploaded, you'll have to either update them with the EasyPopulate contribution or by editing the database directly.

 

Trust me. Download your images to your local PC, edit them with the Admin tool, use the browse button to find the images on your local drive before clicking "preview".

-jared

Posted
You didn't say where to go . . .

 

The field next to "browse" is referring to the hard drive on your PC.  If you download ghdpinkys.jpg to your hard drive, and then browse to it with the browse button (if you notice, when you click it you are looking for images on your local PC hard drive) then it will upload it for you (again, but that's ok) and associate it with the product.

 

If you want to use images that you've already uploaded, you'll have to either update them with the EasyPopulate contribution or by editing the database directly.

 

Trust me.  Download your images to your local PC, edit them with the Admin tool, use the browse button to find the images on your local drive before clicking "preview".

-jared

 

i tell you its not working ,browse goes to my hard drive

 

 

 

ok so i add new product i then click browse i add my image from my c drive ,i preview it shows no image and url is http://tulios.com/shop/images/

as you can see it has not loaded the full url image ?

Posted

post your /includes/configure.php, minus the account info (leaving the URLs and such).

 

-jared

Posted
sorry i do nut understand what to post?help

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://tulios.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.tulios.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'tulios.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tulios.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/squash/public_html/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', 'squash_osc1');

define('DB_SERVER_PASSWORD', 'WHsEQfKg{5NJ');

define('DB_DATABASE', 'squash_osc1');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

 

 

 

acount.php

 

<?php

/*

$Id: account.php,v 1.61 2003/06/09 23:03:52 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script language="javascript"><!--

function rowOverEffect(object) {

if (object.className == 'moduleRow') object.className = 'moduleRowOver';

}

 

function rowOutEffect(object) {

if (object.className == 'moduleRowOver') object.className = 'moduleRow';

}

//--></script>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

if ($messageStack->size('account') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('account'); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if (tep_count_customer_orders() > 0) {

?>

<tr>

<td><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><b><?php echo OVERVIEW_TITLE; ?></b></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>' . OVERVIEW_SHOW_ALL_ORDERS . '</u></a>'; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main" align="center" valign="top" width="130"><?php echo '<b>' . OVERVIEW_PREVIOUS_ORDERS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php

$orders_query = tep_db_query("select o.orders_id, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' order by orders_id desc limit 3");

while ($orders = tep_db_fetch_array($orders_query)) {

if (tep_not_null($orders['delivery_name'])) {

$order_name = $orders['delivery_name'];

$order_country = $orders['delivery_country'];

} else {

$order_name = $orders['billing_name'];

$order_country = $orders['billing_country'];

}

?>

<tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">

<td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td>

<td class="main"><?php echo '#' . $orders['orders_id']; ?></td>

<td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td>

<td class="main"><?php echo $orders['orders_status_name']; ?></td>

<td class="main" align="right"><?php echo $orders['order_total']; ?></td>

<td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td>

</tr>

<?php

}

?>

</table></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

?>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><b><?php echo MY_ACCOUNT_TITLE; ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></td>

</tr>

</table></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><b><?php echo MY_ORDERS_TITLE; ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></td>

</tr>

</table></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><b><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td>

</tr>

</table></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

Argh. Now you NEED to change your database password (and maybe the database name). I'd hoped you wouldn't post that part, hence the request to remove the account information.

 

Are you *sure* that the images directory has 777 permissions? You can check by looking at the directory properties with WS_FTP or FileZilla.

 

-jared

Posted
Argh.  Now you NEED to change your database password (and maybe the database name).  I'd hoped you wouldn't post that part, hence the request to remove the account information.

 

Are you *sure* that the images directory has 777 permissions?  You can check  by looking at the directory properties with WS_FTP or FileZilla.

 

-jared

 

 

images directory is show 755

Posted

I went to sleep. It was early AM here. As I mentioned before, you NEED to change the permissions on your images directory from 755 to 777. It does not matter what the permissions on your local PC are.

 

I don't know how else to say this: Change the permissions of the images directory to 777.

 

-jared

Archived

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

×
×
  • Create New...