PiggyArchive / PiggyAuth

Safe & feature-rich auth plugin. Project has been discontinued
Apache License 2.0
33 stars 8 forks source link

Database #25

Closed ghost closed 7 years ago

ghost commented 7 years ago

How to disable database :/? I am not using it but if I try to load plugin without database it shows this error:

[Server thread/CRITICAL]: Exception: "Unable to open database: unable to open database file" (EXCEPTION) in "/PiggyAuth-master/src/PiggyAuth/Databases/SQLite3" at line 15

Please, I want to use this auth. It looks really great!

Thunder33345 commented 7 years ago

but it needs a database to store player data?

ghost commented 7 years ago

Cannot be it stored in config?

ghost commented 7 years ago

So, how can I setup SQLite3 database?

Thunder33345 commented 7 years ago

not a maintainer, but nope not for this plugin, i think it just creates it itself maybe the plugin dont have permission to create the players.sql not very sure tho

DaPigGuy commented 7 years ago

Do you have sqlite3 files in your bin folder?

Aericio commented 7 years ago

if you are in windows, download this and drop it in bin/php

ghost commented 7 years ago

Okay, I will test. Thank you!

DaPigGuy commented 7 years ago

Is it working?

ghost commented 7 years ago

No :/. I will create MySQL database and host it on. I will never more change Auth plugin. I think this is perfect.

DaPigGuy commented 7 years ago

You getting any new errors with SQLite3?

ghost commented 7 years ago

Yes. this. [Server thread/CRITICAL]: Exception: "Unable to open database: unable to open database file" (EXCEPTION) in "/PiggyAuth-master/src/PiggyAuth/Databases/SQLite3" at line 15

DaPigGuy commented 7 years ago

Can you show me your php.ini file & php_sqlite3.dll in your bin folder?

ghost commented 7 years ago

Yes. php_sqlite3.dll - https://www.opendll.com/index.php?file-download=php_sqlite3.dll&arch=32bit&version=5.4.3.0&dsc=SQLite3 php.ini - wait, I must upload it on cloud.

ghost commented 7 years ago

; Compiled by SalmonDE zend.enable_gc = On max_execution_time = 0 memory_limit = 256M error_reporting = -1 display_errors = stderr display_startup_errors = On register_argc_argv = On default_charset = "UTF-8" include_path = ".;.\ext" extension_dir = "./" enable_dl = On allow_url_fopen = On extension=php_weakref.dll extension=php_curl.dll extension=php_mysqli.dll extension=php_sqlite3.dll extension=php_sockets.dll extension=php_mbstring.dll extension=php_yaml.dll extension=php_pthreads.dll extension=php_openssl.dll extension=php_com_dotnet.dll extension=php_gd2.dll zend_extension=php_opcache.dll cli_server.color = On phar.readonly = Off phar.require_hash = On zend.assertions=-1 opcache.enable=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.save_comments=1 opcache.load_comments=1 opcache.fast_shutdown=0 opcache.optimization_level=0xffffffff date.timezone=UTC

DaPigGuy commented 7 years ago

It should work fine. Does your server have permission to edit files?

ghost commented 7 years ago

I think yes. If I execute any command and it edits config (for example)?

ghost commented 7 years ago

I download latest update and try it.

ghost commented 7 years ago

I have this error with latest update. [17:20:34] [Server thread/INFO]: Enabling PiggyAuth v2.0.1 [17:20:34] [Server thread/CRITICAL]: ClassNotFoundException: "Class SQLite3 not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

DaPigGuy commented 7 years ago

... What did you do?

ghost commented 7 years ago

Nothing. I only deleted old version. downloaded version from GitHub (the newest) and pasted.

DaPigGuy commented 7 years ago

I think you did something wrong. Try again, I'm on the latest version and no problems.

ghost commented 7 years ago

I have SQLite3 class in src/PiggyAuth/Databases.

DaPigGuy commented 7 years ago

Try again...

ghost commented 7 years ago

I think the plugin did not create SQLite3 file with players data.

DaPigGuy commented 7 years ago

It should, check PiggyAuth folder for players.db

ghost commented 7 years ago

Okay.

ghost commented 7 years ago

I have in PiggyAuth folder only config.yml.

ghost commented 7 years ago

I try it again.

ghost commented 7 years ago

[Server thread/CRITICAL]: Exception: "Unable to open database: unable to open database file" (EXCEPTION) in "/PiggyAuth-master/src/PiggyAuth/Databases/SQLite3" at line 15

What can I do with it? I am running my test server on Windows 32-bit. I have the latest version of binaries and Genisys server sofware.

DaPigGuy commented 7 years ago

Try out FactionsPro & see if it creates the database. It uses SQLite3 too. https://github.com/Awzaw/FactionsPro/blob/master/src/FactionsPro/FactionMain.php

ghost commented 7 years ago

Yes.

DaPigGuy commented 7 years ago

It creates a database?

ghost commented 7 years ago

No. I have the same error.

DaPigGuy commented 7 years ago

It's your problem not the plugins.

ghost commented 7 years ago

I will test it on hosting. Wait please.

ghost commented 7 years ago

It is working on hosting server.

DaPigGuy commented 7 years ago

It is your problem them.

ghost commented 7 years ago

Yes. Thank you for everything!