New installation Notice: Undefined property: Document::$file_ext

Hello,

I have a new installation of 7.1.2-max on a WAMP system. WHen I click on “Document” I have the following errors:
Notice: Undefined property: Document::$file_ext in C:\wamp\www\suitecrm-7.1.2-max\include\SugarObjects\templates\file\File.php on line 81
Notice: Undefined property: Document::$file_ext in C:\wamp\www\suitecrm-7.1.2-max\include\SugarObjects\templates\file\File.php on line 82
Notice: Undefined property: Document::$file_ext in C:\wamp\www\suitecrm-7.1.2-max\include\SugarObjects\templates\file\File.php on line 83

Do you have any suggestions?

Best regards

Turn off Notices in your php.ini file.

1 Like

Andy,SuiteCRM

is there any other way to do this?
No access to php.ini
Found the file.php file in my SuiteCRM instance

SuiteCRM Version 7.1.3; Sugar Version 6.5.17 (Build 1220)

Thanks
Meno

Try putting one of these at the start of your index.php file

<?php // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Report all errors except E_NOTICE // This is the default value set in php.ini error_reporting(E_ALL ^ E_NOTICE); // Report all PHP errors (see changelog) error_reporting(E_ALL); // Report all PHP errors error_reporting(-1); // Same as error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?>

Or to turn off all errors

<?php // Turn off all error reporting error_reporting(0); ?>

THANK YOU ANDY,

THE FIRST SUGGESTION WORKS LIKE A CHARM:

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);

ARE THERE ANY OTHER THINGS THAT WORK DIFFERENT NOW
(SUPPRESSION OF MESSAGES …)

KIND REGARDS
MENNO

Hi Andy,

I have the same issue with that, but in my index.php I placed the code that you gave us and the report does not come out. — Very well!

Buuuut my issue is not that report, my issue is that the Documents is not save in the page (SuiteCRM), when I try find the file (or document that I uploaded) this file is not displayed or uploaded.

Could you help me with that issue?

Thank you!