? Success
Pull Request for # 11228

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
22 Jul 2016

Pull Request for Issue #11228.

Summary of Changes

When you make a new install of Joomla without sample data, i.e., selecting None (Required for basic native multilingual site creation) in the sample data install step, joomla will install the joomla.sql without changing the ids of the created_user_id in the table records.

One example is the #__categories table "Uncategorised" categories. The user id 42 ( https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L241-L247 ) is hardcoded as you can see from next picture.

image

This is a bug by itself (exists on 3.5.1 too), but in latest staging this leads to a warning when trying to edit those categories because the user id doesn't exist.

image

This user_id needs to be updated to the random generated super user id.
This PR solves this issue.

Testing Instructions

  1. Use latest staging and make a new install with None (Required for basic native multilingual site creation) in the sample data install step
  2. Check the categories table is created with user id 42
  3. Check when you edit any "Uncategorised" category you have the warning above.
  4. Now download https://github.com/andrepereiradasilva/joomla-cms/archive/update-ids.zip (staging + this PR)
  5. Repeat step 1 to 3 check is all ok now.
  6. Do a code review.
avatar andrepereiradasilva andrepereiradasilva - open - 22 Jul 2016
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2016
Category Installation
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar alikon alikon - test_item - 22 Jul 2016 - Tested successfully
avatar alikon
alikon - comment - 22 Jul 2016

I have tested this item successfully on 9c55adc

no more warning, created_user_id now respect the superadmin user id


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

avatar brianteeman brianteeman - test_item - 22 Jul 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 22 Jul 2016

I have tested this item successfully on 9c55adc

Confirmed issue with userid42 and tested an install with this patch and its all good


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

avatar brianteeman brianteeman - change - 22 Jul 2016
Rel_Number 0 112288
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 22 Jul 2016
Rel_Number 112288 11228
avatar brianteeman brianteeman - change - 22 Jul 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 22 Jul 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 22 Jul 2016
Milestone Added:
avatar MATsxm MATsxm - test_item - 22 Jul 2016 - Tested successfully
avatar MATsxm
MATsxm - comment - 22 Jul 2016

I have tested this item successfully on 9c55adc

Able to reproduce then patch works as expected


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

avatar andrepereiradasilva andrepereiradasilva - change - 22 Jul 2016
The description was changed
avatar wilsonge wilsonge - change - 22 Jul 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-22 20:39:51
Closed_By wilsonge
avatar wilsonge wilsonge - close - 22 Jul 2016
avatar wilsonge wilsonge - merge - 22 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 22 Jul 2016
avatar wilsonge wilsonge - reference | 1fc4b94 - 22 Jul 16
avatar wilsonge wilsonge - merge - 22 Jul 2016
avatar wilsonge wilsonge - close - 22 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2016
Labels Removed: ?
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 22 Jul 2016
avatar infograf768
infograf768 - comment - 20 Nov 2016

@andrepereiradasilva
When installing Sample blog, I still have the issue.
JUser: :_load: Unable to load user with ID: 713

avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Nov 2016

i think you have that because of the modified_by, IIRC this PR only corrects the created_by.
we can make a PR to update those too.

avatar brianteeman
brianteeman - comment - 20 Nov 2016

That would make sense. If thats the case then the PR doesnt need updating
as we have at least one other PR to address the situation of a deleted user
in the modified field

On 20 November 2016 at 11:14, andrepereiradasilva notifications@github.com
wrote:

i think you have that because of the modified_by, IIRC this PR only
corrects the created_by.
we can make a PR to update those too.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11245 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8Xt81ZrnNoiBv7LwcA-i_LQIONWBks5rACuBgaJpZM4JSwbS
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Nov 2016

working on it

Add a Comment

Login with GitHub to post a comment