sfera Posted June 23, 2005 Share Posted June 23, 2005 i have it installed. it was origanally not working because all my database tables have a prefix of osc_ infront of them so i looked through the php files included and added the prefix everywhere i thought it need it and now i am able to select products, however when i hit the edit button the page just seems to reload and does nothing. what is the problem here? i have my files in code listed below. thanks for helping new_attributes.php <? $adminImages = "includes/languages/english/images/buttons/"; $backLink = "<a href=\"javascript:history.back()\">"; require('new_attributes_config.php'); require('includes/application_top.php'); if ( $cPathID && $action == "change" ) { require('new_attributes_change.php'); tep_redirect( './' . FILENAME_CATEGORIES . '?cPath=' . $cPathID . '&pID=' . $current_product_id ); } ?> <!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> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- 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="2"> <? function findTitle( $current_product_id, $languageFilter ) { $query = "SELECT * FROM osc_products_description where language_id = '$languageFilter' AND products_id = '$current_product_id'"; $result = mysql_query($query) or die(mysql_error()); $matches = mysql_num_rows($result); if ($matches) { while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $productName = $line['products_name']; } return $productName; } else { return "Something isn't right...."; } } function attribRedirect( $cPath ) { return '<script LANGUAGE="JavaScript"> window.location="./configure.php?cPath=' . $cPath . '"; </script>'; } switch( $action ) { case 'select': $pageTitle = 'Edit Attributes -> ' . findTitle( $current_product_id, $languageFilter ); require('new_attributes_include.php'); break; case 'change': $pageTitle = 'Product Attributes Updated.'; require('new_attributes_change.php'); require('new_attributes_select.php'); break; default: $pageTitle = 'Edit Attributes'; require('new_attributes_select.php'); break; } ?> </table></TD> </TR> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> new_attributes_change.php <? // I found the easiest way to do this is just delete the current attributes & start over =) MYSQL_QUERY( "DELETE FROM osc_products_attributes WHERE products_id = '$current_product_id'" ); // Simple, yet effective.. loop through the selected Option Values.. find the proper price & prefix.. insert.. yadda yadda yadda. for ($i = 0; $i < sizeof($optionValues); $i++) { $query = "SELECT * FROM osc_products_options_values_to_products_options where products_options_values_id = '$optionValues[$i]'"; $result = mysql_query($query) or die(mysql_error()); $matches = mysql_num_rows($result); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $optionsID = $line['products_options_id']; } $value_price = $HTTP_POST_VARS[$optionValues[$i] . '_price']; $value_prefix = $HTTP_POST_VARS[$optionValues[$i] . '_prefix']; if ( $optionTypeInstalled == "1" ) { $value_type = $HTTP_POST_VARS[$optionValues[$i] . '_type']; $value_qty = $HTTP_POST_VARS[$optionValues[$i] . '_qty']; $value_order = $HTTP_POST_VARS[$optionValues[$i] . '_order']; $value_linked = $HTTP_POST_VARS[$optionValues[$i] . '_linked']; MYSQL_QUERY( "INSERT INTO osc_products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix, options_type_id, options_values_qty, attribute_order, collegamento ) VALUES( '$current_product_id', '$optionsID', '$optionValues[$i]', '$value_price', '$value_prefix', '$value_type', '$value_qty', '$value_order', '$value_linked' )" ) or die(mysql_error()); } else if ( $optionSortCopyInstalled == "1" ) { $value_sort = $HTTP_POST_VARS[$optionValues[$i] . '_sort']; $value_weight = $HTTP_POST_VARS[$optionValues[$i] . '_weight']; $value_weight_prefix = $HTTP_POST_VARS[$optionValues[$i] . '_weight_prefix']; MYSQL_QUERY( "INSERT INTO osc_products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, products_attributes_weight, products_attributes_weight_prefix ) VALUES( '$current_product_id', '$optionsID', '$optionValues[$i]', '$value_price', '$value_prefix', '$value_sort', '$value_weight', '$value_weight_prefix' )" ) or die(mysql_error()); } else { MYSQL_QUERY( "INSERT INTO osc_products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix ) VALUES( '$current_product_id', '$optionsID', '$optionValues[$i]', '$value_price', '$value_prefix' )" ) or die(mysql_error()); } } // For text input option type feature by chandra if ( $optionTypeTextInstalled == "1" && is_array( $HTTP_POST_VARS['optionValuesText'] )) { for ($i = 0; $i < sizeof($optionValuesText); $i++) { $value_price = $HTTP_POST_VARS[$optionValuesText[$i] . '_price']; $value_prefix = $HTTP_POST_VARS[$optionValuesText[$i] . '_prefix']; $value_product_id = $HTTP_POST_VARS[$optionValuesText[$i] . '_options_id']; MYSQL_QUERY( "INSERT INTO osc_products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix ) VALUES( '$current_product_id', '$value_product_id', '0', '$value_price', '$value_prefix' )" ) or die(mysql_error()); } } ?> new_attributes_config.php <? // Change to your default language ID if it differs. $languageFilter = "1"; // If you have Options Type Feature ver. 2.02.MS1 by countezero installed - make this = "1" $optionTypeInstalled = "0"; // If you have "Attributes Sorter & Copier v5.1 with weight" // by Linda McGrath installed - make this = "1" $optionSortCopyInstalled = "0"; // If you have Option Type Feature v-1.4 by Chandra Roukema installed - make this = "1" $optionTypeTextInstalled = "0"; // If you have Option Type Feature v-1.4 by Chandra Roukema installed - set this to your // PRODUCTS_OPTIONS_VALUE_TEXT_ID value ( usually "0" ) $optionTypeTextInstalledID = "0"; ?> new_attributes_functions.php <? // A simple little function to determine if the current value is already selected for the current product. function checkAttribute( $current_value_id, $current_product_id, $current_product_option_id ) { global $attribute_value_price, $attribute_value_prefix, $posCheck, $negCheck; $query = "SELECT * FROM osc_products_attributes where options_values_id = '$current_value_id' AND products_id = '$current_product_id' AND options_id = '$current_product_option_id'"; $result = mysql_query($query) or die(mysql_error()); $isFound = mysql_num_rows($result); if ($isFound) { while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $attribute_value_price = $line['options_values_price']; $attribute_value_prefix = $line['price_prefix']; if ($attribute_value_prefix == "+") { $posCheck = " SELECTED"; $negCheck = ""; } else { $posCheck = ""; $negCheck = " SELECTED"; } } return true; } else { $attribute_value_price = ""; $attribute_value_prefix = ""; $posCheck = ""; $negCheck = ""; return false; } } function rowClass($i){ $class1 = "attributes-odd"; $class2 = "attributes-even"; if ( $i%2 ) { return $class1; } else { return $class2; } } // For Options Type Contribution function extraValues( $current_value_id, $current_product_id ) { global $attribute_qty, $attribute_order, $attribute_linked, $attribute_prefix, $attribute_type, $isSelected; if ( $isSelected ) { $query = "SELECT * FROM osc_products_attributes where options_values_id = '$current_value_id' AND products_id = '$current_product_id'"; $result = mysql_query($query) or die(mysql_error()); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $attribute_qty = $line['options_values_qty']; $attribute_order = $line['attribute_order']; $attribute_linked = $line['collegamento']; $attribute_prefix = $line['price_prefix']; $attribute_type = $line['options_type_id']; } } else { $attribute_qty = "1"; $attribute_order = "100"; $attribute_linked = "0"; $attribute_prefix = ""; $attribute_type = ""; } } function displayOptionTypes( $attribute_type ) { global $isSelected; $availableTypes = array( 'Disabled' => '0', 'Select' => '1', 'Checkbox' => '2', 'Radio' => '3', 'Select Multiple' => '4', 'Text' => '5' ); foreach( $availableTypes as $name => $id ){ if ( $isSelected && $attribute_type == $id ) { $SELECT = " SELECTED"; } else { $SELECT = ""; } echo "<OPTION VALUE=\"" . $id . "\"" . $SELECT . ">" . $name; } } // Get values for Linda McGrath's contribution function getSortCopyValues( $current_value_id, $current_product_id ) { global $attribute_sort, $attribute_weight, $attribute_weight_prefix, $isSelected; if ( $isSelected ) { $query = "SELECT * FROM osc_products_attributes where options_values_id = '$current_value_id' AND products_id = '$current_product_id'"; $result = mysql_query($query) or die(mysql_error()); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $attribute_sort = $line['products_options_sort_order']; $attribute_weight = $line['products_attributes_weight']; $attribute_weight_prefix = $line['products_attributes_weight_prefix']; } } else { $attribute_sort = "0"; $attribute_weight = ""; $attribute_weight_prefix = ""; } } function sortCopyWeightPrefix( $attribute_weight_prefix ) { global $isSelected; $availablePrefixes = array( '+', '-' ); foreach( $availablePrefixes as $prefix ) { if ( $isSelected && $prefix == $attribute_weight_prefix ) { $SELECT = " SELECTED"; } else { $SELECT = ""; } echo "<OPTION VALUE=\"" . $prefix . "\"" . $SELECT . ">" . $prefix; } } ?> new_attributes_include.php <TR> <TD class="pageHeading" colspan="3"><?=$pageTitle?></TD> </TR> <FORM ACTION="<?=$PHP_SELF?>" METHOD="POST" NAME="SUBMIT_ATTRIBUTES"> <INPUT TYPE="HIDDEN" NAME="current_product_id" VALUE="<?=$current_product_id?>"> <INPUT TYPE="HIDDEN" NAME="action" VALUE="change"> <? if ( $cPath ) echo "<INPUT TYPE=\"HIDDEN\" NAME=\"cPathID\" VALUE=\"" . $cPath . "\">"; require( 'new_attributes_functions.php'); // Temp id for text input contribution.. I'll put them in a seperate array. $tempTextID= "1999043"; // Lets get all of the possible options $query = "SELECT * FROM osc_products_options where products_options_id LIKE '%' AND language_id = '$languageFilter'"; $result = mysql_query($query) or die(mysql_error()); $matches = mysql_num_rows($result); if ($matches) { while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $current_product_option_name = $line['products_options_name']; $current_product_option_id = $line['products_options_id']; // Print the Option Name echo "<TR class=\"dataTableHeadingRow\">"; echo "<TD class=\"dataTableHeadingContent\"><B>" . $current_product_option_name . "</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Value Price</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Price Prefix</B></TD>"; if ( $optionTypeInstalled == "1" ) { echo "<TD class=\"dataTableHeadingContent\"><B>Option Type</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Quantity</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Order</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Linked Attr.</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>ID</B></TD>"; } if ( $optionSortCopyInstalled == "1" ) { echo "<TD class=\"dataTableHeadingContent\"><B>Weight</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Weight Prefix</B></TD>"; echo "<TD class=\"dataTableHeadingContent\"><B>Sort Order</B></TD>"; } echo "</TR>"; // Find all of the Current Option's Available Values $query2 = "SELECT * FROM osc_products_options_values_to_products_options WHERE products_options_id = '$current_product_option_id' ORDER BY products_options_values_id DESC"; $result2 = mysql_query($query2) or die(mysql_error()); $matches2 = mysql_num_rows($result2); if ($matches2) { $i = "0"; while ($line = mysql_fetch_array($result2, MYSQL_ASSOC)) { $i++; $rowClass = rowClass( $i ); $current_value_id = $line['products_options_values_id']; $isSelected = checkAttribute( $current_value_id, $current_product_id, $current_product_option_id ); if ($isSelected) { $CHECKED = " CHECKED"; } else { $CHECKED = ""; } $query3 = "SELECT * FROM osc_products_options_values WHERE products_options_values_id = '$current_value_id' AND language_id = '$languageFilter'"; $result3 = mysql_query($query3) or die(mysql_error()); while($line = mysql_fetch_array($result3, MYSQL_ASSOC)) { $current_value_name = $line['products_options_values_name']; // Print the Current Value Name echo "<TR class=\"" . $rowClass . "\">"; echo "<TD class=\"main\">"; // Add Support for multiple text input option types (for Chandra's contribution).. and using ' to begin/end strings.. less of a mess. if ( $optionTypeTextInstalled == "1" && $current_value_id == $optionTypeTextInstalledID ) { $current_value_id_old = $current_value_id; $current_value_id = $tempTextID; echo '<input type="checkbox" name="optionValuesText[]" value="' . $current_value_id . '"' . $CHECKED . '> ' . $current_value_name . ' '; echo '<input type="hidden" name="' . $current_value_id . '_options_id" value="' . $current_product_option_id . '">'; } else { echo "<input type=\"checkbox\" name=\"optionValues[]\" value=\"" . $current_value_id . "\"" . $CHECKED . "> " . $current_value_name . " "; } echo "</TD>"; echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_price\" value=\"" . $attribute_value_price . "\" size=\"10\"></TD>"; if ( $optionTypeInstalled == "1" ) { extraValues( $current_value_id, $current_product_id ); echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_prefix\" value=\"" . $attribute_prefix . "\" size=\"4\"></TD>"; echo "<TD class=\"main\" align=\"left\"><SELECT name=\"" . $current_value_id . "_type\">"; displayOptionTypes( $attribute_type ); echo "</SELECT></TD>"; echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_qty\" value=\"" . $attribute_qty . "\" size=\"4\"></TD>"; echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_order\" value=\"" . $attribute_order . "\" size=\"4\"></TD>"; echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_linked\" value=\"" . $attribute_linked . "\" size=\"4\"></TD>"; echo "<TD class=\"main\" align=\"left\">" . $current_value_id . "</TD>"; } else { echo "<TD class=\"main\" align=\"left\"><SELECT name=\"" . $current_value_id . "_prefix\"> <OPTION value=\"+\"" . $posCheck . ">+<OPTION value=\"-\"" . $negCheck . ">-</SELECT></TD>"; if ( $optionSortCopyInstalled == "1" ) { getSortCopyValues( $current_value_id, $current_product_id ); echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_weight\" value=\"" . $attribute_weight . "\" size=\"10\"></TD>"; echo "<TD class=\"main\" align=\"left\"><SELECT name=\"" . $current_value_id . "_weight_prefix\">"; sortCopyWeightPrefix( $attribute_weight_prefix ); echo "</SELECT></TD>"; echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_sort\" value=\"" . $attribute_sort . "\" size=\"4\"></TD>"; } } echo "</TR>"; if ( $optionTypeTextInstalled == "1" && $current_value_id_old == $optionTypeTextInstalledID ) { $tempTextID++; } } if( $i == $matches2 ) { $i = "0"; } } } else { echo "<TR>"; echo "<TD class=\"main\"><SMALL>No values under this option.</SMALL></TD>"; echo "</TR>"; } } } ?> <TR> <TD colspan="10" class="main"><BR><INPUT TYPE="image" src="<?=$adminImages?>button_save.gif"> <?=$backLink?><img src="<?=$adminImages?>button_cancel.gif" border="0"></A></TD> </TR> </FORM> new_attributes_select.php <TR> <TD class="pageHeading" colspan="3"><?=$pageTitle?></TD> </TR> <FORM ACTION="<?=$PHP_SELF?>" NAME="SELECT_PRODUCT" METHOD="POST"> <INPUT TYPE="HIDDEN" NAME="action" VALUE="select"> <? echo "<TR>"; echo "<TD class=\"main\"><BR><B>Please select a product to edit:<BR></TD>"; echo "</TR>"; echo "<TR>"; echo "<TD class=\"main\"><SELECT NAME=\"current_product_id\">"; $query = "SELECT * FROM osc_products_description where products_id LIKE '%' AND language_id = '$languageFilter' ORDER BY products_name ASC"; $result = mysql_query($query) or die(mysql_error()); $matches = mysql_num_rows($result); if ($matches) { while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $title = $line['products_name']; $current_product_id = $line['products_id']; echo "<OPTION VALUE=\"" . $current_product_id . "\">" . $title; } } else { echo "You have no products at this time."; } echo "</SELECT>"; echo "</TD></TR>"; echo "<TR>"; echo "<TD class=\"main\"><input type=\"image\" src=\"" . $adminImages . "button_edit.gif\"></TD>"; echo "</TR>"; ?> </FORM> Quote Link to comment Share on other sites More sharing options...
sfera Posted June 24, 2005 Author Share Posted June 24, 2005 anyone? Quote Link to comment Share on other sites More sharing options...
sfera Posted June 24, 2005 Author Share Posted June 24, 2005 i have to changed where it calls on the database tables for example: where i see it calling on protucts_attributes i do not have that in mysql Database i have osc_products_attributes, so i added my prefix as i explained in 1st post. does anyone see where i may need to update the code so it will point to my tables that 'osc_' prefix that i may have missed please i really need this contibution to save me time. thanks Quote Link to comment Share on other sites More sharing options...
sfera Posted June 24, 2005 Author Share Posted June 24, 2005 plz help me Quote Link to comment Share on other sites More sharing options...
sfera Posted June 25, 2005 Author Share Posted June 25, 2005 plz help me <{POST_SNAPBACK}> ^^ Quote Link to comment Share on other sites More sharing options...
sfera Posted June 25, 2005 Author Share Posted June 25, 2005 ^^ <{POST_SNAPBACK}> this is where we get support for contributions right? or do i need to post in another area because no on seems to be responding to me Quote Link to comment Share on other sites More sharing options...
Iggy Posted June 25, 2005 Share Posted June 25, 2005 I'll take a shot but I certainly don't "know." Have you updated all of the definitions for the db tables in /catalog/includes/database_tables.php ? Any particular reason you're going through the trouble of changing all the db names to osc_ in the first place? Is this mosCommerce or the like that you're dealing with? Iggy Quote Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
sfera Posted June 25, 2005 Author Share Posted June 25, 2005 (edited) hi igggy and thank you for responding. i am hosting the site with aplus.net and they have it included in the package where in the control panel you can install it. I believe they do it this way because of limited access to the php.ini files. all database files are correct becasue it speciefies a prefix i.e. define('TABLE_PRODUCTS_ATTRIBUTES', DB_TABLE_PREFIX . 'products_attributes'); i asked aplus for some support but cannot because its a 3rd party modification. Also with this contribution there were no modifactions to the database_tables.php or any sql file to run according to the installation instructions. At first when i installed it the contribution wasnt giving me and products in the list to set attributes to but then i figured it was because of the prefix so i added it to the places that needed as many as i could find, but i think i am missing some. Thats why i need an experience coder to look at it to see where i am missing one. example here was the original code MYSQL_QUERY( "INSERT INTO products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, products_attributes_weight, products_attributes_weight_prefix ) and here is what i had to change it to MYSQL_QUERY( "INSERT INTO osc_products_attributes ( products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, products_attributes_weight, products_attributes_weight_prefix ) you see where i added the 'osc_' ? i am missing some more of these. i did it a few other places as you may see when lookin at my code above. thanks Edited June 25, 2005 by sfera Quote Link to comment Share on other sites More sharing options...
Iggy Posted June 26, 2005 Share Posted June 26, 2005 Aplus definitely has you painted into a corner then. They won't support standard osC and this forum isn't likely to go too far supporting their distribution. The reason I was wondering is I've installed this mod myself and got it working. Since there are no db changes your regular defines "should" work unless aplus have peppered the install with changes. In fact it was easy so you really shouldn't have this much hassle. If you're going to be making lots of mods it might be easier to build it from scratch than to wrestle with their dist. There's no particular reason you can't install the stock osC using aplus and mod it from there. Although it probably entails more work in the short term you will get a chance to have a reasonable shot of using the contribs here and having folks be able to help you. Iggy Quote Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
sfera Posted June 26, 2005 Author Share Posted June 26, 2005 Aplus definitely has you painted into a corner then. They won't support standard osC and this forum isn't likely to go too far supporting their distribution. The reason I was wondering is I've installed this mod myself and got it working. Since there are no db changes your regular defines "should" work unless aplus have peppered the install with changes. In fact it was easy so you really shouldn't have this much hassle. If you're going to be making lots of mods it might be easier to build it from scratch than to wrestle with their dist. There's no particular reason you can't install the stock osC using aplus and mod it from there. Although it probably entails more work in the short term you will get a chance to have a reasonable shot of using the contribs here and having folks be able to help you. Iggy <{POST_SNAPBACK}> hi iggy well i was thinking like you said...just install it myself. well i went to do it and then i went to install it and it said i needed to access the php.in file to enable register globals. do you know a way around this because aplus wont let me access it and i know there is a sercurity rist of changing it. thanks Quote Link to comment Share on other sites More sharing options...
Iggy Posted June 26, 2005 Share Posted June 26, 2005 Register Globals Patch I haven't used it so hunt around a bit to see if there are incompatiblities. Iggy Quote Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2005 Share Posted July 8, 2005 Regarding the ...attributes_v4b: (and the newer contrib that includes Sort) I have a problem with my installation. I get dumped out to a search page... yes, I do. And I have spotted why. I now need to know how to fix it. When I click "attribute manager" my browser shows me to be on a page: http://magneetogems.com//catalog/admin/new...ted_for_brevity Note the "extra forward slash" between ".com//catalog" When I manually edit the address (remove the extra /) in the address bar of my browser, all works fine. Where can this be happening? ...and how do I fix it? Thanks! jlee Quote Link to comment Share on other sites More sharing options...
Iggy Posted July 8, 2005 Share Posted July 8, 2005 (edited) My guess is that's an error in your config for the store. That's about the only place that an extra / would be inserted that early in the url. Try monkeying with /catalog/includes/configure.php /catalog/admin/includes/configure.php to see if you can find it. Hint: Check the http and catalog entries. Iggy Edited July 8, 2005 by Iggy Quote Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2005 Share Posted July 8, 2005 My guess is that's an error in your config for the store. That's about the only place that an extra / would be inserted that early in the url. Try monkeying with /catalog/includes/configure.php /catalog/admin/includes/configure.php to see if you can find it. Hint: Check the http and catalog entries. Iggy <{POST_SNAPBACK}> from catalog/admin/configure.php I find these two with a beginning slash... nothing else has the beginning slash... What 'cha think? define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_WS_ICONS', 'icons/'); Then from catalog/includes I find the beginning slash also... plus, the 'DIR_WS_ICONS' entry has the beginning slash... different from the admin side. define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_ICONS', '/icons/'); Typically, which would be correct? Thanks in advance! btw, I have not had any problems until this contribution... I have not changed either configure.php jlee Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2005 Share Posted July 12, 2005 (edited) It seems the root problem was with my upline host. An earlier problem was "fixed" by them and it was causing the problem. Is there a good "explanation" or very well commented catalog/admin/configure.php and catalog/configure.php available to give "verbose" comments on the items and defaults within the configure.php files? ...for other php-challenged persons like myself. ;) Thanks jlee Edited July 12, 2005 by jlee Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.