Jump to content
piotrek.btr

CSV not working why ?

Recommended Posts

Hello i have a problem


When i click in menu in CSV link a get Blank Page i cant open CSV page why ? Thank you for any ideas 


Share this post


Link to post
Share on other sites

i have this problem

Parse error: syntax error, unexpected ''active'' (T_CONSTANT_ENCAPSED_STRING), expecting function (T_FUNCTION) in override/controllers/admin/AdminImportController.phpon line 13

Share this post


Link to post
Share on other sites

Which version of prestashop?

Is this a new problem or had it never worked?

If a new problem have you jsut installed a new module?

 

The error message suggests an override, so that suggests a faulty module somewhere

Share this post


Link to post
Share on other sites

1.6.1.11 version

 

i build my shop so when i started with prestashop csv was ok but now i click in menu on csv and i get blank page what i can do this ? thank you

Share this post


Link to post
Share on other sites

i never use csv but now i would like to use this so i building my shop 2 months and i installed few modules but all work goods when i started.

Share this post


Link to post
Share on other sites

The only think I can suggest is to disable all the third party modules one at a time until you find out the one that is causing the problem

Share this post


Link to post
Share on other sites

I can reinstall CSV in prestashop ? CSV not working when i choose this option i get blank page. Any solutions ? Thank you

Share this post


Link to post
Share on other sites

I told you the only method that is possible

 

Something is conflicting. A module is conflicting with the CSV import. All you can do is work through the modules one at a time until you find the culprit. Start with the most recently installed modules.

 

 

This: override/controllers/admin/AdminImportController.php

 

Tells you that something has overridden the stadard file. You could try to look at that file and work out which module installed the override, or you can disbale the modules as I already explained

Share this post


Link to post
Share on other sites

Hi

I uninstaled a few modules but this not helpful. I disable all modules which i installed and this not helpful. So what can i do ? Thank you for answers !

Share this post


Link to post
Share on other sites

Have you looked at this file?

 

override/controllers/admin/AdminImportController.php

 

perhaps you can upload the contents of the file here, it may say which module is the culprit

Share this post


Link to post
Share on other sites

<?php

@ini_set('max_execution_time', 0);
 
define('MAX_LINE_SIZE', 0);
 
define('UNFRIENDLY_ERROR', false);
 
define('MAX_COLUMNS', 6);
 
@ini_set('auto_detect_line_endings', '1');
class AdminImportController extends AdminImportControllerCore
{
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        
        'price_tex' => array('AdminImportController', 'getPrice'),
        
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean'),
    );
}
 
 
Thank you ! this is copy my file 

Share this post


Link to post
Share on other sites

This is all content of this file?

 

Normally it should looks like:

 

<?php
@ini_set('max_execution_time', 0);
 
define('MAX_LINE_SIZE', 0);
 
define('UNFRIENDLY_ERROR', false);
 
define('MAX_COLUMNS', 6);
 
@ini_set('auto_detect_line_endings', '1');
class AdminImportController extends AdminImportControllerCore
{
    public static $validators = array(
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        
        'price_tex' => array('AdminImportController', 'getPrice'),
        
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean'),
    );
}

Share this post


Link to post
Share on other sites

Thank you very much !!!!!! When i paste this code my csv work !!!!! Thank you now i check that this work when i send some file :)

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More