Skip to content
New issue

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

Erro do WordPress ao ler a propriedade "term_id" no plugin do Órbita #155

Open
rghedin opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@rghedin
Copy link
Collaborator

rghedin commented Nov 19, 2024

Consegui pegar o erro (um PHP Warning) que o plugin do Órbita está gerando:

Mensagem
PHP Warning: Attempt to read property "term_id" on bool in /srv/htdocs/wp-content/plugins/orbita/orbita.php on line 956

Marca temporal
2024-11-19T12:00:00.000Z

Tipo
plugins

Nome
orbita

Arquivo
/srv/htdocs/wp-content/plugins/orbita/orbita.php

Linha
956

A referida linha:

'orbita_category' => array( $default_category->term_id ),

Em contexto:

		$post = array(
			'post_title'   => $post_title,
			'post_content' => $orbita_post_content,
			'tax_input'    => array(
				'orbita_category' => array( $default_category->term_id ),
			),
			'meta_input'   => array(
				'external_url' => $orbita_post_url,
			),
			'post_status'  => 'publish',
			'post_type'    => 'orbita_post',
		);
		$post_id = wp_insert_post( $post );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant