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

PHP mySQL Error Called - Trouble Installing #105

Open
dziegler991 opened this issue Jul 18, 2018 · 4 comments
Open

PHP mySQL Error Called - Trouble Installing #105

dziegler991 opened this issue Jul 18, 2018 · 4 comments

Comments

@dziegler991
Copy link

Hi there!

I am having issues simply initializing xataface and installing it through the installer. I am cloning xataface from the master branch. Changing nothing else, other than installer.disabled to .enabled, I receive this error in my php error.log:

PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/xata/xataface-2.1.3/xf/db/drivers/mysql.php:2\nStack trace:\n#0 /var/www/html/xata/xataface-2.1.3/installer.php(533): xf_db_connect('localhost', 'root', 'password')\n#1 /var/www/html/xata/xataface-2.1.3/installer.php(548): db()\n#2 {main}\n thrown in /var/www/html/xata/xataface-2.1.3/xf/db/drivers/mysql.php on line 2

*Note: I receive the same error when I change localhost to my DB in installer.php

PHP version: PHP 7.2.7-2+020180714182401.1+jessie1.gbp3fcba8 (cli) (built: Jul 15 2018 13:57:20) ( NTS )
Apache version: Apache/2.4.10 (Debian)

@amrcode1
Copy link

amrcode1 commented Jul 18, 2018

you edit the conf.ini file to look like this?

[_database]
host=localhost
name=DB
user=root
password=
driver=mysqli

see driver item amd user/password

mysql_connect() is not supported by php 7.0.0+ use mysqli_connect()

see http://php.net/manual/es/function.mysql-connect.php

@dziegler991
Copy link
Author

This error is being thrown before I even have a conf.ini file. As I understood it, I should be able to run the installer.php prior to the conf.ini file being created. The installer.php page visually HTTP 500's and the error_log spits out what I posted above.

@shannah
Copy link
Owner

shannah commented Jul 18, 2018

The installer is going to be replaced soon by something better. It doesn't support mysqli.

In the mean time, you should do a manual install

@dziegler991
Copy link
Author

Great, got it working. Thanks guys. Out of curiosity (and full disclosure, I haven't looked at the documentation so I apologize) how customizable is the UI?

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

3 participants