$email_template = 'newtopic_notify';
//if ($this->config['email_enable']) {
include_once($this->root_path . 'includes/functions_messenger.' . $this->php_ext);
$messenger = new \messenger(FALSE);
$messenger->template($email_template, $this->user['user_lang']);
print_r($messenger); exit;
$messenger->to($email, $username);
$messenger->anti_abuse_headers($this->config, $this->user);
$messenger->assign_vars(array(
//'WELCOME_MSG' => htmlspecialchars_decode(sprintf($this->user->lang['WELCOME_SUBJECT'], $this->config['sitename'])),
'USERNAME' => htmlspecialchars_decode($user_row['username']),
'PASSWORD' => htmlspecialchars_decode($user_password),
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u={$user_id}&k=$user_actkey"
));
error: Cannot use object of type phpbb\user as array ตอนส่งเมล
Moderators: mindphp, ผู้ดูแลกระดาน
- thatsawan
- PHP VIP Members
- Posts: 27893
- Joined: 31/03/2014 10:02 am
- Contact:
error: Cannot use object of type phpbb\user as array ตอนส่งเมล
atal error: Cannot use object of type phpbb\user as array in /home/jobthai/domains/jobthai.in.th/public_html/mtb/forum/ext/mindphp/m_photo_tracing/controller/buy_photo.php on line 122
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26547
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: error: Cannot use object of type phpbb\user as array ตอนส่งเมล
ลองเปลี่ยน $this->user['user_lang'] เป็น th หรือ en ดูก่อน นะครับว่ายัง Error ไหม
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
- thatsawan
- PHP VIP Members
- Posts: 27893
- Joined: 31/03/2014 10:02 am
- Contact:
Re: error: Cannot use object of type phpbb\user as array ตอนส่งเมล
กำหนดภาษาผิด
$this->user['user_lang']
$this->user['user_lang']
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Catchable fatal error: Object of class user could not be converted to string
by mindphp » 01/03/2012 10:38 pm » in Programming - PHP - 0 Replies
- 1657 Views
-
Last post by mindphp
01/03/2012 10:38 pm
-
Who is online
Users browsing this forum: Google Adsense [Bot] and 8 guests