Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Nicolas

Can’t save column settings when enabling acp/storage/file/directory filder

Hi AdminColumnsPro Support!

AC Pro – Version 3.0.3

When adding the acp/storage/file/directory filter, I cannot save the settings of e.g. “posts” or “pages” anymore.

In the functions.php, I am using like suggested:

add_filter( ‘acp/storage/file/directory’, function() {
// Use a writable path, directory will be created for you
return get_stylesheet_directory() . ‘/acp-settings’;
} );

When editing e.g. the columns for pages, the following message is shown: “The columns for pages are read only and can therefore not be edited.”

What’s wrong and how can I make the columns writable?

When using the “acp/storage/file/directory/writable” filter, no php files are stored anymore…

Thanks for your support & kind regards!

1 year, 6 months ago
Stefan van den Dungen Gronovius
Developer

When you swap from Database storage to PHP storage, the database repositories will become locked.
This is because the hook you’re using is really meant to completely swap the storage.
You can choose to migrate all your database settings to the file repository if you like by using this hook:

https://docs.admincolumns.com/article/58-how-to-setup-local-storage#migrate

Or if you like to use DB storage along PHP storage, you can follow the more advanced setup to only store specific list screen/sets to PHP.

1 year, 6 months ago
Nicolas

Great!

When adding the acp/storage/file/directory/migrate filter once, it’s working.

Thank you!

1 year, 6 months ago

You must be logged in to reply to this topic.