[fixed]ContentManager lock when modified user preference

Forum rules
Only administrators can post or move items here.
Post Reply
Jean le Chauve

[fixed]ContentManager lock when modified user preference

Post by Jean le Chauve »

New install Rev 9975

Admin user, add new content, submit ;
Go to your settings and change the language (fr->en).
You are not able to edit the last created content (this page is currently being edited by an other user), locked by Admin for 60 minutes.
This happen only the first time you change the settings.
Go to Settings - Content Manager and set Locking Expiration Time-out (minutes): 0, submit.
The content still locked for 60 minutes...
Last edited by Jean le Chauve on Fri May 22, 2015 1:46 pm, edited 1 time in total.
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Content Manager lock when modified user preferences

Post by jce76350 »

I Confirme the lock, it seems that is a random lock :)
Jean-Claude Etiemble
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: [confirmed] Content Manager lock when modified user pref

Post by Franck »

Same for me. If I remember correctly, I had 2 tabs opened on my browser, and I edited a page and closed it. In the other tab, the page was locked. I changed parameters in the "content manager parameters" to desactivate the locking system, and several days later, the page is still locked.
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: [confirmed]ContentManager lock when modified user prefer

Post by archeo »

I confirme. Locking is automatic with default value. The first thing I do after a new install is specifying a value of 0 to disable locking, otherwise design manager and content manager are unuseable.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [confirmed]ContentManager lock when modified user prefer

Post by calguy1000 »

a: When you 'submit' a content page (or cancel) an edit. The page should be automatically unlocked. I have tested this many, many times.
b: The content list page does not automatically refresh via ajax. So if it lists a page as 'locked' you will have to reload to see if it became unlocked. This can be confusing if using multiple browser pages. But it is correct.
c: Changing the lock expiry to 0 or 30 or 120 only effects new edit sessions, it does not effect any existing locks.
d: Pages do not automatically become unlocked if you close the browser tab or close the browser when in edit content, or some error occurs. You will have to wait for the lock to timeout and then you can 'steal it'.
You can see by hovering over the page title of a locked page, approximately how many minutes until the lock expires. (refresh the content list page to update this). After the lock has expired (you may have to refresh again). There will be an icon allowing you to steal the lock.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [confirmed]ContentManager lock when modified user prefer

Post by calguy1000 »

I just created a new install from the latest snapshot. Installed French, English, and Dutch languages.

Using a single browser tab I
- changed my language to French in 'My Preferences'
- Created a new test page... added some silly content, hit submit
(the page was not locked after submit)
- Changed my language to English
- Viewed the content list.... no content was locked.
- Edited the new page created above. hit submit
(the page was not locked after submit).

So it all works correctly here. Again, the behavior can be a bit confusing if you are using multiple browsers or browser tabs AND you do not reload the content list.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: [confirmed]ContentManager lock when modified user prefer

Post by archeo »

I also create a new install from the latest snapshot. I edit 5 templates without locking. Automatic locking begin and all existing template are locked after edit and summit. There is no automatic locking in content manager.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: [confirmed]ContentManager lock when modified user prefer

Post by Franck »

I still have the problem with design manager on rev10057: 2 stylesheets edited 2 weeks ago are still locked. I can open them though, but I don't understand why a message says it's already currently edited by someone else, as it's not the case.

No more locking problem on content manager either for me.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [confirmed]ContentManager lock when modified user prefer

Post by calguy1000 »

I have just spent another hour trying to replicate an issue wrt locking in the design manager... and I cannot reproduce any issue.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [confirmed]ContentManager lock when modified user prefer

Post by calguy1000 »

I think we've fixed the Design Manager issues wrt locking.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: [fixed]ContentManager lock when modified user preference

Post by archeo »

not solved for me (snapshot 2015-06-29 00:30) :

1- templates are automaticly looked with default value parameters :
Lock Time out (minutes): 60
Lock Refresh Interval (seconds): 120
2 - I turn values to :
Lock Time out (minutes): 0
Lock Refresh Interval (seconds): 0
---> no locking
3 - return to default value
Lock Time out (minutes): 60
Lock Refresh Interval (seconds): 120
---> no locking
Could you try using default values? :
Lock Time out (minutes): 0
Lock Refresh Interval (seconds): 0
EDIT : Automatic locking come back with default values :-[
system information
wamp server 2.5 on windows seven
firefox 38.0.5
----------------------------------------------
Cms Version: 2.0-rc1

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.0
DesignManager: 1.0
FileManager: 1.5
MicroTiny: 2.0
ModuleManager: 2.0
Navigator: 1.0
News: 2.50
Search: 1.50

Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Paris
permissive_smarty: false

Php Information:

phpversion: 5.5.12
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 128M
max_execution_time: 120
output_buffering: 4096
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 64M
session_save_path: c:/wamp/tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.17
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No file system time difference found
----------------------------------------------
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [fixed]ContentManager lock when modified user preference

Post by jce76350 »

Solved for me on last rev 10063

Test on WAMP with PHP 5.4.42
Lock Time out (minutes): 5
Lock Refresh Interval (seconds): 30

Test on Web sever with PHP 5.5.23
Lock Time out (minutes): 60
Lock Refresh Interval (seconds): 120

OK for templates and CSS
Jean-Claude Etiemble
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: [fixed]ContentManager lock when modified user preference

Post by archeo »

Solved for me.
But if you edit a template, click on apply and after exit by a click on design manager in the left column, you lock the template. it's logical: the template is being edited by you. What is the interest of a autolocking here?
Post Reply

Return to “Closed Issues”