Ik heb op onze webshop een module geplaatst zodat klanten in een scherm hun order kunnen afhandelen. Nu krijg ik de onderstaande foutmelding.
Warning: Illegal string offset 'id' in /public_html/includes/classes/shipping.php on line 25
Warning: Illegal string offset 'id' in /public_html/includes/classes/shipping.php on line 25
Dit is de php code:
<?php
if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+2)), $this->modules)) ) {
?>
Dit is de volledige code
<?php
if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+2)), $this->modules)) ) {
$include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
} else {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
$include_modules[] = array('class' => $class, 'file' => $value);
}
}
?>
Wij gebruiken het eCommerce systeem osCommerce nieuwste versie 2.3.
Ik hoor graag een reactie.
Alvast bedankt voor de reactie
Dustin