ChrizZz Posted February 28, 2008 Share Posted February 28, 2008 only this site http://www.xxx.de/catalog/admin/additional...s_configure.php Quote Link to comment Share on other sites More sharing options...
ReavtiveMicro.com Posted February 28, 2008 Share Posted February 28, 2008 only this site http://www.xxx.de/catalog/admin/additional...s_configure.php Okay, that's part of your Admin then. So the rest of the Site should be okay still. Can you post the code to your additional_images_configure.php file? I'm sure someone will be able to point out where the error is. I'm not much of a programmer, but I'll take a look. Others will probably find it before I do though. Quote Henry ReactiveMicro.com Link to comment Share on other sites More sharing options...
ChrizZz Posted February 28, 2008 Share Posted February 28, 2008 okay, I'm the opinion that I don't have to change something in the code, so it is still the original code <?php /* $Id: additional_images_configure.php,v 1.0 2007/02/09 14:40:27 surfalot Exp $ Designed for: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2006 Todd Holforty - mtholforty@surfalot.com Released under the GNU General Public License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require('includes/application_top.php'); require(DIR_WS_INCLUDES . basename(__FILE__)); // change this var to the page the cancel button will go to. for no cancel button, set to empty string "" $cancel_url = FILENAME_ADDITIONAL_IMAGES; $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); // check if the catalog image directory exists if (is_dir(DIR_FS_CATALOG_IMAGES)) { if (!is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error'); } else { $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error'); } ?> <!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> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,r esizable=yes,copyhistory=no,width=660,height=600,screenX=150,screenY=150,top=150, left=150') } //--></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"> <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_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td> <?php if ($action == 'normal' || $action == 'force') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smalltext" nowrap="nowrap"> </td> <td class="smalltext"><?php echo TEXT_UPDATING_CONFIGURATION; ?><br><?php foreach ($configuration_array as $tkey => $configuration) { $configuration_group_query = tep_db_query('select configuration_group_id from ' . TABLE_CONFIGURATION_GROUP . " where configuration_group_title = '" . $configuration['group']['configuration_group_title'] . "' limit 1"); if (tep_db_num_rows($configuration_group_query) > 0) { echo '<br><font color=green>'.sprintf(TEXT_UPDATING_CONFIGURATION_GROUP, $configuration['group']['configuration_group_title']).'</font><br> <font color=gray>Checking for items...</font><br>'."\n"; $configuration_group = tep_db_fetch_array($configuration_group_query); $configuration_group_id = $configuration_group['configuration_group_id']; tep_db_query('update ' . TABLE_CONFIGURATION_GROUP . " set configuration_group_description = '" . $configuration['group']['configuration_group_description'] . "' where configuration_group_id = '" . $configuration_group_id . "' limit 1"); $sort_order_query = tep_db_query('select max(sort_order) from ' . TABLE_CONFIGURATION . " where configuration_group_id = '" . $configuration_group_id . "'"); $sort_order_array = mysql_fetch_array($sort_order_query); $use_sort_order = $sort_order_array[0]+1; } else { echo '<br><font color=green>'.sprintf(TEXT_ADDING_CONFIGURATION_GROUP, $configuration['group']['configuration_group_title']).'</font><br>'."\n"; $group_sort_order_query = tep_db_query('select max(sort_order) from ' . TABLE_CONFIGURATION_GROUP); $group_sort_order_array = mysql_fetch_array($group_sort_order_query); $group_sort_order = $group_sort_order_array[0]+1; tep_db_query('insert into ' . TABLE_CONFIGURATION_GROUP . " (configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('".$configuration['group']['configuration_group_title']."', '".$configuration['group']['configuration_group_description']."', '".$group_sort_order."', '".$configuration['group']['visible']."')"); $configuration_group_id = tep_db_insert_id(); $use_sort_order = 1; } foreach ($configuration['data'] as $configuration_key => $configuration_data) { $configuration_query = tep_db_query('select configuration_id, configuration_title, configuration_value, configuration_description, sort_order, use_function, set_function from ' . TABLE_CONFIGURATION . " where configuration_key = '" . $configuration_key . "' limit 1"); if (tep_db_num_rows($configuration_query) > 0) { echo ' <font color=green>'.sprintf(TEXT_UPDATING_CONFIGURATION_KEY, $configuration_key).'</font><br>'."\n"; $configuration = tep_db_fetch_array($configuration_query); tep_db_query('update ' . TABLE_CONFIGURATION . " set configuration_title = '" . $configuration_data['configuration_title'] . "', configuration_value = '" . ($action == 'force' ? $configuration_data['configuration_value'] : $configuration['configuration_value']) . "', configuration_description = '" . $configuration_data['configuration_description'] . "', configuration_group_id = " . $configuration_group_id . ", sort_order = " . ($action == 'force' ? $use_sort_order++ : $configuration['sort_order']) . ", last_modified = now(), use_function = " . (!empty($configuration_data['use_function']) ? "'".$configuration_data['use_function']."'" : "NULL" ) . ", set_function = " . (!empty($configuration_data['set_function']) ? "'".$configuration_data['set_function']."'" : "NULL" ) . " where configuration_id = '" . $configuration['configuration_id'] . "' limit 1"); $found_one = true; } else { echo ' <font color=green>'.sprintf(TEXT_ADDING_CONFIGURATION_KEY, $configuration_key).'</font><br>'."\n"; tep_db_query('insert into ' . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) values ('" . $configuration_data['configuration_title'] . "', '" . $configuration_key . "', '" . $configuration_data['configuration_value'] . "', '" . $configuration_data['configuration_description'] . "', " . $configuration_group_id . ", " . $use_sort_order++ . ", now(), " . (!empty($configuration_data['use_function']) ? "'".$configuration_data['use_function']."'" : "NULL" ) . ", " . (!empty($configuration_data['set_function']) ? "'".$configuration_data['set_function']."'" : "NULL" ) . ")"); } tep_db_free_result($configuration_query); } tep_db_free_result($configuration_group_query); } echo '<br><font color=gray>'.TEXT_CHECKING_FOR_TABLES.'</font><br>'."\n"; if (sizeof($tables_array) > 0) { foreach ($tables_array as $tkey => $tables) { $table_query = tep_db_query("SHOW TABLES"); if (tep_db_num_rows($table_query) > 0) { $found = false; while ($row = mysql_fetch_array($table_query)) { if ($row[0] == $tables['tablename']) { $found = true; break; } } if ($found) { echo ' <font color=green>'.sprintf(TEXT_TABLE_FOUND_DOING_NOTHING, $tables['tablename']).'</font><br>'."\n"; $found_one = true; } else { echo ' <font color=green>'.sprintf(TEXT_TABLE_NOT_FOUND_CREATING, $tables['tablename']).'</font><br>'."\n"; if (tep_db_query($tables['create'])) { echo ' <font color=green>'.sprintf(TEXT_SUCCESS_CREATING_TABLE, $tables['tablename']).'</font><br>'."\n"; } else { echo ' <font color=red>'.sprintf(TEXT_ERROR_CREATING_TABLE, $tables['tablename']).'</font><br>'."\n"; } } } tep_db_free_result($table_query); } } else { echo ' <font color=gray>'.TEXT_NO_TABLES.'</font><br>'."\n"; } echo '<br><font color=gray>'.TEXT_CHECKING_FOR_COLUMNS.'</font><br>'."\n"; if (sizeof($table_mods_array) > 0) { foreach ($table_mods_array as $tkey => $table_mods) { $columns_query = tep_db_query("SHOW COLUMNS FROM " . $table_mods['tablename']); if (tep_db_num_rows($columns_query) > 0) { $found = false; while ($row = mysql_fetch_array($columns_query)) { if ($row[0] == $table_mods['columnname']) { $found = true; break; } } if ($found) { echo ' <font color=green>'.sprintf(TEXT_COLUMN_FOUND_DOING_NOTHING, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; $found_one = true; } else { echo ' <font color=green>'.sprintf(TEXT_COLUMN_NOT_FOUND_CREATING, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; if (tep_db_query($table_mods['create'])) { echo ' <font color=green>'.sprintf(TEXT_SUCCESS_CREATING_COLUMN, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; } else { echo ' <font color=red>'.sprintf(TEXT_ERROR_CREATING_COLUMN, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; } } } tep_db_free_result($columns_query); } } else { echo ' <font color=gray>'.TEXT_NO_COLUMNS.'</font><br>'."\n"; } ?></td> </tr> </table> <?php } elseif ($action == 'uninstall') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smalltext" nowrap="nowrap"> </td> <td class="smalltext"><?php echo TEXT_REMOVING_CONFIGURATION; ?><br><?php echo '<br><font color=gray>'.TEXT_CHECKING_FOR_COLUMNS_REMOVE.'</font><br>'."\n"; if (sizeof($table_mods_array) > 0) { foreach ($table_mods_array as $tkey => $table_mods) { $table_query = tep_db_query("SHOW TABLES"); if (tep_db_num_rows($table_query) > 0) { $found = false; while ($row = mysql_fetch_array($table_query)) { if ($row[0] == $table_mods['tablename']) { $found = true; break; } } if ($found) { $columns_query = tep_db_query("SHOW COLUMNS FROM " . $table_mods['tablename']); if (tep_db_num_rows($columns_query) > 0) { $found = false; while ($row = mysql_fetch_array($columns_query)) { if ($row[0] == $table_mods['columnname']) { $found = true; break; } } if ($found) { echo ' <font color=green>'.sprintf(TEXT_COLUMN_FOUND_REMOVING, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; if (tep_db_query($table_mods['remove'])) { echo ' <font color=green>'.sprintf(TEXT_SUCCESS_REMOVING_COLUMN, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; } else { echo ' <font color=red>'.sprintf(TEXT_ERROR_REMOVING_COLUMN, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; } } else { echo ' <font color=green>'.sprintf(TEXT_COLUMN_NOT_FOUND_DOING_NOTHING, $table_mods['columnname'], $table_mods['tablename']).'</font><br>'."\n"; } } tep_db_free_result($columns_query); } else { echo ' <font color=green>'.sprintf(TEXT_TABLE_FOUND_NOT_PROCESSING, $table_mods['tablename']).'</font><br>'."\n"; } } tep_db_free_result($table_query); } } else { echo ' <font color=gray>'.TEXT_NO_COLUMNS.'</font><br>'."\n"; } echo '<br><font color=gray>'.TEXT_CHECKING_TABLES.'</font><br>'."\n"; if (sizeof($tables_array) > 0) { foreach ($tables_array as $tkey => $tables) { $table_query = tep_db_query("SHOW TABLES"); if (tep_db_num_rows($table_query) > 0) { $found = false; while ($row = mysql_fetch_array($table_query)) { if ($row[0] == $tables['tablename']) { $found = true; break; } } if ($found) { echo ' <font color=green>'.sprintf(TEXT_TABLE_FOUND_REMOVING, $tables['tablename']).'</font><br>'."\n"; if (tep_db_query($tables['remove'])) { echo ' <font color=green>'.sprintf(TEXT_SUCCESS_REMOVE_TABLE, $tables['tablename']).'</font><br>'."\n"; } else { echo ' <font color=red>'.sprintf(TEXT_ERROR_REMOVING_TABLE, $tables['tablename']).'</font><br>'."\n"; } } else { echo ' <font color=green>'.sprintf(TEXT_TABLE_NOT_FOUND_DOING_NOTHING, $tables['tablename']).'</font><br>'."\n"; } } tep_db_free_result($table_query); } } else { echo ' <font color=gray>'.TEXT_NO_TABLES.'</font><br>'."\n"; } echo '<br><font color=gray>'.TEXT_CHECKING_CONFIGURATION.'</font><br>'."\n"; // remove configuration table entries foreach ($configuration_array as $tkey => $configuration) { echo ' <font color=green>'.sprintf(TEXT_REMOVING_CONFIGURATION_GROUP, $configuration['group']['configuration_group_title']).'</font><br>'."\n"; // remove keys foreach ($configuration['data'] as $configuration_key => $configuration_data) { $configuration_query = tep_db_query('select configuration_id from ' . TABLE_CONFIGURATION . " where configuration_key = '" . $configuration_key . "' limit 1"); if (tep_db_num_rows($configuration_query) > 0) { echo ' <font color=green>'.sprintf(TEXT_REMOVING_CONFIGURATION_KEY, $configuration_key).'</font><br>'."\n"; tep_db_query('delete from ' . TABLE_CONFIGURATION . " where configuration_key = '" . $configuration_key . "' limit 1"); } else { echo ' <font color=green>'.sprintf(TEXT_ERROR_CONFIGURATION_KEY_NOT_EXIST, $configuration_key).'</font><br>'."\n"; } tep_db_free_result($configuration_query); } // remove groups if empty $configuration_group_query = tep_db_query('select configuration_group_id from ' . TABLE_CONFIGURATION_GROUP . " where configuration_group_title = '" . $configuration['group']['configuration_group_title'] . "' limit 1"); $configuration_group = tep_db_fetch_array($configuration_group_query); $configuration_group_id = $configuration_group['configuration_group_id']; $count_query = tep_db_query('select count(*) as total from ' . TABLE_CONFIGURATION . " where configuration_group_id = '" . $configuration_group['configuration_group_id'] . "'"); $count = tep_db_fetch_array($count_query); $total_configurations = $count['total']; if ($count['total'] < 1) { if (tep_db_query('delete from ' . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . $configuration_group['configuration_group_id'] . "' limit 1")) { echo ' <font color=green>'.sprintf(TEXT_SUCCESS_REMOVE_GROUP, $configuration['group']['configuration_group_title']).'</font><br><br>'."\n"; } else { echo ' <font color=red>'.sprintf(TEXT_ERROR_REMOVING_GROUP, $configuration['group']['configuration_group_title']).'</font><br><br>'."\n"; } } else { echo ' <font color=red>'.sprintf(TEXT_GROUP_NOT_EMPTY, $configuration['group']['configuration_group_title']).'</font><br><br>'."\n"; } tep_db_free_result($configuration_group_query); tep_db_free_result($count_query); } ?></td> </tr> </table> <?php } else { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smalltext" nowrap="nowrap"> </td> <td class="smalltext"><?php echo TEXT_CHECKING_CONFIGURATION_STATUS; ?><br><br><?php list ($needs_update, $found_one, $status_messages) = db_update_status($configuration_array, $tables_array, $table_mods_array); if ($needs_update) { echo '<font color=red size="4"><b>' . TEXT_DATABASE_REQUIRES_UPDATE . '</b></font><br><br>'; } else { echo '<font color=green size="4"><b>' . TEXT_DATABASE_IS_UP_TO_DATE . '</b></font><br><br>'; } echo $status_messages . '<br>'; ?></td> </tr> </table> <?php } // end if ($action) { ?> </td> <?php $heading = array(); $contents = array(); switch ($action) { case 'process': $heading[] = array('text' => '<b>' . TEXT_SELECT_TASK . '</b>'); $contents[] = array('text' => '<br><br><br> <a href="' . tep_href_link(basename(__FILE__)) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a><br><br>'."\n"); break; default: $heading[] = array('text' => '<b>' . TEXT_SELECT_TASK . '</b>'); $contents[] = array('text' => tep_draw_form('process', basename(__FILE__), '', 'get', 'enctype="multipart/form-data" onsubmit="if(this.action[2].checked==true){if(confirm(\''.TEXT_UNINSTALL_CONFIRMATION.'\')){return confirm(\''.TEXT_UNINSTALL_CONFIRMATION2.'\');}else{return false;}}"') . '<p>' . TEXT_CONFIG_PROCESS_DESCRIPTION . '</p>' . '<br>'."\n" . '<font color=red><b>' . TEXT_DATABASE_REQUIRES_UPDATE_WARNING . '</b></font><br><br><br>' . ' ' . tep_draw_input_field( /* $name */ 'action', /* $value */ 'normal', /* $parameters */ 'checked id="normal"', /* $required */ false, /* $type */ 'radio', /* $reinsert */ false) . '<label for="normal" style="cursor:hand;cursor:pointer;">' . TEXT_NORMAL_SETUP . '</label><br>'."\n" . ($found_one ? ' ' . tep_draw_input_field( /* $name */ 'action', /* $value */ 'force', /* $parameters */ 'id="force"', /* $required */ false, /* $type */ 'radio', /* $reinsert */ false) . '<label for="force" style="cursor:hand;cursor:pointer;">' . TEXT_FORCE_REFRESH . '</label><br><br>'."\n" : '' ) . ($found_one ? ' ' . tep_draw_input_field( /* $name */ 'action', /* $value */ 'uninstall', /* $parameters */ 'id="uninstall"', /* $required */ false, /* $type */ 'radio', /* $reinsert */ false) . '<label for="uninstall" style="cursor:hand;cursor:pointer;color:#FF0000;">' . TEXT_UNINSTALL . '</label><br><br>'."\n" : '' ) . '<br> ' . tep_draw_input_field( /* $name */ 'submit', /* $value */ TEXT_CONFIG_PROCESS, /* $parameters */ '', /* $required */ false, /* $type */ 'submit', /* $reinsert */ false) . '<br><br><br>'."\n" . (!empty($action) ? ' <a href="' . tep_href_link(basename(__FILE__)) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a> '."\n" : '') . (!empty($cancel_url) ? ' <a href="' . tep_href_link($cancel_url) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a><br>'."\n" : '') . '<br>'."\n" . '</form>'); break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table> </td> <!-- body_text_eof //--> </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'); ?> Quote Link to comment Share on other sites More sharing options...
surfalot Posted February 28, 2008 Share Posted February 28, 2008 hi =) Sorry, I think the fix is on one of these 35 sides, but i don't wont to search such a long =( I uploaded the files that I have to upload and than I want to do the installiation ( additional_images_configure.php ). But I got a blank side =( Can someone help me? is it blank when you open additional_images_configure.php? or when you Run the config utility? search for this segment and remove it from additional_images_configure.php. enctype="multipart/form-data" beyond that try this. find this line in admin/includes/application_top.php error_reporting(E_ALL & ~E_NOTICE); temporarily change to: error_reporting(E_ALL); that change may result in warning messages you have never seen elsewhere in the shop also. does that help? Quote Link to comment Share on other sites More sharing options...
ChrizZz Posted February 28, 2008 Share Posted February 28, 2008 the site is blank, too. It is blank, when I open additional_images_configure.php I changed all codes you said Quote Link to comment Share on other sites More sharing options...
surfalot Posted February 28, 2008 Share Posted February 28, 2008 the site is blank, too. It is blank, when I open additional_images_configure.php I changed all codes you said 1. What is the PHP version on your hosting space? 2. Is "globals" on or off? (ask you host these questions if you are not sure) 3. talk to your host and ask them if your "error reporting is turned off on your site". By the way, additional_images_configure.php is a "page" or "script". A "site" is a collection of pages, or a site is your entire osCommerce shop. Quote Link to comment Share on other sites More sharing options...
ChrizZz Posted February 28, 2008 Share Posted February 28, 2008 PHP Version 5.2.5 register_globals off there is no "globals" if you don't mean register_globals I asked my hoster for error_reporting Sorry, I thought site is good enough, but now page or script Quote Link to comment Share on other sites More sharing options...
axonimag Posted March 3, 2008 Share Posted March 3, 2008 I did my best to do this on my own and by looking through every SINGLE page of this forum, but I'm stuck at the file comparison stage. I've downloaded Beyond Compare and went through each line of each file copying everything from the contribution into each respective file. Unfortunately, my site crashed and nothing worked. I've done a backup restore and am back online, but still stuck. When doing the comparison, is it correct to just copy everything from the contribution file to the site, or is there more to it. Please help. I'd really like to use this contribution, but am stuck at this stage. Thanks. Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 6, 2008 Share Posted March 6, 2008 PHP Version 5.2.5 register_globals off there is no "globals" if you don't mean register_globals I asked my hoster for error_reporting Sorry, I thought site is good enough, but now page or script try this change to admin/includes/additional_images_configure.php find: if (!function_exists(db_update_status)) { change to: if (!function_exists('db_update_status')) { Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 6, 2008 Share Posted March 6, 2008 (edited) I did my best to do this on my own and by looking through every SINGLE page of this forum, but I'm stuck at the file comparison stage. I've downloaded Beyond Compare and went through each line of each file copying everything from the contribution into each respective file. Unfortunately, my site crashed and nothing worked. I've done a backup restore and am back online, but still stuck. When doing the comparison, is it correct to just copy everything from the contribution file to the site, or is there more to it. Please help. I'd really like to use this contribution, but am stuck at this stage. Thanks. there is more to it if you shop has been altered or is newer then the 2.2ms2-060817 version which this contribution is based on. unfortunately there is no substitute for php knowledge when installing contributions. The file compare is the easiest way to go about making the necessary changes and it is a learned practice. see post 693 of this thread. If that doesn't help you might consider contracting someone to do it for you. Edited March 6, 2008 by surfalot Quote Link to comment Share on other sites More sharing options...
jcforbes Posted March 8, 2008 Share Posted March 8, 2008 http://blackforesthybrids.com/store/produc...;products_id=29 I've got the module working, but have some small issues. 1. On the above link there is a "Click here to enlarge" link just by itself in the middle of the page. It moves when I change table alignment, but the image shown doesn't move when I change table alignment. 2. If you click the image to bring up the pop-up you'll notice that both thumbnails are the same image, but if you mouse over the right one the displayed image changes. Any ideas? Quote Link to comment Share on other sites More sharing options...
allaboutwicker Posted March 10, 2008 Share Posted March 10, 2008 Hi, I installed this contrib and am getting this error message: Fatal error: Cannot instantiate non-existent class: displayimages in //store/product_info.php on line 147 From what I have read and can figure, it is telling me that it can't find displayimages.php in the includes/classes folder, but I did put it there and verified that it is there. Does anyone know what else I need to do? Thanks! Quote Link to comment Share on other sites More sharing options...
allaboutwicker Posted March 10, 2008 Share Posted March 10, 2008 I still can't figure out this error after installing this contrib: Fatal error: Cannot instantiate non-existent class: displayimages in //store/product_info.php on line 147 Does anyone have a clue for me??? Thanks! Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 12, 2008 Share Posted March 12, 2008 I still can't figure out this error after installing this contrib: Fatal error: Cannot instantiate non-existent class: displayimages in //store/product_info.php on line 147 Does anyone have a clue for me??? Thanks! look for a missing file you were suppose to upload in the catalog/includes/classes/ folder. Or maybe the "include" line that should have been added to product_info.php for same class file. Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 12, 2008 Share Posted March 12, 2008 http://blackforesthybrids.com/store/produc...;products_id=29 I've got the module working, but have some small issues. 1. On the above link there is a "Click here to enlarge" link just by itself in the middle of the page. It moves when I change table alignment, but the image shown doesn't move when I change table alignment. 2. If you click the image to bring up the pop-up you'll notice that both thumbnails are the same image, but if you mouse over the right one the displayed image changes. Any ideas? just for the record, not ignoring you, just don't know. Make sure that if you upload only a single image size (not all three), it goes in the Thumb field. Quote Link to comment Share on other sites More sharing options...
girl Posted March 14, 2008 Share Posted March 14, 2008 http://blackforesthybrids.com/store/produc...;products_id=29 I've got the module working, but have some small issues. 1. On the above link there is a "Click here to enlarge" link just by itself in the middle of the page. It moves when I change table alignment, but the image shown doesn't move when I change table alignment. 2. If you click the image to bring up the pop-up you'll notice that both thumbnails are the same image, but if you mouse over the right one the displayed image changes. Any ideas? re point 2. Mine does the same thing. I thought it was a perk :lol: re errors in product info file. I kept getting that when I installed it. I had lots of contributions in my prod info file. what I had to do was to use the contribution prod info and then re-add the code of the previously installed contributions. Quote Link to comment Share on other sites More sharing options...
jcforbes Posted March 14, 2008 Share Posted March 14, 2008 (edited) I figured it out! SQL is cropping the file names. For example my original image was "pp_front_medium.jpg" which seems to be exactly the max length for an entry in the database considering a long URL. When the module made the thumb "pp_front_mediumm.jpg" SQL cut the name to "pp_front_mediumm.jp" which seems to screw with the images module ;-). Simply re-naming the source file to "pp_front_med.jpg" and re-adding it solved all of the problems. Thanks for the note that at least you were trying! Most of the time people aren't even that curteous ;-). I don't feel like counting the char length right now, but here's the whole string if somebody wants to know: http://blackforesthybrids.com/store/images...ont_mediumm.jpg Edited March 14, 2008 by jcforbes Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 14, 2008 Share Posted March 14, 2008 I figured it out! SQL is cropping the file names. For example my original image was "pp_front_medium.jpg" which seems to be exactly the max length for an entry in the database considering a long URL. When the module made the thumb "pp_front_mediumm.jpg" SQL cut the name to "pp_front_mediumm.jp" which seems to screw with the images module ;-). Simply re-naming the source file to "pp_front_med.jpg" and re-adding it solved all of the problems. Thanks for the note that at least you were trying! Most of the time people aren't even that curteous ;-). I don't feel like counting the char length right now, but here's the whole string if somebody wants to know: http://blackforesthybrids.com/store/images...ont_mediumm.jpg yup, I should have thought of that. use the topic search (lower left of page), search for "products_image", scroll down to the post from me on Jul 31 2007, 04:12 AM. there is your solution. should allow for enough storage space in the future. Quote Link to comment Share on other sites More sharing options...
jcforbes Posted March 15, 2008 Share Posted March 15, 2008 Thank you! I've discovered just a couple more things now ;-). 1) Go to: http://blackforesthybrids.com/store/produc...;products_id=32 Bring up the pop-up Pick an image with a description. Notice that the description appears to the right of the image. I'd like it to be below the image. In what file is the code that does the layout? If I'm right I'm looking for the "$imagemenu->altgroupoutput" function, and I'll simply need to add a 'br'. I may play with the text styling while I'm there too ;-). 2) If I try to display the images in the product info instead of the popup they always appear to the right side of the product description, not below and centered as specified in the config. Possibly a related note, if I set 'group parent with sub-images' to true while 'image behavior' is set to 'product_info' all of the images just dissapear. Turning off 'group parent with sub-images' the images display exactly as they do in the popup, just they appear to the right of the product description and take up 90% of the width of the info area. Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 15, 2008 Share Posted March 15, 2008 Notice that the description appears to the right of the image. I'd like it to be below the image. In what file is the code that does the layout? If I'm right I'm looking for the "$imagemenu->altgroupoutput" function, and I'll simply need to add a 'br'. I may play with the text styling while I'm there too ;-). in popup_add_image.php find ?$selected_image['images_description']:''); at the end of ln 129 change to ?' '.$selected_image['images_description']:''); two lines below at the end ?$selected_image['products_image_description']:''); to ?' '.$selected_image['products_image_description']:''); 2) If I try to display the images in the product info instead of the popup they always appear to the right side of the product description, not below and centered as specified in the config. at the moment, "product_info" setting only displays Top & Sides, not Below. The right/left has this little fix to product_info.php line 161 (of the contrib file) starts with <table border="0" cellspacing="0" cellpadding="2" align="right" change to <table border="0" cellspacing="0" cellpadding="2" align="<?php echo ADDIMAGES_TABLE_ALIGNMENT; ?>" if you are specifically looking to have the rollover menu below the product description you can move some lines in the product_info.php: lines 164-203 move to replace 259-265 ** you will leave the <TD> and end <TD> tags on lines 259 and 265, just repalce the php part at the destination. 2) Possibly a related note, if I set 'group parent with sub-images' to true while 'image behavior' is set to 'product_info' all of the images just dissapear. Turning off 'group parent with sub-images' the images display exactly as they do in the popup true, it wasn't quite implemented right. when image behavior is product_info, then the group with parent option has to be false, but the roll-over menu is always "grouped with parent". find ln 158 of product_info.php if (tep_not_null($product_info['products_image']) && ADDIMAGES_GROUP_WITH_PARENT == 'false') { change to if (tep_not_null($product_info['products_image']) && ((ADDIMAGES_GROUP_WITH_PARENT == 'false') || (ADDIMAGES_MENU_LOCATION == 'product_info' && ADDIMAGES_GROUP_WITH_PARENT == 'true'))) { 2) just they appear to the right of the product description and take up 90% of the width of the info area. is there extra white space around the image and menu combo? or is it taking that much space because the image and menu combo is simply that large? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 17, 2008 Share Posted March 17, 2008 I downloaded Additional Images v2.0.0 and have uploaded the new files and compared the origional files, I attempted to run additional_images_configure.php but it does nothing. My web browser screen stays empty, can anyone be of assistance? Quote Link to comment Share on other sites More sharing options...
surfalot Posted March 18, 2008 Share Posted March 18, 2008 in popup_add_image.php find ?$selected_image['images_description']:''); at the end of ln 129 change to ?' '.$selected_image['images_description']:''); two lines below at the end ?$selected_image['products_image_description']:''); to ?' '.$selected_image['products_image_description']:''); at the moment, "product_info" setting only displays Top & Sides, not Below. The right/left has this little fix to product_info.php line 161 (of the contrib file) starts with <table border="0" cellspacing="0" cellpadding="2" align="right" change to <table border="0" cellspacing="0" cellpadding="2" align="<?php echo ADDIMAGES_TABLE_ALIGNMENT; ?>" if you are specifically looking to have the rollover menu below the product description you can move some lines in the product_info.php: lines 164-203 move to replace 259-265 ** you will leave the <TD> and end <TD> tags on lines 259 and 265, just repalce the php part at the destination. true, it wasn't quite implemented right. when image behavior is product_info, then the group with parent option has to be false, but the roll-over menu is always "grouped with parent". find ln 158 of product_info.php if (tep_not_null($product_info['products_image']) && ADDIMAGES_GROUP_WITH_PARENT == 'false') { change to if (tep_not_null($product_info['products_image']) && ((ADDIMAGES_GROUP_WITH_PARENT == 'false') || (ADDIMAGES_MENU_LOCATION == 'product_info' && ADDIMAGES_GROUP_WITH_PARENT == 'true'))) { is there extra white space around the image and menu combo? or is it taking that much space because the image and menu combo is simply that large? the forum change the first two "change tos". There is suppose to be an HTML BR tag inbetween the first single quotes. Quote Link to comment Share on other sites More sharing options...
girl Posted March 19, 2008 Share Posted March 19, 2008 hi, your contribution in general is working great for me. However when I turn on my caches I lose the pop up image. All the additional images are coming up, it is just when I click to enlarge I get the pop-up window with no image. when I have caches off, everything is working fine. Can you possibly help. thanks. Quote Link to comment Share on other sites More sharing options...
withlovenana Posted March 19, 2008 Share Posted March 19, 2008 I don't know how you all are getting this to work. I have tried 3 times on a frest install and getting this error Fatal error: Call to undefined function tep_hide_session_id() in /home/withlove/public_html/catalog3/admin/index.php on line 54 on admin page under adminstaror tab that is now says"BOX_CONFIGURATION_ADMINISTRATORS" when I click on additional images tab now page shows this error: The requested URL /catalog3/admin/FILENAME_LOGIN was not found on this server. I really need this install. We have 2 pictures for each product and we need the popup for each. I followed the instructions just as were included in v2.0.1. new install of osc rc2a. running php 5.2.5 register globals on. Would appreciate any advice. Spent way too much time on this to get no where. Thanks! Quote Link to comment Share on other sites More sharing options...
allaboutwicker Posted March 19, 2008 Share Posted March 19, 2008 I don't know how you all are getting this to work. I have tried 3 times on a frest install and getting this error Fatal error: Call to undefined function tep_hide_session_id() in /home/withlove/public_html/catalog3/admin/index.php on line 54 on admin page under adminstaror tab that is now says"BOX_CONFIGURATION_ADMINISTRATORS" when I click on additional images tab now page shows this error: The requested URL /catalog3/admin/FILENAME_LOGIN was not found on this server. I really need this install. We have 2 pictures for each product and we need the popup for each. I followed the instructions just as were included in v2.0.1. new install of osc rc2a. running php 5.2.5 register globals on. Would appreciate any advice. Spent way too much time on this to get no where. Thanks! Check to see if "define('FILENAME_LOGIN', 'login.php');" is in the INCLUDES/FILENAMES.PHP file. 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.