Access Level Defaults to Guest for New Articles J 3.4.2

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Mediaversal_Net
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 01, 2015 6:06 pm

Access Level Defaults to Guest for New Articles J 3.4.2

Post by Mediaversal_Net » Wed Jul 01, 2015 6:34 pm

After upgrading from 3.4.1 to 3.4.2, all of my sites now default to the Guest access level when creating a New Article in the backend. For Administrators, once they Save & Close the new article, it is no longer visible in the Article Manager List, nor on the Recently Added list on the Control Panel admin home page. However, a Super Admin can see these newly created articles that were inadvertanly assigned to the Guest level.

Also, the same problem occurs for New Categories and New Modules.

I checked the Global Configuration, and the default access level is set to Public. I even changed it to Registered, and other higher levels, yet when creating a New Article, the default access level still reverts to Guest.

I am hoping this minor annoyance can be solved soon, as this effects the maintenance of sites for persons who have access levels below Super Admin. Or is there something else new in Joomla 3.4.2 that would correct this?

dino67
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri May 20, 2011 8:18 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by dino67 » Wed Jul 01, 2015 7:40 pm

I and many others appear to be having the same issue. Hopefully someone from the Joomla staff will provide an answer or workaround. This is a big problem for some of my clients!

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24981
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by pe7er » Wed Jul 01, 2015 8:20 pm

I am not able to reproduce your error on my J3.4.1 -> J3.4.2 websites.

In Joomla 3.4.2 when you create a new Article (in Article Manager) the Article Edit form will pre-select its values for Status, Access, Language from the options that were selected in the Article Manager under the [Search Tools] option.
This pre-select functionality also works in the Category Manager, Menu Manager and Module Manager.

In previous versions only the Category that had been selected under [Search Tools] would be pre-selected in the Article Edit Form when creating a new article.

Did you set any of the [Search Tools] filters before creating a new Article/Category/Module?
Could you test if your problem also occurs for New Menu Items?
Could you give somewhat more information about your environment, e.g using Forum Post Assistant?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

KathrynMPU
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Wed May 22, 2013 5:40 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by KathrynMPU » Wed Jul 01, 2015 8:24 pm

I have the same problem on my joomla 3 website after upgrading it just a few hours ago (& just realised it). I did not pre select anything from under the search tools option. Yet still, both for the categories access and article access, it defaults to guest and you have to manually change it to public.

KathrynMPU
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Wed May 22, 2013 5:40 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by KathrynMPU » Wed Jul 01, 2015 8:27 pm

by the way my environment is an iis environment with php & mysql installed.

I do not have the same problem with menu items.

Mediaversal_Net
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 01, 2015 6:06 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by Mediaversal_Net » Wed Jul 01, 2015 9:04 pm

pe7er - Thanks, and thaks to everyone else to.

No, I didn't select the filters prior to creating a New Article. I just tested this, and if select Public, the new article will defualt to public or other access level as defined. I left it on Public, logged out and logged back in without selectig the filter again, and the Guest access is the default for New Articles.

No, this doesn't happen for Menu items.... but it does occur for New Categories and New Modules (any type).

I am on Linux with Apache with PHP 5.4.40 and MySQL 5.5.4.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by brian » Wed Jul 01, 2015 9:58 pm

Can the people reporting this issue please detail what extensions they have installed.

Like pe7er I have tried to replicate this on several sites (clean installs and upgrades) and can not
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

DavidBoggitt
Joomla! Guru
Joomla! Guru
Posts: 861
Joined: Wed Jan 09, 2008 9:16 pm
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by DavidBoggitt » Wed Jul 01, 2015 10:00 pm

pe7er wrote: am not able to reproduce your error on my J3.4.1 -> J3.4.2 websites.

In Joomla 3.4.2 when you create a new Article (in Article Manager) the Article Edit form will pre-select its values for Status, Access, Language from the options that were selected in the Article Manager under the [Search Tools] option.
This pre-select functionality also works in the Category Manager, Menu Manager and Module Manager.
Same for me here, after updating from 3.4.1 to 3.4.2. On a localhost WAMP, with PHP 5.4.3, Apache 2.4.2, and MySQL 5.5.24.

I know this doesn't help much, other than to agree with pe7er and say that I'm seeing the New Article in the backend function as expected.

Dave.
My website: http://www.davidboggitt.com/
Love and hate both devastate you, but at least love takes you to dinner first.

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Wed Jul 01, 2015 10:33 pm

I'm experiencing this issue on a number of sites.

Add a new article / category via backend or front end has default access set to guest (or in some cases where I have created a custom user group on some websites the access is defaulting to the custom user group)

Global configuration access level set to public

Very frustrating and clients starting to request resolution!

Common extensions include:

Akeeba backup
JCE editor
chronoforms v5
Xmap
Reumer google maps
Less compiler
Last edited by ant3000 on Wed Jul 01, 2015 10:53 pm, edited 4 times in total.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by brian » Wed Jul 01, 2015 10:40 pm

I have added this to the issue tracker http://issues.joomla.org/tracker/joomla-cms/7311
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

spwhitehead
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 01, 2015 11:55 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by spwhitehead » Thu Jul 02, 2015 12:06 am

Access level is being set to Guest when creating new articles after j 3.4.2 update.

Global Configuration set to Default Access Level: Public

Extensions used:
Akeeba Backup
Akeeba Admin Tools
Admin Menu Manager
JCE Editor
Fileman
NoNumber Content Templater

Mediaversal_Net
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 01, 2015 6:06 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by Mediaversal_Net » Thu Jul 02, 2015 4:24 am

Here are the minimum extensions I have installed on a test site prior to the upgrade from J3.4.x to J3.4.2

Just this Template!
Rockettheme Template (Gantry 4)

I also typically install the below, but this test site I just upgraded that ONLY has the Template insalled and some modules from Rocket Theme, there is nothing else, and it also has the smae issue of the default access set to Guest even though the Global Config is set to Public.

Otherwise I typically use these extensions:
Akeeba Backup (Pro)
Akeeba Admin Tools (Pro)
JCE Editor
Watchful Client
... maong others.

Mediaversal_Net
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 01, 2015 6:06 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by Mediaversal_Net » Thu Jul 02, 2015 5:31 am

Some more information...
I installed a fresh version of Joomla 3.4.1, and performed the upgrade to 3.4.2

With nothing else installed, New Articles and New Modules default to Public. Good, that is what I would expect. However, I then went to Global Config to change the default level to a higher level, let's say Registered. Went back to add a new article, which should have now had an access level of Registered. But, it was still Public. Thus the change to Global Config had no effect on default access levels in New Articles, New Modules, etc.

So, my assessment there is a hand-off issue betwen the Global Config and the other parts of the code.

Then I installed one of the Rocket Theme (Gantry 4) templates, and it didn't effect the access level. In other words, it stayed at Public this time, leading me to believe that these Templates are not at fault, but rather the issue is something in Joomla Core Code leading from the Global Config.

Good luck tracking the problem. I don't have enough knowledge to tkae this further.

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Thu Jul 02, 2015 8:21 am

I concur with mediversal_net.
Fresh install of joomla > new article = public access
Global configurations > default access > "special" > save.
new article > access = public

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Thu Jul 02, 2015 9:31 am

Hi All

I found the code which is causing the issue and can suggest a temp fix until someone more skilled at PHP than me can implement a more permanent fix.

The file causing issue is Administrator > Components > com_content > models > article.php

Starting on line 422 replace

Code: Select all

		// Pre-select some filters (Status, Category, Language, Access) in edit form if those have been selected in Article Manager: Articles
			if ($this->getState('article.id') == 0)
			{
				$filters = (array) $app->getUserState('com_content.articles.filter');
				$data->set('state', $app->input->getInt('state', (isset($filters['published']) ? $filters['published'] : null)));
				$data->set('catid', $app->input->getInt('catid', (isset($filters['category_id']) ? $filters['category_id'] : null)));
				$data->set('language', $app->input->getString('language', (isset($filters['language']) ? $filters['language'] : null)));
				$data->set('access', $app->input->getInt('access', (isset($filters['access']) ? $filters['access'] : null)));
			}
		}

		$this->preprocessData('com_content.article', $data);

		return $data;
	}
for (the old 3.4.1 code segment - also starting on line 422)

Code: Select all

		// Prime some default values.
			if ($this->getState('article.id') == 0)
			{
				$filters = (array) $app->getUserState('com_content.articles.filter');
				$filterCatId = isset($filters['category_id']) ? $filters['category_id'] : null;

				$data->set('catid', $app->input->getInt('catid', $filterCatId));
			}
		}

		$this->preprocessData('com_content.article', $data);

		return $data;
	}
And everything should get back to how it should? As I said this will only be a temp fix until the guys at Joomla can implement something more permanent :)

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by brian » Thu Jul 02, 2015 9:58 am

A hotfix release is being prepared to address this and a few other small issues
http://issues.joomla.org/tracker/joomla-cms/7313
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Thu Jul 02, 2015 10:07 am

Is there a link where we can download all of the relevant files or will it be via the Update Manager?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by brian » Thu Jul 02, 2015 10:10 am

When ready it will be announced. It will probably be a new release 3.4.3 which will be available as a complete joomlaupdate
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
rich1
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Sun Apr 05, 2009 2:17 am
Location: London SE
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by rich1 » Thu Jul 02, 2015 12:23 pm

This happened to me also when upgrading from 3.4.1 to 3.4.2.
To give you the info.
I installed a J3.3.6 because I wanted the weblinks component.
I upgraded to 3.4.1 - (No Problems)
I then upgraded to 3.4.2
This installation was a fresh install, no extensions.
The problem of 'Guest' being default is in Create Article and Add Weblink.
However Adding a Menu Item or NewsFeed is OK at default 'Public'.

This 3.4.2 update also effected all the other sites I updated, 9 in all.
Problem was I did not notice it until after I tried to Add an Article in one of the sites, then wondered why I could not find the article in the front-end?
If you have no 'Coeur de Lion' do not ask why you fail.

User avatar
rich1
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Sun Apr 05, 2009 2:17 am
Location: London SE
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by rich1 » Thu Jul 02, 2015 12:32 pm

ant3000 wrote:Hi All

I found the code which is causing the issue and can suggest a temp fix until someone more skilled at PHP than me can implement a more permanent fix.

The file causing issue is Administrator > Components > com_content > models > article.php
A good temporary job for you ant3000 if it has no adverse effects. Well done for attempting the fix.
It will not be the issue though as it also effects weblinks, (see my post above), which is another component so the problem lies elsewhere.
If you have no 'Coeur de Lion' do not ask why you fail.

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Thu Jul 02, 2015 2:45 pm

It looks like the Joomla team may have found the solution Rich 1 and will be releasing a hot fix addressing that and few other tweaks soon (see Brian's earlier post)

Looking through the code they have fixed it seems that I had found the right snippet (seems the same principle applies across categories and modules too) but lacking any real PHP knowledge it's a bit beyond my skill set to write a proper fix, although slotting in the old code does seem to patch it up in the short term.

Hope it helps

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by brian » Thu Jul 02, 2015 2:46 pm

Soon = <24 hours
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

ant3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Oct 02, 2009 12:44 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by ant3000 » Thu Jul 02, 2015 2:49 pm

:D Great work J Team!

dino67
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri May 20, 2011 8:18 pm

Fixed by version 3.4.3

Post by dino67 » Thu Jul 02, 2015 4:45 pm

Just installed version 3.4.3 and it fixed the issues. Good job Joomla Team!

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24981
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by pe7er » Thu Jul 02, 2015 5:10 pm

Joomla 3.4.3 has just been released, see announcement: http://www.joomla.org/announcements/rel ... eased.html
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
rich1
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Sun Apr 05, 2009 2:17 am
Location: London SE
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by rich1 » Thu Jul 02, 2015 9:23 pm

ant3000 wrote:It looks like the Joomla team may have found the solution Rich 1 and will be releasing a hot fix addressing that and few other tweaks soon (see Brian's earlier post)

Looking through the code they have fixed it seems that I had found the right snippet (seems the same principle applies across categories and modules too) but lacking any real PHP knowledge it's a bit beyond my skill set to write a proper fix, although slotting in the old code does seem to patch it up in the short term.

Hope it helps
Been a little busy to test the new update, but well done Joomla for a rapid response!
The snippet may have helped solved the problem however it will be in another file.
Will test the old weblinks component when I get the time, (please do not tell me this is no longer part of the Core Joomla, I know!!), however if it is not fixed in the old component there will probably be issues elsewhere.
Of course I will be reporting back to this post if it has not been fixed.

As for using bug reports etc, why should I sign up into so many different aspects of the site when I thought that the new ACL would enable me to go site wide for extension reviews, forum, bug reports etc.
If you have no 'Coeur de Lion' do not ask why you fail.

Mediaversal_Net
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 01, 2015 6:06 pm

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by Mediaversal_Net » Thu Jul 02, 2015 10:05 pm

From my limited testing, J 3.4.3 seems to correct the issue I originally posted above yesturday. I have applied it to several sites, and the default access level is working as I would expect.

User avatar
rich1
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Sun Apr 05, 2009 2:17 am
Location: London SE
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by rich1 » Fri Jul 03, 2015 8:38 am

After implementing the patch 3.4.3
The problem of 'Guest' being default was in Create Article and Add Weblink.
Now both the above are OK at default 'Public'
Adding a Menu Item or NewsFeed was and is still OK at default 'Public'.

So it seems the core issue has been fixed!
If you have no 'Coeur de Lion' do not ask why you fail.

User avatar
rich1
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Sun Apr 05, 2009 2:17 am
Location: London SE
Contact:

Re: Access Level Defaults to Guest for New Articles J 3.4.2

Post by rich1 » Fri Jul 03, 2015 10:33 am

Just found that since the hotfix J3.4.3 Checking Extensions/Joomla hangs in control Panel, see:
http://forum.joomla.org/viewtopic.php?f=706&t=890835
If you have no 'Coeur de Lion' do not ask why you fail.


Locked

Return to “General Questions/New to Joomla! 3.x”