ernestus2001 Posted May 9, 2013 Share Posted May 9, 2013 Hi there, while trying to import products from .csv file I receive this kind of error: ABORT: PHP cpu time limit exceeded in ToolsCore::strlen() called at [/classes/Tools.php:1130], in ToolsCore::strlen() called at [/classes/ObjectModel.php:919], in ObjectModelCore::validateField() called at [/classes/ObjectModel.php:833], in ObjectModelCore::validateFields() called at [/classes/ObjectModel.php:264], in ObjectModelCore::getFields() called at [/classes/ObjectModel.php:464], in ObjectModelCore::add() called at [/classes/Product.php:477], in ProductCore::add() called at [/controllers/admin/AdminImportController.php:1284], in AdminImportControllerCore::productImport() called at [/controllers/admin/AdminImportController.php:2697], ..., in ControllerCore::run() called at [/classes/Dispatcher.php:348], in DispatcherCore::dispatch() called at [/art/index.php:50] Any idea what might be causing this? My file is not huge, it's only 2,5k products long. Best, Pawel Link to comment Share on other sites More sharing options...
ernestus2001 Posted May 13, 2013 Author Share Posted May 13, 2013 if you'll have the same issue - split the file into several smaller files to import. in my case, the main file had 2500 products, splitting it into 500 product files helped. Link to comment Share on other sites More sharing options...
Heckelman Posted May 15, 2013 Share Posted May 15, 2013 You might drop this command in the top of the script... http://php.net/manual/en/function.set-time-limit.php Link to comment Share on other sites More sharing options...
ernestus2001 Posted May 19, 2013 Author Share Posted May 19, 2013 You might drop this command in the top of the script... http://php.net/manua...-time-limit.php Can you give me some more details, like where exactly should I put this line? I connected to my database, but all I can see are the tables... Link to comment Share on other sites More sharing options...
ernestus2001 Posted May 20, 2013 Author Share Posted May 20, 2013 Ok, so I read my service provider FAQ and basicly I had to create php.ini file from the scratch. The issue is still there, even afterch modyfing max_time I still get the timeout. How can I check if the changes I've made are working? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now