?
avatar andrepereiradasilva
andrepereiradasilva
24 Aug 2016

Steps to reproduce the issue

This is similar issue as the one solved in #9380, #9455 and #9457.

  1. Use latest staging
  2. Set the database driver as "PDO (MySQL)" in global configuration.
  3. Set "PDO (MySQL)" to strict mode (See note below)
  4. Make sure finder plugins are enabled
  5. Go to "Content" -> "Articles" and try to edit and save a content.
  6. Error. can't save.

Set "PDO (MySQL)" to strict mode

Replace this line: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver/pdomysql.php#L155
With the following code:

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

Expected result

Content saved,

Actual result

image

image

System information (as much as possible)

Latest staging.

avatar andrepereiradasilva andrepereiradasilva - open - 24 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 24 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 24 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 24 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 24 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 24 Aug 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Aug 2016

@zero-24 @alikon @waader transfered the discussion about the pdo mysql strict mode here.

Maybe we should add a comment to the hack in the driver?

Maybe a deprecated 4.0 comment?

@mbabker what do you think? The joomla framework still uses the strict mode right?

avatar mbabker
mbabker - comment - 24 Aug 2016

The statement is not executed at all in the Framework.

avatar brianteeman brianteeman - change - 24 Aug 2016
Category SQL
avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Aug 2016

The statement is not executed at all in the Framework.

AFAIK that means that in the framework you get the default value for strict mode in which mysql version you're using.

avatar mbabker
mbabker - comment - 24 Aug 2016

Yep

On Wednesday, August 24, 2016, andrepereiradasilva notifications@github.com
wrote:

The statement is not executed at all in the Framework.

AFAIK that means that in the framework you get the default value for
strict mode in which mysql version you're using.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11771 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoVNux5eZEGPjSjKMGQeuZ3J1-gO-ks5qjFKJgaJpZM4Jr6Zg
.

avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 24 Aug 2016
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status New Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Apr 2017

@andrepereiradasilva should this issue stay open?


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

avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 6 Apr 2017
avatar brianteeman brianteeman - change - 25 Apr 2017
Labels Added: ?
avatar brianteeman brianteeman - labeled - 25 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 27 May 2017
Status Closed - No Reply Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 27 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 May 2017
Status Information Required Closed - No Reply
Closed_Date 0000-00-00 00:00:00 2017-05-27 10:24:54
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 May 2017

This has been closed due to lack of response to the requests above – it can always be reopened in the future if it is updated.

Add a Comment

Login with GitHub to post a comment