Advertisement:

Author Topic: after install OSclass 2.3.4.1 , i got a Warning message on home page  (Read 1680 times)

tharangaou

  • Newbie
  • *
  • Posts: 2
Hi,
after install OSclass 2.3.4.1 , i got a Warning message on home page as bellow

Quote
Warning: sprintf() [function.sprintf]: Too few arguments in C:\wamp\www\automobile\oc-includes\osclass\model\Search.php on line 675 Call Stack #TimeMemoryFunctionLocation 10.0012746800{main}( )..\index.php:0 20.101710412336CWebMain->doModel( )..\index.php:118 30.101810412416CWebMain->doView( )..\main.php:42 40.101810412416osc_current_web_theme_path( )..\main.php:49 50.104510610192require( 'C:\wamp\www\automobile\oc-content\themes\modern\main.php' )..\hDefines.php:207 60.104610610272osc_current_web_theme_path( )..\main.php:25 70.105210620872require( 'C:\wamp\www\automobile\oc-content\themes\modern\head.php' )..\hDefines.php:207 80.105310620872meta_description( )..\head.php:27 90.105410621032osc_count_latest_items( )..\functions.php:197 100.105910633664Search->getLatestItems( )..\hItems.php:890 110.106010635032sprintf ( )..\Search.php:675 Cars, Personally Imported 2011. MFG Year 2010. Fully Loaded. HDD TV Navi System Pioneer Touch Body-kits/ alloy-wheels. winker mirror VAT Ava......, Cars" />

how to solve it ......................

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: after install OSclass 2.3.4.1 , i got a Warning message on home page
« Reply #1 on: January 11, 2012, 12:47:47 pm »
Hi

Change line 675 of file oc-includes/osclass/model/Search.php
from


$this
->addTable(sprintf('%st_category'), DB_TABLE_PREFIX);



to



$this
->addTable(sprintf('%st_category'DB_TABLE_PREFIX) );