♥kymation Posted August 19, 2012 Author Share Posted August 19, 2012 (edited) It looks like the catalog/includes/languages/english/modules/boxes/bm_categories_accordion.php file is damaged or missing. Or you're using a different language and didn't copy that file to your other language directory. Regards Jim Edited August 19, 2012 by kymation Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
ce7 Posted August 19, 2012 Share Posted August 19, 2012 Hi Jim, Thanks for your reply. I went to the add on and download the zip files again. I still have error message: Warning: reset() [function.reset]: Passed variable is not an array or object in /admin/modules.php on line 227 Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 228 Notice: Undefined property: stdClass::$title in admin/modules.php on line 240 below is the modules.php file from oscommerce 2.3.3 <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : ''); $modules = $cfgModules->getAll(); if (empty($set) || !$cfgModules->exists($set)) { $set = $modules[0]['code']; } $module_type = $cfgModules->get($set, 'code'); $module_directory = $cfgModules->get($set, 'directory'); $module_language_directory = $cfgModules->get($set, 'language_directory'); $module_key = $cfgModules->get($set, 'key');; define('HEADING_TITLE', $cfgModules->get($set, 'title')); $template_integration = $cfgModules->get($set, 'template_integration'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'save': reset($HTTP_POST_VARS['configuration']); while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': case 'remove': $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $class = basename($HTTP_GET_VARS['module']); if (file_exists($module_directory . $class . $file_extension)) { include($module_directory . $class . $file_extension); $module = new $class; if ($action == 'install') { $module->install(); $modules_installed = explode(';', constant($module_key)); $modules_installed[] = $class . $file_extension; tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $modules_installed) . "' where configuration_key = '" . $module_key . "'"); tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); } elseif ($action == 'remove') { $module->remove(); $modules_installed = explode(';', constant($module_key)); unset($modules_installed[array_search($class . $file_extension, $modules_installed)]); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $modules_installed) . "' where configuration_key = '" . $module_key . "'"); tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set)); } } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); break; } } require(DIR_WS_INCLUDES . 'template_top.php'); $modules_installed = (defined($module_key) ? explode(';', constant($module_key)) : array()); $new_modules_counter = 0; $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $directory_array = array(); if ($dir = @[member='dir']($module_directory)) { while ($file = $dir->read()) { if (!is_dir($module_directory . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { if (isset($HTTP_GET_VARS['list']) && ($HTTP_GET_VARS['list'] = 'new')) { if (!in_array($file, $modules_installed)) { $directory_array[] = $file; } } else { if (in_array($file, $modules_installed)) { $directory_array[] = $file; } else { $new_modules_counter++; } } } } } sort($directory_array); $dir->close(); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%"><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', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> <?php if (isset($HTTP_GET_VARS['list'])) { echo ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_MODULES, 'set=' . $set)) . '</td>'; } else { echo ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_MODULE_INSTALL . ' (' . $new_modules_counter . ')', 'plus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&list=new')) . '</td>'; } ?> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_MODULES; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SORT_ORDER; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php $installed_modules = array(); for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) { $file = $directory_array[$i]; include($module_language_directory . $language . '/modules/' . $module_type . '/' . $file); include($module_directory . $file); $class = substr($file, 0, strrpos($file, '.')); if (tep_class_exists($class)) { $module = new $class; if ($module->check() > 0) { if (($module->sort_order > 0) && !isset($installed_modules[$module->sort_order])) { $installed_modules[$module->sort_order] = $file; } else { $installed_modules[] = $file; } } if ((!isset($HTTP_GET_VARS['module']) || (isset($HTTP_GET_VARS['module']) && ($HTTP_GET_VARS['module'] == $class))) && !isset($mInfo)) { $module_info = array('code' => $module->code, 'title' => $module->title, 'description' => $module->description, 'status' => $module->check(), 'signature' => (isset($module->signature) ? $module->signature : null), 'api_version' => (isset($module->api_version) ? $module->api_version : null)); $module_keys = $module->keys(); $keys_extra = array(); for ($j=0, $k=sizeof($module_keys); $j<$k; $j++) { $key_value_query = tep_db_query("select configuration_title, configuration_value, configuration_description, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'"); $key_value = tep_db_fetch_array($key_value_query); $keys_extra[$module_keys[$j]]['title'] = $key_value['configuration_title']; $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value']; $keys_extra[$module_keys[$j]]['description'] = $key_value['configuration_description']; $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function']; $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function']; } $module_info['keys'] = $keys_extra; $mInfo = new objectInfo($module_info); } if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { if ($module->check() > 0) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . '\'">' . "\n"; } else { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n"; } } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['list']) ? '&list=new' : '') . '&module=' . $class) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo $module->title; ?></td> <td class="dataTableContent" align="right"><?php if (is_numeric($module->sort_order)) echo $module->sort_order; ?></td> <td class="dataTableContent" align="right"><?php if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['list']) ? '&list=new' : '') . '&module=' . $class) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } } if (!isset($HTTP_GET_VARS['list'])) { ksort($installed_modules); $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); if ($check['configuration_value'] != implode(';', $installed_modules)) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'"); } } else { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', '" . $module_key . "', '" . implode(';', $installed_modules) . "', 'This is automatically updated. No need to edit.', '6', '0', now())"); } if ($template_integration == true) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'TEMPLATE_BLOCK_GROUPS'"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); $tbgroups_array = explode(';', $check['configuration_value']); if (!in_array($module_type, $tbgroups_array)) { $tbgroups_array[] = $module_type; sort($tbgroups_array); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $tbgroups_array) . "', last_modified = now() where configuration_key = 'TEMPLATE_BLOCK_GROUPS'"); } } else { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Template Block Groups', 'TEMPLATE_BLOCK_GROUPS', '" . $module_type . "', 'This is automatically updated. No need to edit.', '6', '0', now())"); } } } ?> <tr> <td colspan="3" class="smallText"><?php echo TEXT_MODULE_DIRECTORY . ' ' . $module_directory; ?></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'edit': $keys = ''; [color=#FF0000][b]reset($mInfo->keys); --->line 227[/b][/color] [color=#0000FF][b]while (list($key, $value) = each($mInfo->keys)) { ---> line 228[/b][/color] $keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />'; if ($value['set_function']) { eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']); } $keys .= '<br /><br />'; } $keys = substr($keys, 0, strrpos($keys, '<br /><br />')); [b][color=#006400] $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>'); ---> line 240[/color][/b] $contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save')); $contents[] = array('text' => $keys); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']))); break; default: $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>'); if ($mInfo->status == '1') { $keys = ''; reset($mInfo->keys); while (list(, $value) = each($mInfo->keys)) { $keys .= '<strong>' . $value['title'] . '</strong><br />'; if ($value['use_function']) { $use_function = $value['use_function']; if (preg_match('/->/', $use_function)) { $class_method = explode('->', $use_function); if (!isset(${$class_method[0]}) || !is_object(${$class_method[0]})) { include(DIR_WS_CLASSES . $class_method[0] . '.php'); ${$class_method[0]} = new $class_method[0](); } $keys .= tep_call_function($class_method[1], $value['value'], ${$class_method[0]}); } else { $keys .= tep_call_function($use_function, $value['value']); } } else { $keys .= $value['value']; } $keys .= '<br /><br />'; } $keys = substr($keys, 0, strrpos($keys, '<br /><br />')); $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=edit')) . tep_draw_button(IMAGE_MODULE_REMOVE, 'minus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove'))); if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) { $contents[] = array('text' => '<br />' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ' <strong>' . TEXT_INFO_VERSION . '</strong> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)'); } if (isset($mInfo->api_version)) { $contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ' <strong>' . TEXT_INFO_API_VERSION . '</strong> ' . $mInfo->api_version); } $contents[] = array('text' => '<br />' . $mInfo->description); $contents[] = array('text' => '<br />' . $keys); } elseif (isset($HTTP_GET_VARS['list']) && ($HTTP_GET_VARS['list'] == 'new')) { if (isset($mInfo)) { $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_MODULE_INSTALL, 'plus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install'))); if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) { $contents[] = array('text' => '<br />' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ' <strong>' . TEXT_INFO_VERSION . '</strong> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)'); } if (isset($mInfo->api_version)) { $contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ' <strong>' . TEXT_INFO_API_VERSION . '</strong> ' . $mInfo->api_version); } $contents[] = array('text' => '<br />' . $mInfo->description); } } 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> </tr> </table> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 19, 2012 Share Posted August 19, 2012 (edited) Sorry the post is a bit long, so I break it down to seperated parts: the Categories Accordion then just show SAVE & REMOVE Module (no Edit anymore) when I click on SAVE, this is what message I got, Warning: reset() [function.reset]: Passed variable is not an array or object in /admin/modules.php on line 35 Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /admin/modules.php:35) in /admin/includes/functions/general.php on line 35 when I click on SAVE, this is what message I got, and then the categories also became the same way I didnot installed any other language, only English version. I did not modify any files, just simply copy and paste. Not sure why this happen. It not only happen in 2.3.1 but 2.3.2 and 2.3.3 version. Is it something wrong with the PHP or other issues? I basically can make the box show up in the front page, but I can't make the + icon delete nor change the column right or left as the EDIT button doesn't work. All the other modules works fine, even the Products Filter one works..... is there any other way that I can modify the icon and column left and right? thank you very much for your time and help. regards, Lyn Edited August 19, 2012 by ce7 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 19, 2012 Author Share Posted August 19, 2012 This is most likely the result of uploading a file to the wrong location. There are four files in this distribution. Check that each one is in the correct location on your server. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
ce7 Posted August 19, 2012 Share Posted August 19, 2012 Hi Jim, I download the oscommerce 2.3.3 version and installed together with only Accordion Catelog Menu on my local server, it works fine without any problem. (WAMP Server: MySQL 5.5.2 PHP 5.3.10 Apache 2.2.21) When I upload it to server, the Modules/Boxes/Categories Accordion then go again the same problem. And the website can't open with lots of error message: Warning: include(includes/languages/english/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 86 Warning: include(includes/languages/english/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 86 Warning: include() [function.include]: Failed opening 'includes/languages/english/modules/header_tags/ht_canonical.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in //includes/classes/osc_template.php on line 86 Warning: include(includes/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /home/inmotion/public_html/mickgrip.com.au/TEST/includes/classes/osc_template.php on line 87 Warning: include(includes/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 87 Warning: include() [function.include]: Failed opening 'includes/modules/header_tags/ht_canonical.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /includes/classes/osc_template.php on line 87 Fatal error: Class 'ht_canonical' not found in /includes/classes/osc_template.php on line 90 Can you see what is going on? Is it the problem from my hosting company's oscommerce version or PHP? Thanks and regards, Lyn Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 19, 2012 Share Posted August 19, 2012 (edited) ok, I added the ht_canonical.php and ht_robot_noindex.php and the website comes back again. (Sorry this was caused by I copy the 2.3.2 version, not the 2.3.3 version. I redo it again and make sure the ht_canonical.php and ht_robot_noindex.php are there!) it is really strange. Exactly the same copy and paste, the localhost 2.3.3 version works great and I did modified application_top.php as mentioned earlier, this time I didn't have any error message. the localhost index http://postimage.org/image/6m8xnnecf/3464aa96/ the localhost modules/boxes http://postimage.org/image/smpa49x0f/72944508/ the server index http://postimage.org/image/yc5iol36n/281f426c/ the server modules/boxes1 http://postimage.org/image/rmyz8khun/fd26f4cd/ the server modules/boxes2 when you click on the EDIT button show on moduels/boxes1 image, it just jump directly to this image http://postimage.org/image/y22lizdy7/3e8b603f/ I don't know why I can not modify the modules / boxes in the live server version one? Edited August 19, 2012 by ce7 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 19, 2012 Author Share Posted August 19, 2012 Log into your live server Admin, select View Source, and look at the end of the file. Is there an error message there? If you can't figure it out, post an image of the last part of that file. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
ce7 Posted August 20, 2012 Share Posted August 20, 2012 Hi Jim, I had sent your the source code by messages. The first part is live server version and 2nd part is localhost version. I am not sure the error message. (I had application_top.php modified as you suggested) I assume there is no error message there? I can see the differences in the two but I dont know how to make the live version one works! Thank you very much for your time. regards, Lyn Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 20, 2012 Author Share Posted August 20, 2012 (edited) That looks just fine to me. I saved it as a file and opened it in Firefox, and everything looks right. Perhaps you need to try a different browser. Edit: That also appears to be your local copy, which you have said works correctly. I can't do anything with that. Again, I need the source of the page that is broken. Regards Jim Edited August 20, 2012 by kymation Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2012 Share Posted August 23, 2012 Jim, Thanks for the great contribution! An issue I am having is when trying to edit the module settings in the admin. When I click on Edit I get the following error: Fatal error: Call to undefined function tep_cfg_pull_down_icon() in /hermes/bosweb25a/b459 <...full web path omitted for security...> admin/modules.php(313) : eval()'d code on line 1 Everything else seems to be working fine including the front end. I have triple checked that all files are in the correct directories. Any insight on what might be causing this error? Thank you, Jason Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 23, 2012 Author Share Posted August 23, 2012 The function tep_cfg_pull_down_icon() is in admin/includes/functions/modules/icon_selector.php. Check that the file is there and not corrupt and the folder names are spelled correctly. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2012 Share Posted August 23, 2012 Thanks for the reply. I verified that the files are in the correct location and uploaded a fresh copy while I was at it. I have the files located at admin/includes/functions/modules/boxes/icon_selector.php. I have my osCommerce within a subdirectory and not at the root of my server, so I am wondering if I need to modify the icon_selector.php (or possibly another file) to point in a slightly different location, or rather show the additional paths to get down to the catalog level? Thanks, J Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 23, 2012 Author Share Posted August 23, 2012 The test version of osCommerce this was developed on is in a subdirectory, so I doubt that's the problem. Perhaps there is something wrong with your configure.php settings. You didn't show the complete path in the error message, so I can't tell if that's right or not. If all else fails, there is one workaround that you can try. Copy all of the code from admin/includes/functions/modules/boxes/icon_selector.php and paste it in the bottom of catalog/includes/modules/boxes/bm_categories_accordion.php, just before the final ?>, Regards Jim ce7 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2012 Share Posted August 23, 2012 Thanks Jim, The workaround did the trick although it appears that it is not finding the icons.txt file now as there are no options available to select from in the drop downs. I will continue to troubleshoot this and verify my configure.php settings. Thank you, J Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 23, 2012 Author Share Posted August 23, 2012 That's similar to the previous problem, in that your code is not finding the file. It's looking more like your configure.php is not set up correctly. The relevant code (in the code you pasted in) is $file = DIR_WS_FUNCTIONS . 'modules/boxes/icons.txt'; You could try replacing that with the complete path to the file, something like this php] $file = '/some/path/to/includes/functions/modules/boxes/icons.txt'; [/php] Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
knifeman Posted September 12, 2012 Share Posted September 12, 2012 If all else fails, there is one workaround that you can try. Copy all of the code from admin/includes/functions/modules/boxes/icon_selector.php and paste it in the bottom of catalog/includes/modules/boxes/bm_categories_accordion.php, just before the final ?>, Regards Jim Jim, I had to do this as well. If i do not copy that code into the second file, I get this error in admin if i try to edit the module: Fatal error: Call to undefined function tep_cfg_pull_down_icon() in /home/domain/public_html/catalog/admin/modules.php(232) : eval()'d code on line 1 Once I add code to the catalog side, all works well. I have this issue on a live site in the root and my test site in a subfolder. Tim ce7 1 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted September 12, 2012 Author Share Posted September 12, 2012 I probably should do this in the next release, since there seem to be several people with this problem. I still can't duplicate it on any site I have access to, so I don't know what the exact problem is. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
knifeman Posted September 12, 2012 Share Posted September 12, 2012 Thanks. It is working with the code pasted in the other file. I always hate to leave something with a 'workaround'. Just a little idiosyncrasy of mine. Thanks for the add on! Tim Quote Link to comment Share on other sites More sharing options...
droper Posted September 13, 2012 Share Posted September 13, 2012 Hello all. Yesterday I installed this addon and it work perfect. I look for something like this, and think this module can be modify to work for exact thing that I am looking for. Sorry for my bad English My site is located here: http://pyzeli.com I have horizontal menu - with all main categories on it. I am looking for additional menu, who will show only the current Category with Subcategories in it. Is there anyway to hide all categories, and show only category and subcategories - that user is in...? Quote Link to comment Share on other sites More sharing options...
♥kymation Posted September 13, 2012 Author Share Posted September 13, 2012 It should be possible, but you'll have to do some code editing. This Addon is not really designed to do that. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
droper Posted September 13, 2012 Share Posted September 13, 2012 Thanks for the reply. I will see what I can do Quote Link to comment Share on other sites More sharing options...
ce7 Posted September 19, 2012 Share Posted September 19, 2012 Hi Jim, It's Lyn again. The problem with Categories accordion box is still there, but I will just ignore it at this stage. (Problem: can not modify in admin/module/box) The other question I like to ask about this add on is that in the front page, the different category box show up without problem, but it looks very different to the default layout. How can I make it looks like the default setting? Which files I should modify? where I like it to change to default setting default infobox: White topic text with blue bar in the background infobox cornor: is round and the default is square I am happy with each subcategories has a divided line in between and has no point arrow Many thanks in advance. Lyn Quote Link to comment Share on other sites More sharing options...
♥kymation Posted September 19, 2012 Author Share Posted September 19, 2012 The Accordion Menu is styled by the jQuery theme, so you can use Themeroller to change it. Also, turn off the cache if you have it on, or clear it every time you make a change to your site. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
ce7 Posted September 20, 2012 Share Posted September 20, 2012 (edited) The function tep_cfg_pull_down_icon() is in admin/includes/functions/modules/icon_selector.php. Check that the file is there and not corrupt and the folder names are spelled correctly. Regards Jim Hi Jim, So somehow now I also have this error message, and I look into the unzipped files download from addons, i have different path the the icon_selector.php admin/includes/functions/modules/boxes/icon_selector.php & icons.txt if the files is in admin/includes/functions/modules/icon_selector.php, then the undefined function tep_cfg_pull_down_icon() show up; if it is admin/includes/functions/modules/boxes/icon_selector.php then the same problem I can not edit the arrow nor sort order... Lyn Edited September 20, 2012 by ce7 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted September 20, 2012 Author Share Posted September 20, 2012 Put the files where the instructions say to put them. Anywhere else will cause errors. Your inability to edit is caused by an error. Look in your PHP error log and/or turn on errors in your admin/includes/application_top.php by changing error_reporting(E_ALL & ~E_NOTICE); to error_reporting( E_ALL ); Regards Jim Quote See my profile for a list of my addons and ways to get support. 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.