CMS MADE SIMPLE FORGE

Form Builder

 

[#11736] Cannot save to file - Error. Unable to obtain lock for file.

avatar
Created By: John Beatrice (mww)
Date Submitted: Wed Feb 14 23:01:29 -0500 2018

Assigned To: Fernando Morgado (JoMorg)
Version: 0.8.1.6
CMSMS Version: 2.2.5
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Cannot save to file - Error. Unable to obtain lock for file.
Detailed Description:
Create a form with a save to file disposition. File is chmod with write
permissions.
Form is submitted to email address recipient, but form data is not saved to
file.

Possible solution to test:
\modules\FormBuilder\FormBuilder.module.php

line 762 and 769 uses $db->sysTimeStamp 

I tested with $db->DbTimeStamp(time()) and was able to submit the form correctly
and save submission data to the file.


History

Comments
avatar
Date: 2018-05-22 09:08
Posted By: Mathieu Muths (airelibre) (airelibre)

Confirmed, and the fix seems to work - thanks mww !
      
avatar
Date: 2018-05-22 09:15
Posted By: Fernando Morgado (JoMorg)

Sorry guys, I've been a bit busy so did't reply earlier... It has been fixed in
SVN for ages (Rev 867 2017-07-11 12:04:31), just didn't have time to cut a new
release.
The lock feature is not the best anyway as given the right conditions it may
timeout (sites with multiple forms and lots of traffic and simultaneous
submissions).
A better implementation of file locking is on the works for FB 2.x.
Thanks for the BR anyway and fix suggestion, always appreciated. 
      
Updates

Updated: 2020-02-01 20:15
state: Open => Closed

Updated: 2019-02-24 09:28
resolution_id: 5 => 7

Updated: 2018-05-22 09:15
resolution_id: => 5