I've moved my website live and I'm getting error.
1 parameter, 2 given in ... on line 57
The line is exactly:
file_put_contents( $files['owg'], json_encode( $data, true ) );
The whole thing is:
if( isset( $_POST['submit'] ) ) {
if ( !empty( $_POST['owg'] ) ) {
$data['owg'] = nl2br( trim( $_POST['owg'] ) );
file_put_contents( $files['owg'], json_encode( $data, true ) );
unset( $data );
}
}
Chmods are 777 on files and folders. Why is this error not appearing at localhost?