Notice error in wordpress rest_api, Originated from plugins.
-
plugins:
lingotek-translation
Question:
I used a custom rest api endpoint,e.g /site/2.
when i call the endpoint, it return me a error message:<br /> <b>Notice</b>: Trying to get property of non-object in <b>/home/wwwroot/trueniu-php/trueniu/wp-content/plugins/lingotek-translation/include/model.php</b> on line <b>20</b><br />
Obviously, he runs the file in the plugins directory,something happened.
Here is the code snippet that returned the error:
<?php /* * Manages interactions with database * Factory for Lingotek_Group objects * * @since 0.1 */ class Lingotek_Model { public $pllm; // Polylang model static public $copying_post; static public $copying_term; /* * constructor * * @since 0.1 */ public function __construct() { $this->pllm = $GLOBALS['polylang']->model; register_taxonomy('lingotek_profile', null , array('label' => false, 'public' => false, 'query_var' => false, 'rewrite' => false)); register_taxonomy('lingotek_hash', null , array('label' => false, 'public' => false, 'query_var' => false, 'rewrite' => false)); } ......
How can I solve him?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Notice error in wordpress rest_api, Originated from plugins.’ is closed to new replies.