- Posts: 1
- Thank you received: 0
Questions about Payment Form extension
Newbie to a great component.....problem with Views
- rphelan
- Topic Author
- Offline
- New Member
Less
More
14 years 7 months ago #3083
by rphelan
Regards
Ray
Newbie to a great component.....problem with Views was created by rphelan
Just installed this componet....putting it into test on my website.....but got this error....can you please let me know how to fix this....
Fatal error: Call to a member function setQuery() on a non-object in /content/HostingPlus/w/f/wfc.ie/web/components/com_pmform/views/complete/view.html.php on line 28
Code line is as follows :
class PmFormViewComplete extends JView
{
function display($tpl = null)
{
$config = PmFormHelper::getConfig() ;
$id = JRequest::getInt('id', 0) ;
$sql = 'SELECT thanks_message FROM #__pf_forms AS a INNER JOIN #__pf_payments AS b ON a.id = b.form_id WHERE b.id='.$id;
$db->setQuery($sql) ; // this is the error line 28
$thanksMessage = $db->loadResult();
if ($thanksMessage)
$config->thanks_message = $thanksMessage ;
$message = $config->thanks_message;
$offline = JRequest::getInt('offline_payment', 0) ;
if ($offline) {
$message = $config->thanks_message_offline ;
}
$message = nl2br($message);
$this->assignRef('message', $message);
parent::display($tpl);
}
}
Fatal error: Call to a member function setQuery() on a non-object in /content/HostingPlus/w/f/wfc.ie/web/components/com_pmform/views/complete/view.html.php on line 28
Code line is as follows :
class PmFormViewComplete extends JView
{
function display($tpl = null)
{
$config = PmFormHelper::getConfig() ;
$id = JRequest::getInt('id', 0) ;
$sql = 'SELECT thanks_message FROM #__pf_forms AS a INNER JOIN #__pf_payments AS b ON a.id = b.form_id WHERE b.id='.$id;
$db->setQuery($sql) ; // this is the error line 28
$thanksMessage = $db->loadResult();
if ($thanksMessage)
$config->thanks_message = $thanksMessage ;
$message = $config->thanks_message;
$offline = JRequest::getInt('offline_payment', 0) ;
if ($offline) {
$message = $config->thanks_message_offline ;
}
$message = nl2br($message);
$this->assignRef('message', $message);
parent::display($tpl);
}
}
Regards
Ray
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
14 years 7 months ago #3084
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re:Newbie to a great component.....problem with Views
Hi
Could you submit a support ticket contains your site information (FTP account and Joomla administrator account) so that I can check and fix it for you ?
Thanks ,
Tuan
Could you submit a support ticket contains your site information (FTP account and Joomla administrator account) so that I can check and fix it for you ?
Thanks ,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.