Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By fatimadrupal8 on
Hello,
Please i have a have a probleme with module content syncro , after i have installed it, this error was appeared
"The content directory type 'sync' does not exist"
I already have variable config_directories in seetings.php, and i attribute rules to this folder 777
$config_directories = array();
$config_directories['sync'] = 'sites/sync';
Thank you in advance
Comments
Check whether SELinux is active
When normal filesystem security doesn't appear to work most of the time SELinux is in effect. That means you need to do a little more to get what you want.
Thank's for your reply, but i
Thank's for your reply, but i don't understand really what you mean
You need to find out whether SELinux is in effect.
SELinux is an addition to filesystem security.
The message you receive contradicts the information you provided. So, with a 777 folder configured you shouldn't receive that message!
With SELinux in effect, normal file system security is overruled.
https://www.drupal.org
https://www.drupal.org/project/content_sync/issues/2994675#comment-12897528
Don't you love it when an error message tells you a directory doesn't exist but doesn't tell you where it's supposed to exist?
This issue is not about the directory at all.
Checked the message in the module. It actually says there is no $content_directories['sync'] set to a directory. OP probably forgot to use global $content_directories in settings.php.
So, nothing to do with directory in filesystem or security. Just not following instructions!
See the code:
setting this in "sites/default/settings.php" still fails
Am I missing something?
Actually, managed to back into it...