Jump to content

How to disable "forbidden function" error

Featured Replies

Posted

Somewhere in my code I use the PHP function `exec()`. When I put the software in dev mode it gives me this error:

Quote

You have used a forbidden function

How can I disabled this error/warning for this specific function? Or disable this check altogether?

8 hours ago, Tom S. said:

Somewhere in my code I use the PHP function `exec()`. When I put the software in dev mode it gives me this error:

How can I disabled this error/warning for this specific function? Or disable this check altogether?

Disable the strict mode by adding

define( 'IN_DEV_STRICT_MODE', FALSE );

to your constants file:)

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.