openpolice-platform icon indicating copy to clipboard operation
openpolice-platform copied to clipboard

Suppressed warnings being thrown

Open tomjanssens opened this issue 10 years ago • 1 comments

There seems to be an issue with the @ operator on staging. A generated warning is still being thrown although we suppress it using the at operator.

Example : editing attachment cropping in administrator/news fails and will throw this error

message: "Exception 'Nooku\Library\ExceptionError' with message 'file_get_contents(/var/www/v2.lokalepolitie.be/capistrano/releases/20140403110356/application/admin/component/attachments/resources/language/nl-NL.ini): failed to open stream: No such file or directory' in /var/www/v2.lokalepolitie.be/capistrano/releases/20140403110356/vendor/joomla/language/language.php:358", code: 500, data: { file: "/var/www/v2.lokalepolitie.be/capistrano/releases/20140403110356/vendor/joomla/language/language.php", line: 358, function: "Nooku\Library\{closure}", class: "", args: [ ], info: "" }

file_get_contents() is being called using @ so this warning shouldn't be a problem, but it still bubbles up.

We experienced the same issue in the #658 ticket, where fsockopen in DatabaseRowUrl throws warnings when adding attachments (it fails but the warning is legit. It should be suppressed.)

Tip from Ercan: Sync KExceptionHandlerAbstract

tomjanssens avatar Jan 02 '15 11:01 tomjanssens

Syncing the changes in ExceptionHandlerAbstract in the develop branch of Nooku Platform will fix this.

johanjanssens avatar Jan 30 '15 00:01 johanjanssens