Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Fix Version/s: None
    • Security Level: All-users
    • Labels:
      None
    • Affected version:
      1.5.6.1

      Description

      The import works, the products are added, but the php error log is filled with these errors.

      [15-Jan-2013 10:08:23] PHP Notice: Undefined variable: temp in C:\wamp\www\prestashop1531\controllers\admin\AdminImportController.php on line 647

      [15-Jan-2013 10:08:23] PHP Warning: fopen() [<a href='function.fopen'>function.fopen</a>]: Filename cannot be empty in C:\wamp\www\prestashop1531\controllers\admin\AdminImportController.php on line 647

      [15-Jan-2013 10:08:23] PHP Warning: fgetcsv() expects parameter 1 to be resource, boolean given in C:\wamp\www\prestashop1531\controllers\admin\AdminImportController.php on line 648

      [15-Jan-2013 10:08:23] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in C:\wamp\www\prestashop1531\controllers\admin\AdminImportController.php on line 649

      [15-Jan-2013 10:08:23] PHP Warning: unlink(16) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in C:\wamp\www\prestashop1531\controllers\admin\AdminImportController.php on line 650

      SERVER CONFIGURATION
      Serverinformation

      Serverinformation: Windows NT build 7601 ((null) Service Pack 1) i586

      Server-mjukvara Version: Apache/2.2.11 (Win32) PHP/5.3.0

      PHP version: 5.3.0

      minnesbegränsning: 128M

      Maxtid för körning: 30
      Databasinformation

      MySQL version: 5.1.36-community-log

      MySQL Motor: InnoDB

      Prefix för tabeller: ps_
      Lagra information

      Prestashop version: 1.5.3.1

      URL för din webbplats: http://localhost/prestashop1531/

      Tema namn som används: default
      Maila informationen

      Mail metod: Du använder PHP mail () funktion.
      Din information

      Information från dig: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

        Activity

        Hide
        Pavel Komarek added a comment -

        I have the same issue when importing CSV files - products.

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Warning: fopen() [function.fopen]: Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647

        Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648

        Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649

        Warning: unlink(1) [function.unlink]: No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650

        Show
        Pavel Komarek added a comment - I have the same issue when importing CSV files - products. Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650 Warning: fopen() [function.fopen] : Filename cannot be empty in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 647 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 648 Warning: fclose() expects parameter 1 to be resource, boolean given in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 649 Warning: unlink(1) [function.unlink] : No such file or directory in /data/web/virtuals/21616/virtual/www/domains/eshop-dresses.com/controllers/admin/AdminImportController.php on line 650
        Hide
        Pavel Komarek added a comment -

        fergot to add this message:
        [PrestaShopException]

        Property FeatureValue->value is empty
        at line 872 in file classes/ObjectModel.php

        866.
        867. $message = $this->validateField($field, $value, $id_lang);
        868. if ($message !== true)
        869.

        { 870. if ($die) 871. throw new PrestaShopException($message); 872. return $error_return ? $message : false; 873. }

        874. }
        875. }
        876.

        ObjectModelCore->validateFieldsLang - [line 305 - classes/ObjectModel.php] - [0 Argument]
        ObjectModelCore->getFieldsLang - [line 489 - classes/ObjectModel.php] - [0 Argument]
        ObjectModelCore->add - [line 163 - classes/FeatureValue.php] - [2 Arguments]

        Argument [0]
        1
        Argument [1]

        FeatureValueCore->add - [line 154 - classes/FeatureValue.php] - [0 Argument]
        FeatureValueCore::addFeatureValueImport - [line 1449 - controllers/admin/AdminImportController.php] - [2 Arguments]
        AdminImportControllerCore->productImport - [line 2697 - controllers/admin/AdminImportController.php] - [0 Argument]
        AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
        ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
        DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument]

        Show
        Pavel Komarek added a comment - fergot to add this message: [PrestaShopException] Property FeatureValue->value is empty at line 872 in file classes/ObjectModel.php 866. 867. $message = $this->validateField($field, $value, $id_lang); 868. if ($message !== true) 869. { 870. if ($die) 871. throw new PrestaShopException($message); 872. return $error_return ? $message : false; 873. } 874. } 875. } 876. ObjectModelCore->validateFieldsLang - [line 305 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 489 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 163 - classes/FeatureValue.php] - [2 Arguments] Argument [0] 1 Argument [1] FeatureValueCore->add - [line 154 - classes/FeatureValue.php] - [0 Argument] FeatureValueCore::addFeatureValueImport - [line 1449 - controllers/admin/AdminImportController.php] - [2 Arguments] AdminImportControllerCore->productImport - [line 2697 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument]
        Hide
        Gregory Roussac added a comment - - edited

        Hi Ruilong, Pavel,

        Thank you for your report.
        These warnings have been fixed on the development version (on GitHub).

        https://github.com/PrestaShop/PrestaShop/commit/84005fea267ac8fa73d79df391b65e94a4c1e59c

        Best regards

        Show
        Gregory Roussac added a comment - - edited Hi Ruilong, Pavel, Thank you for your report. These warnings have been fixed on the development version (on GitHub). https://github.com/PrestaShop/PrestaShop/commit/84005fea267ac8fa73d79df391b65e94a4c1e59c Best regards

          People

          • Assignee:
            Gregory Roussac
            Reporter:
            Ruilong
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: