Skip to main content
Install: Language Directory Not Found Started by Xarcell · · Read 23796 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Install: Language Directory Not Found

I downloaded the zip from Github, and trying to install locally so I can check it out. I am considering contributing to the project. I am unable to install because I get this error:

QuoteA critical error has occurred.

This installer was unable to find the installer's language file or files. They should be found under:

/elkarte/install/themes/default/languages

When I visit: http://127.0.0.1:8080/elkarte/install/install.php

Re: Install: Language Directory Not Found

Reply #1

You don't have to run the install script from /elkarte/install.
What you have to do is pretty much what you do when preparing an install package for SMF: copy install.php, all the install_1.0_*.sql, Settings.php and Settings_bak.php to the root of your forum and run the installer from there. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: Install: Language Directory Not Found

Reply #2

When I copy the files over and visit: http://127.0.0.1:8080/elkarte/install.php

It says: "We've completed some initial tests on your server and everything appears to be in order. Simply click the "Continue" button below to get started."

I click continue.

It jumps to step 3, but URL says "http://127.0.0.1:8080/elkarte/install.php?step=0".

It says: "This is the name of the file in which to store the ELKARTE data. We recommend you use the randomly generated name for this and set the path of this file to be outside of the public area of your webserver."

So on a local install, I'm not sure where to put it. I leave what is suggested, and click "continue".

The URL then jumps to: "http://127.0.0.1:8080/elkarte/install.php?step=2"

Then I get this error at the top: "Warning: mysql_error() expects parameter 1 to be resource, null given in C:\Program Files (x86)\EasyPHP-12.1\www\elkarte\sources\database\Db-mysql.class.php on line 499"

And this error on the page: "Cannot connect to the database server with the supplied data."

I cannot get past this step.


Re: Install: Language Directory Not Found

Reply #3

Quote from: Xarcell – It says: "This is the name of the file in which to store the ELKARTE data. We recommend you use the randomly generated name for this and set the path of this file to be outside of the public area of your webserver."
That is the SQLite screen...

Quote from: Xarcell – Then I get this error at the top: "Warning: mysql_error() expects parameter 1 to be resource, null given in C:\Program Files (x86)\EasyPHP-12.1\www\elkarte\sources\database\Db-mysql.class.php on line 499"
And according to the previous message this is weird...

Norv, is SQLite
Bugs creator.
Features destroyer.
Template killer.

Re: Install: Language Directory Not Found

Reply #4

https://github.com/elkarte/Elkarte/blob/master/install/install.php#L2336
It doesn't initialize correctly the database name/type (it's empty, so it thinks it's file-based). Since it skipped step 2. (just posting on the run)
The best moment for testing your PR is right after you merge it. Can't miss with that one.

Re: Install: Language Directory Not Found

Reply #5

I'm running MySQL, not S
Quote from: emanuele –
Quote from: Xarcell – It says: "This is the name of the file in which to store the ELKARTE data. We recommend you use the randomly generated name for this and set the path of this file to be outside of the public area of your webserver."
That is the SQLite screen...

Quote from: Xarcell – Then I get this error at the top: "Warning: mysql_error() expects parameter 1 to be resource, null given in C:\Program Files (x86)\EasyPHP-12.1\www\elkarte\sources\database\Db-mysql.class.php on line 499"
And according to the previous message this is weird...

Norv, is SQLite

I'm not running SQLite, just an FYI. I'm running EasyPHP 12.1, with Apache 2.4.1, MYSQL 5.5.27, and PHP 5.4.6.

Thanks.

Re: Install: Language Directory Not Found

Reply #6

Thank you, no worries, I saw that. Yes, the install script is clumsy when it doesn't have a clue what your db is (and it just skipped that step), and it suddenly hopes it's SQLite.
I'm not sure why it skipped through steps like that, though. I don't seem to replicate the issue.
Could you please tell, have you installed this setup with EasyPHP recently or do you have on it, other MySQL/PHP running? Is it working properly (it has MySQL support in PHP)? Just a thought.
Can you confirm, install.php, install_1-0_mysql.php, are both in the forum directory?
Do you have mod_security enabled?
The best moment for testing your PR is right after you merge it. Can't miss with that one.

Re: Install: Language Directory Not Found

Reply #7

Quote from: TestMonkey – Thank you, no worries, I saw that. Yes, the install script is clumsy when it doesn't have a clue what your db is (and it just skipped that step), and it suddenly hopes it's SQLite.
I'm not sure why it skipped through steps like that, though. I don't seem to replicate the issue.
Could you please tell, have you installed this setup with EasyPHP recently or do you have on it, other MySQL/PHP running? Is it working properly (it has MySQL support in PHP)? Just a thought.
Can you confirm, install.php, install_1-0_mysql.php, are both in the forum directory?
Do you have mod_security enabled?

Yes, I have both the files in the forum directory.

No, I do not have mod_security installed. I basically have installed EASYPHP and that's it. I haven't changed any settings for it, it's just the default installation.

Re: Install: Language Directory Not Found

Reply #8

I'm able to reproduce this, a quick'n dirty hack  :D
Code: (install.php) [Select]
if (count($incontext['supported_databases']) < 2)
replace with:
Code: [Select]
if (count($incontext['supported_databases']) < 0)
Sorry, I'm busy right now, can't post a valid fix..
Thorsten "TE" Eurich
------------------------

Re: Install: Language Directory Not Found

Reply #9

The bug was introduced with removing sqlite from the installer:
Code: [Select]
	if (!isset($incontext['supported_databases']['sqlite']))
echo '
var showAll = true;';

!isset: var showAll needs to be true for mysql and pgsql but not for sqlite
The current version from the repo sets var ShowAll to false if  there's only one database type supported;
Code: [Select]
	if (count($incontext['supported_databases']) < 2)
echo '
var showAll = false';

With the removal of sqlite from the core / installer it might be an option to simply remove the toggleDB() and just leave the checks for pgsql..
Norv?
Thorsten "TE" Eurich
------------------------

Re: Install: Language Directory Not Found

Reply #10

The simplest solution that works for both is better IMHO. Sounds good to me.
The best moment for testing your PR is right after you merge it. Can't miss with that one.

Re: Install: Language Directory Not Found

Reply #11

Xarcell, this error was fixed with PR #471, feel free to download the (updated) zip from Github  :)  There are several other fixes included, I'd recommend to replace all files with the new ones from the zip.
Thorsten "TE" Eurich
------------------------

 

Re: Install: Language Directory Not Found

Reply #12

Thanks.