Jump to content



Latest News: (loading..)

Issue Information

  • #000478

  • 0 - None Assigned

  • New

  • 3.0.2

  • -

Issue Confirmations

  • Yes (0)No (0)
Photo

class 'osCommerce\OM\Core\Site\Setup\Application\Install\SQL\ANSI\ImportFK' not found

Posted by foxp2 on 07 August 2012 - 08:43 AM

Hi,
with a mysql standard installation:

report error :

error module said:

PHP Warning: call_user_func() expects parameter 1 to be a valid callback, class 'osCommerce\OM\Core\Site\Setup\Application\Install\SQL\ANSI\ImportFK'
not found in \osCommerce\OM\Core\OSCOM.php on line 416


fix:

create new folder named 'ANSI' in osCommerce\OM\Core\Site\Setup\Application\Install\SQL

move \osCommerce\OM\Core\Site\Setup\Application\Install\SQL\MySQL\Standard\ImportFK.php
to \osCommerce\OM\Core\Site\Setup\Application\Install\SQL\ANSI\ImportFK.php



and change :

namespace osCommerce\OM\Core\Site\Setup\Application\Install\SQL\PostgreSQL;


with :

namespace osCommerce\OM\Core\Site\Setup\Application\Install\SQL\ANSI;

namespace is incorrect in original file's : https://github.com/haraldpdl/oscommerce/blob/master/osCommerce/OM/Core/Site/Setup/Application/Install/SQL/MySQL/Standard/ImportFK.php