Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot use string offset as an array


Guest

Recommended Posts

Posted

I have moved my shop to a different server, but now I get this error on the site.

(Admin tool is working fine.)

 

Fatal error: Cannot use string offset as an array in C:\webs\sitemanager\e-shop\worldtradersmarket\worldtradersmarket-www\shop\includes\classes\boxes.php on line 121

 

The code of around boxes.php line 121 (green line) look likes this:

 

} else {

$tableBox_string .= ' <td valign="top" ';

if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';

if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {

$tableBox_string .= ' ' . $contents[$i]['params'];

} elseif (tep_not_null($this->table_data_parameters)) {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

if (isset($contents[$i]['class']) && tep_not_null($contents[$i]['class'])) {

$tableBox_string .= ' class="' . $contents[$i]['class'].'"';

}

$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";

}

 

$tableBox_string .= ' </tr>' . "\n";

}

 

$tableBox_string .= '</table>' . "\n";

if (isset($contents[0]['form']) && tep_not_null($contents[0]['form'])) $tableBox_string .= '</form>' . "\n";

 

if ($direct_output == true) echo $tableBox_string;

 

return $tableBox_string;

}

Archived

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

×
×
  • Create New...