Page 1 of 1

Uploading Files - Fatal Error

Posted: 06 Jan 2014, 22:11
by Anne
Hi,

I have successfully installed Opencats on Windows using wamp and can add candidates but get both of these errors when trying to upload resumes that are in PDF or Word format. If I convert the resume to TXT it imports without any errors.

Strict standards: Non-static method FileUtility::makeSafeFilename() should not be called statically, assuming $this from incompatible context in C:\wamp\www\lib\Attachments.php

Fatal error: Class 'COM' not found in C:\wamp\www\lib\DocumentToText.php

Other posts that I've found on this forum and other places suggest changes to the php.ini file (error reporting = e_all) and/or the config.php file (antiword path). I've looked at both of those files and they are as suggested. I've checked the path for each of the resume tools and they are installed in the correct directory.

Also, when I search the candidates using resume keywords I get this error - and many more (with a reference other than ::fulltextEncode) yet it does return the correct resume.

Strict standards: Non-static method DatabaseSearch::fulltextEncode() should not be called statically, assuming $this from incompatible context in C:\wamp\www\lib\Search.php

So I am not sure where to look next. The php error log file is empty but this is the last entry in the Apache error log.

Mon Jan 06 16:00:32.984375 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP Strict standards: Non-static method DatabaseSearch::fulltextDecode() should not be called statically in C:\\wamp\\www\\lib\\Search.php on line 262, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:32.984375 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP Stack trace:, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:32.984375 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP 1. {main}() C:\\wamp\\www\\index.php:0, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:32.984375 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP 2. ModuleUtility::loadModule() C:\\wamp\\www\\index.php:291, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:33.000000 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP 3. CandidatesUI->handleRequest() C:\\wamp\\www\\lib\\ModuleUtility.php:79, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:33.000000 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP 4. CandidatesUI->onSearch() C:\\wamp\\www\\modules\\candidates\\CandidatesUI.php:123, referer: http://localhost/index.php?m=candidates&a=search
[Mon Jan 06 16:00:33.000000 2014] [:error] [pid 320:tid 624] [client 127.0.0.1:2271] PHP 5. SearchUtility::searchExcerpt() C:\\wamp\\www\\modules\\candidates\\CandidatesUI.php:1880, referer: http://localhost/index.php?m=candidates&a=search

Any direction or advice you can give is most appreciated as I seem to be going in circles.

Cheers
Anne

Re: Uploading Files - Fatal Error

Posted: 08 Jan 2014, 12:11
by tonyc
Hi Anne

Have you installed Resume Indexing Tools!

Regards

Tony

Re: Uploading Files - Fatal Error

Posted: 29 Jan 2014, 20:06
by johnvc
Hello
I am having the same problem as Ann.
Works perfectly with .txt files, but I get the same error as Anne with .Doc files.
Any solution or workaround?
Thanks !
John

Re: Uploading Files - Fatal Error

Posted: 30 Jan 2014, 20:56
by johnvc
Some additional information regarding the error that occurs when trying to Attach/upload a ".Doc" resume to a Candidate :

Fatal error: Class 'COM' not found in C:\xampp\htdocs\opencats\lib\DocumentToText.php on line 355

Line 355 in DocumentToText.php is :

/* Create a new COM Windows Scripting Host Shell object. */
$WSHShell = new COM('WScript.Shell');

Any ideas?
Helpppppppppppppp

Re: Uploading Files - Fatal Error

Posted: 31 Jan 2014, 19:01
by johnvc
Problem resolved! The php.ini file needs a small modification. Works great now!

Follow the instructions here :
http://www.php.net/manual/en/com.installation.php

Good luck!

Re: Uploading Files - Fatal Error

Posted: 08 Nov 2014, 10:35
by Aliraza179
I tried to reproduce the error on my test environment but was unable to do so. What I did was to create a custom field, add a couple job orders and candidates and then I removed the custom field.

Please provide more information or step by step instructions to reproduce the issue and I'll try to help.

Alternatively you could check your database structure against a default installation for changes and try to revert them if you find any. (particulary the extra_field and extra_field_settings tables).

I'm attaching an dump of my test DB structure for your reference.