Jump to content

How to disable "forbidden function" error


Tom S.

Recommended Posts

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?

Link to comment
Share on other sites

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:)

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...