PrestaFanBoy Posted August 27, 2013 Share Posted August 27, 2013 (edited) Hi, I am getting a strange error populating so many lines in BO while uploading products csv file. Warning: Wrong parameter count for clearstatcache() in /home4/omytus99/public_html/classes/ImageManager.php on line 122 When I checked the imagemanager.php file I see the following function. clearstatcache(true, $src_file); What does this mean. I didnt face this kind of warning while uploading csv files earlier. Thanks for any suggestions PrestaFanBoy Edited August 27, 2013 by PrestaFanBoy (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 Try changing this if (PHP_VERSION_ID < 50300) clearstatcache(); else clearstatcache(true, $src_file); Into this if (version_compare(PHP_VERSION, '5.3.0', '>=')) { clearstatcache(true, $src_file); } else { clearstatcache(); } Basically that function didn't have parameters before php 5.3 Link to comment Share on other sites More sharing options...
PrestaFanBoy Posted August 28, 2013 Author Share Posted August 28, 2013 Try changing this if (PHP_VERSION_ID < 50300) clearstatcache(); else clearstatcache(true, $src_file); Into this if (version_compare(PHP_VERSION, '5.3.0', '>=')) { clearstatcache(true, $src_file); } else { clearstatcache(); } Basically that function didn't have parameters before php 5.3 Hi Nemo1, I dont have that {if} check earlier so I placed it now. Looks like the warning kind of thing got removed. Thank you very much. PrestaFanBoy Link to comment Share on other sites More sharing options...
Recommended Posts