Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

upgrading from 2.3.3.1 to 2.3.3.2


zpupster

Recommended Posts

Posted

hello,

 

i had 2 problems up grading from 2.3.3.1 to 2.3.3.2. this code is from library.oscommerce

 

http://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_3_2

 

<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (empty($pInfo->products_id) ? '' : tep_get_products_name($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

 

 

the above code when i searched for this in admin/categories.php was not correct. this is just an FYI, because i did find what needed to be replaced.

the code below however when i searched the code provided, it did not match in a search in

includes/classes/osc_template.well it was easy enough to figure out what needed to be replaced,

but after the install i received an error on line 108, ( ;) expected.

 

i reverted back to the original 2.3.3 code for now if someone could advise what is wrong i will replace it with the 2.3.3.2 code. thanks

 

function buildBlocks() {

global $language;

 

if ( defined('TEMPLATE_BLOCK_GROUPS') && tep_not_null(TEMPLATE_BLOCK_GROUPS) ) {

$tbgroups_array = explode(';', TEMPLATE_BLOCK_GROUPS);

 

foreach ($tbgroups_array as $group) {

$module_key = 'MODULE_' . strtoupper($group) . '_INSTALLED';

 

if ( defined($module_key) && tep_not_null(constant($module_key)) ) {

$modules_array = explode(';', constant($module_key));

 

foreach ( $modules_array as $module ) {

$class = substr($module, 0, strrpos($module, '.'));

 

if ( !class_exists($class) ) {

include(DIR_WS_LANGUAGES . $language . '/modules/' . $group . '/' . $module);

include(DIR_WS_MODULES . $group . '/' . $class . '.php');

}

 

$mb = new $class();

 

if ( $mb->isEnabled() ) {

$mb->execute();

}

}

}

}

}

}

Posted

i tried again this is the error:

 

Fatal error: Class 'oscTemplate' not found in /home/site/public_html/folder/includes/application_top.php on line 443

 

i looked in application_ top.php and this at 443

 

require(DIR_WS_CLASSES . 'osc_template.php');
 $oscTemplate = new oscTemplate();

 

what is the problem??

Archived

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

×
×
  • Create New...