I'm having an issue with my upload directories. I converted an existing site to use the FocusLab config set up and everything is working fine. However I've just noticed that in the CP thumbnails are missing from all entries and on the front end new images are not being displayed.
I ftp'd into the server and in my directories I can see the images but they've all been renamed so that they are directorynamefilenam.jpg
i.e. house.jpg inside directory general is now named generalhouse.jpg.
Not sure why this is happening or how to fix it.
The relevant code from config.master.php is below
/**
* Custom upload directory paths
*
* The array keys must match the ID from exp_upload_prefs
*/
$env_config['upload_preferences'] = array(
1 => array(
'name' => 'Home Page Slideshow',
'server_path' => $images_path . '/home_slideshow',
'url' => $images_url . '/home_slideshow/'
),
2 => array(
'name' => 'Portfolio Logos',
'server_path' => $images_path . '/portfolio',
'url' => $images_url . '/portfolio/'
),
3 => array(
'name' => 'Team Photos',
'server_path' => $images_path . '/team',
'url' => $images_url . '/team/'
),
4 => array(
'name' => 'News Images',
'server_path' => $images_path . '/news',
'url' => $images_url . '/news/'
),
4 => array(
'name' => 'General',
'server_path' => $images_path . '/general',
'url' => $images_url . '/general/'
)
);
If I synchronize a directory I get the following errors:
generalColor_Block_Icon_with_i.jpg: invalid_filename
generalPetArmor-Dog.png: invalid_filename
This is error is on all images on all directories.
'server_path' => $images_path . '/home_slideshow/',