Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't insert Database #4

Open
kunduzyazilim opened this issue Sep 23, 2018 · 3 comments
Open

Doesn't insert Database #4

kunduzyazilim opened this issue Sep 23, 2018 · 3 comments

Comments

@kunduzyazilim
Copy link

Hello,
I added codes like that:

$config['backends'][] = array(
    'name'         => 'database_backend',
    'adapter'      => 'database',
    'dsn'          => 'mysql:host=localhost;dbname=kansor',
    'tableName'    => 'files',
    'username'     => 'root',
    'password'     => ''
);

$config['resourceTypes'][] = array(
    'name'              => 'Database Files',
    'backend'           => 'database_backend'
);

$config['plugins'] = ['DatabaseAdapter'];

but its showing "Invalid connector plugin: DatabaseAdapter" error and if i remove $config['plugins'] = ['DatabaseAdapter']; code its not insert database.

@kunduzyazilim
Copy link
Author

i change folder chmod and not show "Invalid connector plugin: DatabaseAdapter" error. but i doesn't insert database and add any files in my directory.

@zaak
Copy link
Member

zaak commented Sep 24, 2018

Hi @kunduzyazilim! Your configuration seems ok, could you please make sure the directory structure in ckfinder/plugins looks as follows?

ckfinder
└── plugins
    └── DatabaseAdapter
        ├── DatabaseAdapter.php
        └── PDOAdapter.php

Please also enable the debug mode and error reporting, so we can see the details of this error.

@kunduzyazilim
Copy link
Author

kunduzyazilim commented Sep 24, 2018

Hi @zaak,
return errors in log file like that:
error.log
could you say what is my mistake?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants