We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'object_id' cannot be null (SQL: insert into wp_term_relationships (object_id, term_taxonomy_id) values (?, 17))
wp_term_relationships
object_id
term_taxonomy_id
`$post = new Post; $post->post_title = strip_tags($title); $post->post_content = $content; $post->post_status = $post_status; $post->taxonomies()->sync( array_merge($catsIds, $tagsIds) ); $post->save();`
please i need some help on this
The text was updated successfully, but these errors were encountered:
do you was solved this?
Sorry, something went wrong.
Maybe you try like this
$post = new Post; $post->post_title = strip_tags($title); $post->post_content = $content; $post->post_status = $post_status; $post->save(); // Place attach taxonomies after save $post->taxonomies()->sync( array_merge($catsIds, $tagsIds) );
No branches or pull requests
Description: i m submit a post from a frontend form in wordpress using laravel corcel. but i m getting error Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'object_id' cannot be null (SQL: insert into
wp_term_relationships
(object_id
,term_taxonomy_id
) values (?, 17))please i need some help on this
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: