Community Support for OpenDocMan (Deprecated)
Undefined variable: id in check-in.php on line 166 - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: Undefined variable: id in check-in.php on line 166 (/thread-589.html)



Undefined variable: id in check-in.php on line 166 - Guest - 03-03-2013

Hi,

I just installed Opendocman 1.2.6.3 and I am trying it out. When I want to check in a file, I get the following notification as a web page, and nothing happens..

Notice: Undefined variable: id in /Users/martin/Sites/Home/opendocman/check-in.php on line 166

Any idea what could cause this? All other things seem to work fine..

Thanks!


Re: Undefined variable: id in check-in.php on line 166 - Guest - 03-05-2013

I am experiencing same issue after upgrade to v1.2.6.3. Suggestions?


Re: Undefined variable: id in check-in.php on line 166 - Stephen - 03-05-2013

Locate this code:
Code:
// form has been submitted, process data

And add this line below it:

Code:
$id = (int) $_POST['id'];

Let me know if this fixes your issue.


Re: Undefined variable: id in check-in.php on line 166 - Guest - 03-05-2013

Yep, seems to work now. Thanks


Re: Undefined variable: id in check-in.php on line 166 - Guest - 03-05-2013

Worked for me as well. Thanks.


Re: Undefined variable: id in check-in.php on line 166 - Stephen - 03-05-2013

1.2.6.3a hotfix released to address this issue and a couple others.