Jump to content

bobpol

Members
  • Content count

    35
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Bob Woolnough
  1. bobpol

    Smoothe Populate

    Hi, I've installed the latest version of SP but when I try to download a complete csv file I get this message: Error : Load PHP's "zip\zlib" extensions for compressed output or select "none" for no compression. I have looked at the server info under tools and it is now giving me this message: Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'ex-military.org'@'srv97.one.com' (using password: NO) in /customers/ex-military.org/ex-military.org/httpd.www/qms/admin/includes/functions/general.php on line 80 Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /customers/ex-military.org/ex-military.org/httpd.www/qms/admin/includes/functions/general.php on line 80 Server Information Server Host: () Database Host: localhost (127.0.0.1) Server OS: Database: MySQL Server Date: 11/19/2009 15:54:42 Database Date: 11/19/2009 15:54:42 Server Up Time: Database Up Time: 33:55 HTTP Server: Apache PHP Version: PHP: 5.2.10 / Zend: 2.2.0 (more info) Could someone please suggest what might be going wrong? Thank you in advance by the way. :rolleyes: :rolleyes:
  2. Sorry that should have been which files do I have to modify and with what code? Do I have to specify the full http address line somewhere or just say replace 'images/' with some other address line? Thank you.
  3. How and where do I modify the code please?
  4. Thanks for that. I am listing the full http address in the ep csv file before uploading but even though it shows the address line as I have previously shown it does not seem to look there until I actually put the full address into the image command line in the edit section of the actual product in admin.
  5. Hi, I have installed EP v2.76h on OSC rca2.2 and it seems to run ok. I can install products into the ep system with excel csv files and everything uploads and shows ok except the images. I have trawled and searched through the forum but cannot find a complete or near complete answer to my dilemma. In the categories/products section against each product description it has this message: IMAGE DOES NOT EXIST http://imagestore.xpressplatforms.com/AMW/...00000080111.jpg Obviously the image file name itself is different because I am using different images but for some reason or other it is not picking up the images from the relevant http page even though the images are there. My second problem is that when I now update changes within the products themselves and submit them in admin I get this return: Warning: Invalid argument supplied for foreach() in /customers/computerbob.info/computerbob.info/httpd.www/catalog/admin/includes/reset_meta_cache.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /customers/computerbob.info/computerbob.info/httpd.www/catalog/admin/includes/reset_meta_cache.php:36) in /customers/computerbob.info/computerbob.info/httpd.www/catalog/admin/includes/functions/general.php on line 94 Does any one out there know what the problems might be. Thank you in advance for any help.
  6. Hi Can anyone help with this problem please. I have just installed v1.14 and follwed all the instructions. I have everything working in admin but my shop screen is displaying this Parse error: syntax error, unexpected '}' in /customers/computerbob.info/computerbob.info/httpd.www/catalog/includes/functions/html_output.php on line 239 This is the full code for that page: <?php /* $Id: html_output.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); // Patch 2.2MS2-051113 added tep_ } return $link; } //// // The HTML image wrapper function ///function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // BOF Image Magic function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { global $product_info; //Allow for a new intermediate sized thumbnail size to be set //without any changes having to be made to the product_info page itself. //(see the lengths I go to to make your life easier :-) if (strstr($_SERVER['PHP_SELF'],"product_info.php")) { if (isset($product_info['products_image']) && $src == DIR_WS_IMAGES . $product_info['products_image'] && $product_info[products_id]==$_GET['products_id']) { //final check just to make sure that we don't interfere with other contribs $width = PRODUCT_INFO_IMAGE_WIDTH == 0?'':PRODUCT_INFO_IMAGE_WIDTH; $height = PRODUCT_INFO_IMAGE_HEIGHT == 0?'':PRODUCT_INFO_IMAGE_HEIGHT; $product_info_image=true; $page="prod_info"; } } //Detect whether this is a pop-up image if (strstr($_SERVER['PHP_SELF'],"popup_image.php")) $page="popup"; //do we apply the IE PNG alpha transparency fix? if (strstr(strtolower($src),".png") && CFG_PNG_BUG=="True") $fix_png = true; //send the image for processing unless told otherwise $image = '<img src="' . $src . '"'; //set up the image tag just in case we don't want to process if (CFG_MASTER_SWITCH=="On") $calculate = true; else $calculate=false; // Don't calculate if the image is set to a "%" width if (strstr($width,'%') == true || strstr($height,'%') == true) $calculate = false; // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale) if (strstr($image, 'pixel')) $calculate = false; $image_size = @getimagesize($src); // Decide whether or not we want to process this image if (($width == '' && $height == '' && $page != 'popup' ) || ($width == $image_size[0] && $height == $image_size[0] && $page != 'popup')) { if (CFG_PROCESS_GRAPHICS=="False") $calculate = false; //looks like this is a store graphic rather than product image } // Is this image good to go? if (CONFIG_CALCULATE_IMAGE_SIZE && $calculate) { if ($image_size) { $ratio = $image_size[1] / $image_size[0]; // Set the width and height to the proper ratio if (!$width && $height) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (!$width && !$height && !$over_ride) { $width = $image_size[0]; $height = $image_size[1]; } //Encrypt the image filename if switched on if (CFG_ENCRYPT_FILENAMES == "True" && CFG_ENCRYPTION_KEY !="") { $result = ''; $key=CFG_ENCRYPTION_KEY; for($i=0; $i<strlen($src); $i++) { $char = substr($src, $i, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } $src=urlencode(base64_encode($result)); } //Return the html $image = '<img src="imagemagic.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'&page='.$page.'"'; } elseif (IMAGE_REQUIRED == 'false') { return false; } } //If the size asked for is greater than the image itself, we check the configs to see if this is allowed and if not over-ride if ($width > $image_size[0] || $height > $image_size[1]) { if (CFG_ALLOW_LARGER != 'True'){ $width=$image_size[0]; $height=$image_size[1]; $over_ride = true; } } // Add remaining image parameters if they exist if ($width) { $image .= ' width="' . tep_output_string($width) . '"'; } if ($height) { $image .= ' height="' . tep_output_string($height) . '"'; } if (tep_not_null($params)) $image .= ' ' . $params; $image .= ' border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . '"'; } if ($fix_png && CFG_MASTER_SWITCH=="On") { $image .= ' onload="fixPNG(this)"'; } $image .= '>'; return $image; } //EOF Image Magic // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); // Patch osc-060817 } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); // Patch osc-060817 } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; // START STS v4.4: global $sts; $src = $sts->image_button($image,$language); if ($src!='') $image_submit = '<input type="image" src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; else // END STS v4.4 $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; // START STS v4.4: global $sts; $src = $sts->image_button($image, $language, true); // 3rd parameter to tell tep_image that file check has been already done if ($src!='') { // Take image from template folder if exists. return tep_image ($src); } // END STS v4.4 return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } //// // Output a form function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"'; if (tep_not_null($parameters)) $form .= ' ' . $parameters; $form .= '>'; return $form; } //// // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) { if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) { $value = stripslashes($HTTP_GET_VARS[$name]); } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) { $value = stripslashes($HTTP_POST_VARS[$name]); } } if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Output a form password field function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') { return tep_draw_input_field($name, $value, $parameters, 'password', false); } //// // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') { global $HTTP_GET_VARS, $HTTP_POST_VARS; $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"'; if ( ($checked == true) || (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name]) && (($HTTP_GET_VARS[$name] == 'on') || (stripslashes($HTTP_GET_VARS[$name]) == $value))) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name]) && (($HTTP_POST_VARS[$name] == 'on') || (stripslashes($HTTP_POST_VARS[$name]) == $value))) ) { $selection .= ' CHECKED'; } if (tep_not_null($parameters)) $selection .= ' ' . $parameters; $selection .= '>'; return $selection; } //// // Output a form checkbox field function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters); } //// // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters); } //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) { if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name])); } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name])); } } elseif (tep_not_null($text)) { $field .= tep_output_string_protected($text); // Patch 2.2MS2-051113 added tep_ } $field .= '</textarea>'; return $field; } //// // Output a form hidden field function tep_draw_hidden_field($name, $value = '', $parameters = '') { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } elseif ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) { if ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) ) { $field .= ' value="' . tep_output_string(stripslashes($HTTP_GET_VARS[$name])) . '"'; } elseif ( (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) { $field .= ' value="' . tep_output_string(stripslashes($HTTP_POST_VARS[$name])) . '"'; } } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Hide form elements function tep_hide_session_id() { global $session_started, $SID; if (($session_started == true) && tep_not_null($SID)) { return tep_draw_hidden_field(tep_session_name(), tep_session_id()); } } //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) { if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) { $default = stripslashes($HTTP_GET_VARS[$name]); } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) { $default = stripslashes($HTTP_POST_VARS[$name]); } } for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $countries = tep_get_countries(); for ($i=0, $n=sizeof($countries); $i<$n; $i++) { $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']); } return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); } ?> Thanks in advance if anyone can help
  7. bobpol

    Multi_Vendor_Shipping new thread

    I downloaded and installed this module today into Rca2.2 everything seems to work up to the point where you manage your vendor and install the required modules. It does not show any modules to install even though I have zones installed and available. Anybody got any clues please? Thanks in advance
  8. Sorted it thanks. Found problems were eminating from the application_top.php file. There is a piece of code in there which refers to 'compatability' it needs leaving out when u edit the old file and also the piece that refers to 'Globals'
  9. Hi, I installed v4.3 and used the fix from 4.4 in ver osc2.2. The admin side seems to be working fine but I get this at the catalog end - Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Does any kind soul have any idea why. Thanks in advance
  10. bobpol

    Cool Flash Carousel Menu

    Thanks for both contibs guys but neither seem to do the job. I've decided to switch it off for now until I have time to try and debug it.
  11. bobpol

    Cool Flash Carousel Menu

    I seem to be having trouble actually displaying the pics in the carousel. I keep having to refresh my home page http://www.ex-military.co.uk they eventually come up but, sometimes it's one, other times it's all six. Anybody have any ideas as to why????????????????? Thanks in advance.
  12. bobpol

    Cool Flash Carousel Menu

    Worked a treat thanks very much :D
  13. bobpol

    Cool Flash Carousel Menu

    Hi, I have installed ver3.1 and it works until I use the 'want to resize image' option in the 'configuration' panel. I then get this message. Could someone be kind enough to resolve this for me. Thanks in advance. Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58 Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/ex-military.co.uk/ex-military.co.uk/httpd.www/includes/classes/flash_carousel_image_resize.php on line 58
×