Invalid PHP path on XAMPP

Hi Rossant,

After days and days of searching I’ve finally found a solution for Xammp/Localhost/CSVImport!
CSVImport et php-cli

Add this line to the ‘service_manager’ section of local.config.php:
‘Omeka\Job\DispatchStrategy’ => ‘Omeka\Job\DispatchStrategy\Synchronous’,

I tried it with a small csv test file and it worked, then I tried it with a CSV with over 4,000 items. It was working but stopped at a timeout, so I had to edit my php.ini and change the “max_execution_time”.

Then I tried to add media and a thumbnail to one of the items I imported. Crashed again but I found this solution: Thumbnails are not generated

changed my local.config.php file settings from:
‘Omeka\File\Thumbnailer’ => ‘Omeka\File\Thumbnailer\ImageMagick’,
to
‘Omeka\File\Thumbnailer’ => ‘Omeka\File\Thumbnailer\Imagick’,

Have fun!
Busman

PS: Here is my local.config:

<?php
return [
    'logger' => [
        'log' => true,
        'priority' => \Zend\Log\Logger::INFO,
    ],
    'http_client' => [
        'sslcapath' => null,
        'sslcafile' => null,
    ],
    'cli' => [
        'phpcli_path' => null,
    ],
    'thumbnails' => [
        'types' => [
            'large' => ['constraint' => 800],
            'medium' => ['constraint' => 200],
            'square' => ['constraint' => 200],
        ],
        'thumbnailer_options' => [
            'imagemagick_dir' => null,
        ],
    ],
    'translator' => [
        'locale' => 'en_US',
    ],
    'service_manager' => [
        'aliases' => [
            'Omeka\File\Store' => 'Omeka\File\Store\Local',
            'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\Imagick',
	    'Omeka\Job\DispatchStrategy' => 'Omeka\Job\DispatchStrategy\Synchronous',
        ],
    ],
];

and here is the test data (save as a csv file):

Dublin Core:Title, Dublin Core:Creator, Dublin Core:Description, tags, Item Type Metadata:URL
"Walden", "Henry David Thoreau", "A man seeks simplicity.", "book, classic, New England", "http://upload.wikimedia.org/wikipedia/commons/2/25/Walden_Thoreau.jpg, http://upload.wikimedia.org/wikipedia/commons/b/ba/Henry_David_Thoreau.jpg"
"The Count of Monte Cristo", "Alexandre Dumas", "A man seeks revenge.", "book, classic, France", "http://upload.wikimedia.org/wikipedia/commons/c/c3/Edmond_Dant%C3%A8s.JPG"
"Narrative of the Life of Frederick Douglass", "Frederick Douglass", "A man seeks freedom.", "book, classic, Maryland", "http://upload.wikimedia.org/wikipedia/commons/f/f5/Sketchofdouglass.jpg"