Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Warnings on publisher_approval_entry

Status Resolved
Add-on / Version Publisher 1.6.2
Severity
EE Version 1.9.2

LouWii D.

Apr 10, 2015
Hi, I made some tests yesterday and tried the submit approval functionality. Now I got warnings on every page of the CP.
A PHP Error was encountered
Severity: Warning
Message: Creating default object from empty value
Filename: models/publisher_approval_entry.php
Line Number: 90

A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$channel_id
Filename: models/publisher_approval_entry.php
Line Number: 102
I also got this error when going to the Publisher module page
Entries
A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$title
Filename: views/accessory-section.php
Line Number: 5
I just submitted an approval using an account with editor rights. Otherwise Publisher is working as expected, when I go and edit the entry, I got a popup saying that a draft is waiting approval. Thanks for your help. EDIT: I looked at that line 90
$row->data->member_data = ee()->publisher_helper->get_member_data($member_id);
And I tried to see if $member_id is defined correctly, and it is. A var_dump give me :
string(5) "22047"
About the line 102
$this->link_params['channel_id'] = $row->data->channel_id;
I dumped $row->data and I get
object(stdClass)#551 (2) {
  ["member_data"]=>
  object(stdClass)#550 (87) {
    ["member_first_name"]=>
    string(4) "Test"
    ["member_last_name"]=>
    string(10) "Translator"
    ["member_title"]=>
    string(0) ""
    ["member_address_1"]=>
    string(0) ""
    ["member_address_2"]=>
    string(0) ""
    ["member_us_state"]=>
    string(0) ""
    ["member_post_code"]=>
    string(0) ""
    ["member_country"]=>
    string(13) "Aland Islands"
    ["member_telephone"]=>
    string(0) ""
    ["member_language"]=>
    string(7) "english"
    ["member_hear_about_us"]=>
    string(5) "Other"
    ["member_id"]=>
    string(5) "22047"
    ["group_id"]=>
    string(1) "8"
    ["username"]=>
    string(14) "testtranslator"
    ["screen_name"]=>
    string(15) "Test Translator"
    ["password"]=>
    string(128) "751f6cd7216328c023a545d14673efcf106552d2d0faff9f3ce8ab57d9b7614997a562ba9303e95efd48b82b8711ae90351f9859715681401f0e1b6a2ae3fc7b"
    ["salt"]=>
    string(128) "4ukbI5jdvgbH<LlW%-<OU^3{$wI[v@n;f/POOawJkSI>i'#YT^'obvY!<u[7BTg)YtLKQr0H7aR%@AFp-j2NmrB3sYQWr$09qjb8e,BV[<>&vu;^T&gbwno4;$xq+r40"
    ["unique_id"]=>
    string(40) "8d07741aa2862d825e15e5292c5d4b32270d240c"
    ["crypt_key"]=>
    string(40) "aec0d5669a44900496f295a19c598e615cea334b"
    ["authcode"]=>
    NULL
    ["email"]=>
    string(29) "testtranslator@hopstudios.com"
    ["url"]=>
    string(0) ""
    ["location"]=>
    string(0) ""
    ["occupation"]=>
    string(0) ""
    ["interests"]=>
    string(0) ""
    ["bday_d"]=>
    NULL
    ["bday_m"]=>
    NULL
    ["bday_y"]=>
    NULL
    ["aol_im"]=>
    string(0) ""
    ["yahoo_im"]=>
    string(0) ""
    ["msn_im"]=>
    string(0) ""
    ["icq"]=>
    string(0) ""
    ["bio"]=>
    string(0) ""
    ["signature"]=>
    NULL
    ["avatar_filename"]=>
    NULL
    ["avatar_width"]=>
    NULL
    ["avatar_height"]=>
    NULL
    ["photo_filename"]=>
    NULL
    ["photo_width"]=>
    NULL
    ["photo_height"]=>
    NULL
    ["sig_img_filename"]=>
    NULL
    ["sig_img_width"]=>
    NULL
    ["sig_img_height"]=>
    NULL
    ["ignore_list"]=>
    NULL
    ["private_messages"]=>
    string(1) "0"
    ["accept_messages"]=>
    string(1) "y"
    ["last_view_bulletins"]=>
    string(1) "0"
    ["last_bulletin_date"]=>
    string(1) "0"
    ["ip_address"]=>
    string(13) "50.67.177.159"
    ["join_date"]=>
    string(10) "1425611876"
    ["last_visit"]=>
    string(10) "1425934319"
    ["last_activity"]=>
    string(10) "1428621203"
    ["total_entries"]=>
    string(1) "0"
    ["total_comments"]=>
    string(1) "0"
    ["total_forum_topics"]=>
    string(1) "0"
    ["total_forum_posts"]=>
    string(1) "0"
    ["last_entry_date"]=>
    string(1) "0"
    ["last_comment_date"]=>
    string(1) "0"
    ["last_forum_post_date"]=>
    string(1) "0"
    ["last_email_date"]=>
    string(1) "0"
    ["in_authorlist"]=>
    string(1) "n"
    ["accept_admin_email"]=>
    string(1) "y"
    ["accept_user_email"]=>
    string(1) "y"
    ["notify_by_default"]=>
    string(1) "y"
    ["notify_of_pm"]=>
    string(1) "y"
    ["display_avatars"]=>
    string(1) "y"
    ["display_signatures"]=>
    string(1) "y"
    ["parse_smileys"]=>
    string(1) "y"
    ["smart_notifications"]=>
    string(1) "y"
    ["language"]=>
    string(7) "english"
    ["timezone"]=>
    string(16) "America/New_York"
    ["time_format"]=>
    string(2) "12"
    ["date_format"]=>
    string(8) "%n/%j/%y"
    ["include_seconds"]=>
    string(1) "n"
    ["cp_theme"]=>
    NULL
    ["profile_theme"]=>
    NULL
    ["forum_theme"]=>
    NULL
    ["tracker"]=>
    NULL
    ["template_size"]=>
    string(2) "28"
    ["notepad"]=>
    NULL
    ["notepad_size"]=>
    string(2) "18"
    ["quick_links"]=>
    NULL
    ["quick_tabs"]=>
    NULL
    ["show_sidebar"]=>
    string(1) "n"
    ["pmember_id"]=>
    string(1) "0"
    ["rte_enabled"]=>
    string(1) "y"
    ["rte_toolset_id"]=>
    string(1) "0"
  }
  ["deny_template"]=>
  string(160) "<b>Test Translator (.(JavaScript must be enabled to view this email address))</b> will be notified that this draft approval has been denied. Please provide a reason and requested changes."
}
Hope that can help you.
#1

LouWii D.

Some news.

This error is not showing up again. We approved or deleted the “waiting for approval draft” and the message won’t show up again. I tried and submitted an other entry translation, still no errors.

I’ll come back if this issue is showing up again, but for now I think it’s all good.

Login to reply