I get the following errors, is there some I missed?
Notice: Undefined variable: keyword in kwresearch_page_keywords_edit() (line 490 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit() (line 490 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Undefined variable: keyword in kwresearch_page_keywords_edit() (line 493 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit_form() (line 516 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Trying to get property of non-object in kwresearch_load_page_keyword() (line 643 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.module).
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit_form() (line 527 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Undefined property: stdClass::$priority in kwresearch_page_keywords_edit_form() (line 555 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Undefined index: value in kwresearch_page_keywords_edit_form_validate() (line 579 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.admin.inc).
Notice: Undefined property: stdClass::$uid in kwresearch_save_page_keyword() (line 527 of /home/acronj0/public_html/sites/all/modules/kwresearch/kwresearch.module).
Status
Comments
Comment #1
dark_underground CreditAttribution: dark_underground commentedi have the same notices and the module doesnt work correctly.
Comment #2
Justincletus CreditAttribution: Justincletus commentedI am also getting the same error on drupal keyword research module Undefined variable: keyword in kwresearch_page_keywords_edit(),
Trying to get property of non-object in kwresearch_page_keywords_edit() so on how to fix it.
Comment #3
Johan Lombard01 CreditAttribution: Johan Lombard01 as a volunteer commentedI have run into this problem and figured I would make some work of it. It seems that the variable "$keyword" may be the cause in most of these cases.
(kwresearch/kwresearch.admin.inc)
Notice: Undefined variable: keyword in kwresearch_page_keywords_edit() (line 490 of ...
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit() (line 490 of ...
Offending Code
Notice: Undefined variable: keyword in kwresearch_page_keywords_edit() (line 493 of...
Offending Code
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit_form() (line 516 of...
Offending Code
$page_keyword = kwresearch_load_page_keyword($pid, $keyword->kid);
(kwresearch/kwresearch.module)
Notice: Trying to get property of non-object in kwresearch_load_page_keyword() (line 643 of...
Offending Code
$kid = $site_keyword_obj->kid;
Warning: Creating default object from empty value in kwresearch_load_page_keyword() (line 661 of ...
Offending Code
$page_keyword_obj->site = $site_keyword_obj;
(kwresearch/kwresearch.admin.inc:
Notice: Trying to get property of non-object in kwresearch_page_keywords_edit_form() (line 527 of ...
Offending Code
Notice: Undefined property: stdClass::$priority in kwresearch_page_keywords_edit_form() (line 555 of ...
Offending Code
'#default_value' => $page_keyword->priority,
Strict warning: Only variables should be passed by reference in kwresearch_page_keywords_edit() (line 493 of ...
AND...
Notice: Undefined variable: output in kwresearch_page_keywords_edit() (line 493 of ...
Offending Code
$output .= render(drupal_get_form('kwresearch_page_keywords_edit_form', $pid, $keyword));