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

Can't find or install languages (with PDO driver in MySQL 5.6.6+) #9457

Closed
andrepereiradasilva opened this issue Mar 17, 2016 · 5 comments
Closed

Comments

@andrepereiradasilva
Copy link
Contributor

andrepereiradasilva commented Mar 17, 2016

Steps to reproduce the issue

This is similar issue as the one solved in #9380 and to the issue described in #9455.

Find languages

  1. Use latest staging or RC4 with a MySql server 5.6.6+
  2. Set the database driver as "PDO (MySQL)" in global configuration.
  3. Go to "Extensions" -> "Install languages".
  4. Click "Find Languages".

Install language

  1. Use latest staging or RC4 with a MySql server 5.6.6+
  2. Set the database driver as "PDO (MySQL)" in global configuration.
  3. Go to "Extensions" -> "Install languages".
  4. Select a language and install it.
Note

If you don't have MySql 5.6.6+ you can emulate the error by setting the sql_mode in pdomydriver file. For that, add, after this line https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver/pdomysql.php#L155 the following code:

$this->connection->query("SET @@SESSION.sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION';");

Expected result

Languages found / Language installed.

Actual result

Doesn't work:
image

image

System information (as much as possible)

Latest staging / RC 4.

@zero-24
Copy link
Member

zero-24 commented Mar 17, 2016

I guess we need to add that field here with default values:
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/installer/adapter/language.php#L286

I guess we need similiar fixes to the other install adapters.

@jppcel
Copy link
Contributor

jppcel commented Mar 18, 2016

I guess the problem is with the table '_updates'.

I have modified the date atribute on database to can receive null values and the problem about the list of languages is solved, but i think the problem must be solved of other form...


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9457.

@wilsonge
Copy link
Contributor

Temporary fix has been to force strict mode off (to match mysql and mysqli drivers). But I want this issue to remain open so we can implement the "correct" fix one day

@andrepereiradasilva
Copy link
Contributor Author

ok i made a PR for this install languages problems so i will close this.
Any other problems with "PDO (MySQL)" in strict mode shoudl have an issue.

@andrepereiradasilva
Copy link
Contributor Author

PR is #11763 BTW 😄

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

No branches or pull requests

5 participants