So when trying to use the one-click updater, I get the error message Cannot get contents of path, the path is invalid: /pathtomysite/themes/ee
The EE install is on multisite manager, when I try to upgrade the main site, the path that is “missing” is one of the other sites, if I try to upgrade any of the others, it’s the main site. The paths are definitely correct, when I copy & paste them into my ftp client it shows the directory fine - I’ve tried re-uploading the themes/ee folders and setting permissions to 777 temporarily to see if that solved the problem, no luck.
Anyone run into something similar or know what the solution might be?
I’ve upgraded MSM sites without an issue. Any chance you’re using relative paths?
I took a look at the code and I’m pretty sure what’s failing is this:
if ( ! $this->exists($path))
{
throw new FilesystemException('Cannot get contents of path, the path is invalid: '.$path);
}
So it’s checking if file_exists.
The way it’s getting the paths is:
// Is there a config file override for the theme path? Use that instead
// and hope that the other sites' paths aren't conditionally set in the
// file because we'll only get the one
if ($this->config->get('theme_folder_path') !== NULL)
{
return [$this->config->get('theme_folder_path')];
}
$theme_paths = [];
foreach ($this->sites as $site)
{
$theme_paths[] = $site->site_system_preferences->theme_folder_path;
}
return array_unique($theme_paths);
}
The way it breaks, I don’t think it’s due to having a config override, though obviously that’s a possible issue as well.
Do you have a separate theme folder for each site or just the one? If just the one, I bet putting in a config override with that path would work. But it sounds like you have separate.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.