ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Trekkie101 on April 09, 2014, 05:43:08 pm

Title: Random install errors
Post by: Trekkie101 on April 09, 2014, 05:43:08 pm
A little feedback before I bug log them :P

First, MySQLi needed, could be a tad clearer for us dumber lot.


Warning: file_put_contents(/home/xj45/public_html/forum/db_last_error.php): failed to open stream: Permission denied in /home/xj45/public_html/forum/Settings.php on line 192

If we're going to need db_last_error.php it should be part of the initial permissions check on install and fixable then.

Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/home/xj45:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xj45/public_html/forum/sources/ext/PasswordHash.php on line 51

@is_readable? may be better?
Title: Re: Random install errors
Post by: Antechinus on April 09, 2014, 05:48:44 pm
Why is MySQLi needed?
Title: Re: Random install errors
Post by: emanuele on April 09, 2014, 06:38:28 pm
http://it1.php.net/manual/en/function.mysql-db-query.php

Do you see the terribly big red warning that the mysql is going to be dropped? :P
Title: Re: Random install errors
Post by: Trekkie101 on April 09, 2014, 06:40:48 pm
Meant to say though, its a very friendly install :)
Title: Re: Random install errors
Post by: emanuele on April 09, 2014, 07:01:01 pm
Oh I didn't read the first line... lol
Sorry.
Title: Re: Random install errors
Post by: Spuds on April 09, 2014, 07:03:23 pm
Quote from: Trekkie101 – A little feedback before I bug log them :P

First, MySQLi needed, could be a tad clearer for us dumber lot.
There was a similar report about this, we need to check the dependancy up front and complain more nicely.
Quote from: Trekkie101 – Warning: file_put_contents(/home/xj45/public_html/forum/db_last_error.php): failed to open stream: Permission denied in /home/xj45/public_html/forum/Settings.php on line 192

If we're going to need db_last_error.php it should be part of the initial permissions check on install and fixable then.
Maybe we should just include that empty file in the install package and be done with it.
Quote from: Trekkie101 –
Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/home/xj45:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xj45/public_html/forum/sources/ext/PasswordHash.php on line 51

@is_readable? may be better?
Probably yes
Title: Re: Random install errors
Post by: Antechinus on April 09, 2014, 07:44:44 pm
Quote from: emanuele – http://it1.php.net/manual/en/function.mysql-db-query.php

Do you see the terribly big red warning that the mysql is going to be dropped? :P
Meh. Big fuss about nothing. :P
Title: Re: Random install errors
Post by: emanuele on April 11, 2014, 07:11:36 pm
db_last_error here: https://github.com/emanuele45/Dialogo/commit/c0013d7ae65710450cf465285a9bf5414d5edfbe
phpass here: https://github.com/emanuele45/Dialogo/commit/84aa4bcf13a78652b02226aa260cf237c42cce46
Title: Re: Random install errors
Post by: Spuds on April 11, 2014, 09:44:01 pm
Thanks !
Title: Re: Random install errors
Post by: emanuele on April 12, 2014, 08:11:18 am
There is still the MySQLi thing pending.
Title: Re: Random install errors
Post by: Trekkie101 on April 12, 2014, 08:23:48 pm
Nice  :D
Title: Re: Random install errors
Post by: emanuele on June 15, 2014, 05:27:08 am
Did anyone remember if the MySQLi warning was improved?
Title: Re: Random install errors
Post by: Spuds on June 16, 2014, 07:10:22 am
Just tried it with without 'i' ...

QuoteThe installer was unable to detect database support in PHP that ElkArte can utilize. Please ask your host to ensure that PHP was compiled with the desired database, or that the proper php extension is being loaded. Currently ElkArte supports the: "%1$s" extensions

So the message still needs improvement, plus its not inserting in the supported scheme in to the string
Title: Re: Random install errors
Post by: emanuele on June 16, 2014, 07:33:41 am
hmm...
I think that this:
Code: [Select]
if (count($db_missing) === count($db))
should be:
Code: [Select]
if (count($db_missing) === count($databases))

Apparently this is enough to trigger the proper sprintf.