bepped Posted September 18, 2012 Share Posted September 18, 2012 Still in trouble with importerosc to migrate from oscommerce to Prestashop, i was looking into the code of the involved files. In shopimporter.php i got this, a select with id "nbr_import": <label>'.$this->l('Import for every').' : </label> <div class="margin-form"> <select name="nbr_import" id="nbr_import"> <option value="10">10</option> <option value="50">50</option> <option value="100" selected="selected">100</option> <option value="200">200</option> </select> <p>'.$this->l('Select the number of occurrences for each query to import').'</p> BUT then in importerosc.php there's a reference to "nrb_import" after LIMIT, not "nbr_import" public function getProducts($limit = 0, $nrb_import = 100){ $multiLangFields = array('name', 'link_rewrite', 'description'); $keyLanguage = 'id_lang'; $identifier = 'id_product'; $products = $this->ExecuteS(' SELECT p.`products_id` as id_product, p.`products_quantity` as quantity, p.`products_model` as reference, p.`products_price` as price, p.`products_weight` as weight, IFNULL(STRCMP(p.`products_status`, \'\') , 0 ) as active, p.`manufacturers_id` as id_manufacturer, pd.language_id as id_lang, pd.products_name as name, pd.products_description as description, CONCAT(\''.pSQL(Tools::getProtocol()).pSQL(Tools::getValue('shop_url')).'\/images/\',p.`products_image`) as images, (SELECT ptc.categories_id FROM `'.bqSQL($this->prefix).'products_to_categories` ptc WHERE ptc.`products_id` = p.`products_id` LIMIT 1) as id_category_default, p.`products_date_added` as date_add FROM `'.bqSQL($this->prefix).'products` p LEFT JOIN `'.bqSQL($this->prefix).'products_description` pd ON (p.products_id = pd.products_id) WHERE pd.products_name IS NOT NULL AND pd.language_id IS NOT NULL ORDER BY p.`products_id` LIMIT '.(int)($limit).' , '.(int)$nrb_import); So, was it a typo? nrb instead of nbr? And by the way, do you think that increasing that to 2000 could cause the system to run out of memory? i have to import around 2000 products Link to comment Share on other sites More sharing options...
bepped Posted September 18, 2012 Author Share Posted September 18, 2012 (edited) Now i tried increase the nbr_import value, adding another option to the menu. Here is the error i got, very strange: TECHNICAL ERROR Details: Warning : imagecreatefromjpeg() [ function.imagecreatefromjpeg ]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in (my folder)/images.inc.php on line 305 and also: Warning : imagecopyresampled(): supplied argument is not a valid Image resource (my folder)/images.inc.php on line 253 Edited September 18, 2012 by bepped (see edit history) Link to comment Share on other sites More sharing options...
bepped Posted September 19, 2012 Author Share Posted September 19, 2012 Still stuck there, opened a bug issue Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 19, 2013 Share Posted September 19, 2013 Still stuck there, opened a bug issue Hi! actually we longer support those modules. You can always contact us at 18889476543 and speak with somebody from our team to discuss migration options and solutions. We are always happy to help. I also suggest this migration service here Let me know if you have any questions. Thank you! 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