Community Support for OpenDocMan (Deprecated)
error message when add a document - 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: error message when add a document (/thread-110.html)



error message when add a document - Stephen - 01-13-2010

cubepiege
2006-02-28 08:06:11 PST
Hello i'm using last version of opendoc.
My web server is apache2 php511 mysql5.0.16.
I log under admin user and i click on add button.
This is my error message:
Fatal error: cannot re-assign $this in $home/add.php on line 375

Could you help me please?


cubepiege
2006-03-01 06:17:58 PST
ok, maybe for all, i found solution:
must replace $this by $element. PHP5 need this now!

Bye


cubepiege
2006-03-01 06:26:18 PST
ok so now i have another problem, when i want to add a pdf document, i have error "please upload a valid document".
With txt files no problems.

Thanks


logart
2006-03-01 06:41:57 PST
That usually means your allowedFileTypes option in the config.php file does not include the same filetype entry that your browser is sending for the pdf file. Do you seen a message in the status bar of the program after trying to upload? Usually it will display the mime type that failed.


jonathanwminer
2006-03-15 11:46:47 PST
You may also want to check maximum size of a file that can be uploaded. For RedHat / Apache, there are several files:

/etc/httpd/conf.d/php.conf (LimitRequestBody)

/etc/php.ini (post_max_size)

Also check "max_filesize" in OpenDocMan's config.php file.