The content directory type 'sync' does not exist

Created on 3 May 2022, over 2 years ago
Updated 6 February 2023, almost 2 years ago

Problem/Motivation

The content directory type 'sync' does not exist

I don't know what this error means. Where is this set? What do I need to set? I don't see it in the README.

I tried a number of combinations in settings.php, like:

$content_directories['sync'] = '../config/content/sync';

🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

🇺🇸United States kevinquillen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States jnicola

    They really need this in the readme...

    You need to add the following to your sites settings file:

    global $content_directories;
    $content_directories['sync'] = 'whatever-base-path-you-have/content_sync';

  • 🇺🇸United States kevinquillen

    I had done that (Im assuming from OP), but maybe I did not specify global.

  • Status changed to Needs review almost 2 years ago
  • 🇮🇳India prashant.c Dharamshala

    Create content directory and sync directory inside it, in your drupal installation root folder.

    Add the following lines to your settings.php file

    global $content_directories;
    $content_directories['sync'] = $app_root.'/../content/sync';
    

    This should fix your problem

  • Status changed to Active almost 2 years ago
  • 🇺🇸United States kevinquillen

    Setting back to active, there is nothing to review unless changes (code or docs) are proposed.

  • In the latest version of this module config in settings.php should look like this:

    $settings['content_sync']['sync'] = '../content/sync';

  • Status changed to Closed: works as designed 3 months ago
Production build 0.71.5 2024