Error in Module.php
Closed this issue · 3 comments
Line 13 in CSVImport/Module.php is:
require_once __DIR__ . '/vendor/autoload.php';
BUT /vendor is not a subdir of /CSVImport it is at the base of the Omeka S installed instance so the path to autoload.php fails
For example is my install is at:
/home/my_username/public_html
then the correct path is:
/home/my_username/public_html/vendor/autoload.php
BUT using the dir magic constant as above will resolve to:
/home/my_username/public_html/Modules/CSVImport/vendor/autoload.php
which does not exist.
Installing the Module fails and an HTTP Error 500 is returned whenever you try to access the Omefka S instance.
I guess you're using a Git checkout? The develop branch is in-progress and hasn't been released.
If that's what you want to use anyway, you'll see in the current version of the README that you need to run composer install
(or ../../build/composer.phar install
) in the CSVImport folder to install dependencies for the module if you're using it from source. This will create the vendor folder.
When it's actually released the dependencies will be pre-installed, like they are for S itself.
There's now a prepackaged release (version 2.0.0): using that you don't need to fool with Composer.