Hi!

I bumped into very strange error / warning.

After editing the book I got error: "This book has been modified by another user, the changes could not be saved."

Everything is OK, changes are committed, so I don't know why this error is appearing?!?

I have test site on same server, so I copied my production site to test and tried to reproduce error: nope. Error disappeared. WTF?!? ;)

On test site I disable googleanalytics + apachesolr_stats modules, and set variable "apachesolr_read_only" to "1". Test site is @ http protocol, while production is https.

So, I disabled googleanalytics + apachesolr_stats modules, and set variable "apachesolr_read_only" to "1" on my production site, run cron, flush all caches, but no, error is not moving.

I have another books, and after editing them I don't get error, so I really don't know how to reproduce this error.

If you have some ideas, please share them, if not, you can close this issue.

CommentFileSizeAuthor
#8 cmfspaces.make_.txt7.68 KBgmclelland
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mariomaric’s picture

Assigned: Unassigned » mariomaric
Status: Active » Closed (fixed)

Heh,

problem solved with disabling (+ uninstalling) Outline Designer, editing problematic book, then enabling OD again - and now everything is OK. Strange.

JFTR. :)

Cheers.

mariomaric’s picture

Assigned: mariomaric » Unassigned
Status: Closed (fixed) » Active

Sorry for spamming, but error jumped again. :(

Enabled modules:

 Package           Name                                                Version
 Administration    Administration menu (admin_menu)                    6.x-1.6
 Apache Solr       Apache Solr autocomplete (apachesolr_autocomplete)  6.x-1.1
 Apache Solr       Apache Solr framework (apachesolr)                  6.x-1.2
 Apache Solr       Apache Solr search (apachesolr_search)              6.x-1.2
 Apache Solr       Apache Solr statistics (apachesolr_stats)           6.x-1.0-beta2
 CCK               Content (content)                                   6.x-2.8
 CCK               FileField (filefield)                               6.x-3.9
 CCK               ImageField (imagefield)                             6.x-3.9
 CCK               ImageField Tokens (imagefield_tokens)               6.x-1.0
 Core - optional   Book (book)                                         6.20
 Core - optional   Color (color)                                       6.20
 Core - optional   Comment (comment)                                   6.20
 Core - optional   Database logging (dblog)                            6.20
 Core - optional   Help (help)                                         6.20
 Core - optional   Menu (menu)                                         6.20
 Core - optional   Path (path)                                         6.20
 Core - optional   Profile (profile)                                   6.20
 Core - optional   Search (search)                                     6.20
 Core - optional   Taxonomy (taxonomy)                                 6.20
 Core - optional   Tracker (tracker)                                   6.20
 Core - optional   Trigger (trigger)                                   6.20
 Core - optional   Update status (update)                              6.20
 Core - required   Block (block)                                       6.20
 Core - required   Filter (filter)                                     6.20
 Core - required   Node (node)                                         6.20
 Core - required   System (system)                                     6.20
 Core - required   User (user)                                         6.20
 FileField Paths   FileField Paths (filefield_paths)                   6.x-1.4
 Input filters     Pathologic (pathologic)                             6.x-3.4
 Input filters     Table of Contents (tableofcontents)                 6.x-3.6
 Input filters     WYSIWYG Filter (wysiwyg_filter)                     6.x-1.5
 LDAP integration  Authentication (ldapauth)                           6.x-1.0-beta2
 LDAP integration  Data (ldapdata)                                     6.x-1.0-beta2
 LDAP integration  Groups (ldapgroups)                                 6.x-1.0-beta2
 Linkit            Linkit (linkit)                                     6.x-1.8
 Linkit            Linkit Node (linkit_node)                           6.x-1.8
 Other             Clone module (clone)                                6.x-1.2
 Other             DHTML Menu (dhtml_menu)                             6.x-3.5
 Other             Diff (diff)                                         6.x-2.1
 Other             Fasttoggle (fasttoggle)                             6.x-1.3
 Other             Image resize filter (image_resize_filter)           6.x-1.10
 Other             Insert (insert)                                     6.x-1.0-beta6
 Other             Lightbox2 (lightbox2)                               6.x-1.11
 Other             MimeDetect (mimedetect)                             6.x-1.3
 Other             Nice Menus (nice_menus)                             6.x-1.3
 Other             Outline Designer (outline_designer)                 6.x-1.2
 Other             Taxonomy Manager (taxonomy_manager)                 6.x-2.2
 Other             Token (token)                                       6.x-1.15
 Other             Token actions (token_actions)                       6.x-1.15
 Other             Transliteration (transliteration)                   6.x-3.0
 Statistics        Google Analytics (googleanalytics)                  6.x-2.3
 User interface    Wysiwyg (wysiwyg)                                   6.x-2.2
 Views             Views (views)                                       6.x-2.12
 Views             Views Bulk Operations (views_bulk_operations)       6.x-1.10
 Views             Views exporter (views_export)                       6.x-2.12
 Views             Views UI (views_ui)                                 6.x-2.12
 Webform           Webform (webform)                                   6.x-3.4
btopro’s picture

Status: Active » Needs review

this is a common drupal error that I've been able to replicate based on either having multiple users altering the weights (drag/drop) of books at the same time / session duration. OR, sometimes when you have 2 different windows / browsers open and working on different parts of a book outline it'll happen. Drupal will detect that something is being edited and doesn't always break the "lock" immediately (like when you goto an edit page and then close the browser this can happen at times too). Not specifically a problem with this module I don't think, mostly an issue with hitting the DB at similar times.

mariomaric’s picture

Hi!

Tnx for info - yup, on test site only one user is logged in so there is no error.

If you think it's nothing important and there is no need for escalation, feel free to close issue.

IMHO this message can be confusing to (new) editors if they are not familiar with this issue - it's not user friendly to have fake errors. :)

btopro’s picture

Status: Needs review » Closed (works as designed)

definitely can be confusing, unfortunately one of those usability issues in D6

btopro’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Component: User interface » Code / API / JS
Status: Closed (works as designed) » Needs review

hmm... not sure if it's related to some OG integration stuff but getting this error again.

btopro’s picture

Status: Needs review » Closed (works as designed)

so this was evil to track down but #968882: Method cache_clear_all() in memcache.db.inc doesn't clear memcache if $cid is set and $wildcard is TRUE was my issue. I also fixed the book stuff in my menu table (was creating a book incorrectly at a code level) so somewhere between the two issues this is fixed. Unfortunately it seems that memcache won't look into the issue and as it's the backbone of ELMS I can't really run memcache at this time til it gets figured out. I'll have to dig into it someday but for now we'll be running w.o. memcache as a result

gmclelland’s picture

FileSize
7.68 KB

Looks like I'm experiencing this as well when I click on "Add content". It's strange as it adds the nodes, but it doesn't display their titles in the OD hierarchy until you refresh the page.

    This book has been modified by another user, the changes could not be saved.
    This book has been modified by another user, the changes could not be saved.

I attached my make file. If you want to try to reproduce.

Note.. I am using Outline Designer 6.x-1.3 and pressflow, spaces, and purl. I am not using Memcache.

Hope that helps,
-Glenn

btopro’s picture

are u using dev or 1.3?

gmclelland’s picture

I'm using 1.3

btopro’s picture

hmm... InnoDB or MYSAM DB encoding? I haven't experienced this issue since I switched to inno. also might want to try this patch -- http://drupal.org/node/360377

This sounds related too tho it's marked fixed -- http://drupal.org/node/272900

I'm running the same stack you're talking about at elms.psu.edu and am not experiencing this issue though I'm also not testing for it very heavily at the moment.

Ultimately we might need to override this it would seem -- http://api.drupal.org/api/drupal/modules--book--book.admin.inc/function/...

gmclelland’s picture

I was using MYSAM, but then I switched all tables to innodb. Still I have the same problem. I haven't tried the other patches yet.

gmclelland’s picture

btopro’s picture

hmm, using any other book/menu related projects?

gmclelland’s picture

No, just those modules listed in the make file. I'll keep digging, I believe I have another test site where it is working ok.

gmclelland’s picture

Ok, I have done some more testing. I tried the same setup with Drupal 6.22 instead of Pressflow. (Same Problem)

I have two different VMs.

1. Standard 1.4 Ubuntu 11.04 - Aegir 1.4 with APC
2. Quickstart 1.0 without APC

Both experience odd behaviors
VM#1. shows - This book has been modified by another user, the changes could not be saved. errors in red. When the pages are duplicated it doesn't fully show the whole tree of pages until you refresh the page.

VM#2. when the pages are duplicated it doesn't fully show the whole tree of pages until you refresh the page. Doesn't show "this book has been ..." message

Should we set this issue back to open? Next up, I'm going to start disabling all the modules and see if that has any effect.

gmclelland’s picture

@btopro - what version of php do you run? Me - I'm using php 5.3

btopro’s picture

Version: 6.x-1.x-dev » 6.x-1.3
Status: Closed (works as designed) » Needs review

5.3 here too. does this happen if you install locally and use a different browser? Might be a caching issue at some level cause I'm running in production without issue (OD 1.3 that is). Switching this issue to 1.3 since you said that's where you've experienced it (the dev for this project is a wasteland).

gmclelland’s picture

Ok, after a lot of testing. The problem I believe happens when you have a minimum cache lifetime/ page cache maximum age set. This will cause the following problems:

1. When you duplicate the branch, OD will only show the root node of the duplicated branch with arrow next to it. When the arrow is clicked it points down but nothing is displayed under the root node. When you refresh the page, you will see the sub nodes under the root node.

2. Sometimes new nodes that are created with OD don't show their titles when using "Outline child pages", you simply see the icons next to where a title would normally be displayed.

3. After deleting a branch of hierarchical nodes the branch will be removed from OD correctly, but when the page is refreshed or if you go to another page then it will show the error in red "This book has been modified by another user, the changes could not be saved."

To fix the problems above, simply set the minimum cache lifetime/ page cache maximum age to none. Not sure if this is acceptable to other people, but maybe it provides enough information to work on fix? Maybe it is intended to work this way?

Hope that helps,
-Glenn

btopro’s picture

Sounds like we might need to do some kind of cache rebuilding on request.. yeah not sure how to do that without insane performance implications. Might be worth using the tool to build the site and make quick changes after the fact with the expectation that there are some issues when modifying live material.

Thanks for tracking this down, haven't had anyone be able to figure it out in the last year :)

btopro’s picture

Version: 6.x-1.3 » 7.x-2.x-dev
btopro’s picture

Status: Needs review » Fixed

Solved in beta1

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.