Page 1 of 1

Aimeos Shop scheduler

Posted: 23 Nov 2016, 08:57
by derJu
Hi,

I tried to export the products, when I run the scheduler the following error is displayed:

Code: Select all

Execution of task "Aimeos Shop scheduler (aimeos)" failed with the following message: Not allowed to access "controller/jobs/product/export/standard/template-header" configuration
Someone has an idea?

Best regards
derju

Re: Aimeos Shop scheduler

Posted: 23 Nov 2016, 18:05
by aimeos
Retrieving the configuration was too restrictive. Can you please try this package?
https://bintray.com/aimeos/aimeos-typo3 ... .1-dev.zip

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 08:26
by derJu
It looks better.

I am testing the import with the dem csv file from:

Code: Select all

"item code","item label","item type","item status","text type","text content","text type","text content","media url","price quantity","price value","price tax rate","attribute type","attribute code","subproduct code","product list type","property value","property type","catalog code","catalog list type"
"job_csv_test","job csv test product","default",1,"short","short description","long","long description","path/to/image.jpg",1,"10.00","20.00","import-test","size",,,"1.50","package-weight","home","promotion"
"job_csv_test2","job csv test 2. product","select",1,"short","short selection description","long","long selection description","path/to/image2.jpg",1,"10.00","20.00",,,"job_csv_test","default","1.50","package-weight",,
i got this error:

Execution of task "Aimeos Shop scheduler (aimeos)" failed with the following message: Invalid product lines in "/var/www/vhosts/demosite.de/httpdocs/typo3temp/aimeos/": 3/3

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 08:40
by derJu
i have the TypoScript of Aimeos Shop Scheduler like this:

Code: Select all

plugin.tx_aimeos {
    settings {
        controller.common.product.import.csv.separator = ,
        controller.jobs.product.import.csv {
            location =  /var/www/vhosts/demosite.de/httpdocs/typo3temp/aimeos/
      }
   }
}

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 10:06
by aimeos
You don't need "plugin.tx_aimeos.settings". This is only for frontend plugins and has no meaning in the scheduler even if we made it work because many users make that mistake.

The default container type is a Zip file. If you want to use uncompressed CSV files in a directory, you must change the container type to "Directory": https://aimeos.org/docs/Configuration/C ... ainer/type

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 10:49
by derJu
Thank you for the fast Support!

I change the Typoscript in the scheduler:

Code: Select all

        controller.jobs.product.import.csv.container.type = Directory
        controller.common.product.import.csv.separator = ,

        controller.jobs.product.import.csv {
            location =  /var/www/vhosts/demo.de/httpdocs/typo3temp/aimeos/
      }
The error is the same like befor:
Execution of task "Aimeos Shop scheduler (aimeos)" failed with the following message: Invalid product lines in "/var/www/vhosts/demo.de/httpdocs/typo3temp/aimeos/": 3/3

In the Log file from Typo3 i find this log:
Core: Error handler (BE): PHP Runtime Deprecation Notice: call_user_func_array() expects parameter 1 to be a valid callback, non-static method BK2K\BootstrapPackage\UserFunc\Typo3VersionCondition::match() should not be called statically in /var/www/vhosts/demo.de/httpdocs/typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php line 428

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 10:52
by aimeos
Can you try

Code: Select all

        controller.common.product.import.csv.separator = ,
        controller.jobs.product.import.csv {
            location =  /var/www/vhosts/demo.de/httpdocs/typo3temp/aimeos/
            container.type = Directory
      }

Re: Aimeos Shop scheduler

Posted: 25 Nov 2016, 10:57
by derJu
nothing has changed

Re: Aimeos Shop scheduler

Posted: 29 Nov 2016, 18:55
by aimeos
There's most probably an error in your CSV mapping/file combination. Are there any other hints in the logs?