Hi
I have been working with the CGFeedback module and all was going well. Suddenly I am getting an error on the summary page which is as follows;
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/XX/public_html/modules/CGFeedback/action.summary.php on line 251
The function the error relates to is copied below and I have highlighted line 251 in red. The feedback form still works and the summary page displays the comments properly - the only problem seems to be the error message itself. I have not updated the CMS or module and I have not done anything to the database so I am confused as to how this error arose and what could fix it.
// get field definitions
$fields = '';
$sql = 'SELECT id,name,type FROM '.CGFEEDBACK_TABLE_FIELDDEFS.' ORDER BY iorder';
$tmp = $db->GetArray($sql);
if( is_array($tmp) )
{
$fields = $this->array_to_hash($tmp,'id');
}
$dbr = $db->SelectLimit($query,$pagelimit,$startoffset,$qparms);
if( !$dbr )
{
echo "DEBUG SUMMARY QUERY: SQL FAILED";
echo "QUERY: ".$db->sql.'';
echo "MESSAGE: ".$db->ErrorMsg().'';
echo "SQUERY: ".$query.''; print_r( $qparms );
die();
}
$parms = $params;
$parms['feedback_origpage'] = $returnid;
$data = array();
while( $dbr && ($row = $dbr->FetchRow()) )
{
$prettyurl = "feedback/detail/{$row['id']}/{$detailpage}/";
$prettyurl .= munge_string_to_url(substr($row['title'],0,30));
$parms['cid'] = $row['id'];
$row['detail_url'] = $this->CreateURL($id,'detail',
$detailpage,$parms,$inline,
$prettyurl);
$sql = 'SELECT * FROM '.CGFEEDBACK_TABLE_FIELDVALS.' WHERE comment_id = ?';
$tmp = $db->GetArray($sql,array($row['id']));
if( is_array($tmp) && is_array($fields) )
{
for( $i = 0; $i array_to_hash($tmp,'name');
}
$tmp = $fields;
$data[] = $row;
}
Any ideas?
JK
CGFeedback module error - Argument #2 is not an array in action.summary.php
Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Let us know here.
Jump to
- Official Boards
- ↳ README FIRST!!!
- ↳ Announcements
- ↳ General Discussion
- Support Boards
- ↳ CMSMS Core
- ↳ Modules/Add-Ons
- ↳ Help Wanted (commercial)
- ↳ Translations
- Community Boards
- ↳ Tips and Tricks
- ↳ CMS Show Off
- ↳ Layout and Design (CSS & HTML)
- ↳ Feature ideas
- ↳ Developers Discussion
- ↳ The Lounge
- International Discussions
- ↳ Czech/Slovak - Česky/Slovensky
- ↳ Danish - Dansk
- ↳ Dutch - Nederlands
- ↳ Aankondigingen
- ↳ Tips en Trucs
- ↳ Vertalingen & Documentatie
- ↳ Hulp gezocht (commercieel)
- ↳ Finnish - Suomi
- ↳ French - Français
- ↳ German - Deutsch
- ↳ BITTE ZUERST LESEN !!!
- ↳ Ankündigungen
- ↳ Installation und Einstellungen
- ↳ Module und Tags
- ↳ Smarty-Tipps und -Tricks
- ↳ Layout und Design
- ↳ Suchmaschinenoptimierung (SEO)
- ↳ HowTo's
- ↳ Übersetzungen
- ↳ Show Off
- ↳ Hilfe gesucht (kommerziell)
- ↳ Stammtisch
- ↳ Hungarian - Magyar
- ↳ Italian - Italiano
- ↳ Moduli/Plugins
- ↳ Lithuanian - Lietuviškai
- ↳ Darbo / bendradarbiavimo pasiūlymai ir paieška
- ↳ Persian / Farsi
- ↳ Polish - Polski
- ↳ Portuguese - Português
- ↳ Russian - русский
- ↳ Предложения и поиск РАБОТЫ
- ↳ Spanish - Español
- ↳ Swedish - Svenska
- Geekmoot Editions
- ↳ Geekmoot 2016
- ↳ Connections and Conversations
- ↳ Geekmoot 2015
- ↳ Geek Moot 2012
- ↳ Locked: Geek Moot 2010
- Old Forums
- ↳ [locked] CMSMS 2.0 Beta
- ↳ Module Developers
- ↳ Closed Issues
- ↳ [locked] Documentation0ld
- ↳ Suggestions, Modifications & Corrections
- ↳ [locked] CMSMS 1.11 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 1.10 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 2.2 Beta
- ↳ [locked] CMSMS MLE fork
- ↳ Modules/Addon patchs
- ↳ [locked] Quality Assurance
- ↳ [locked] Accessability and Usability
- ↳ [locked] Documentation
- ↳ Media and presentations about CMSMS
- ↳ [locked] Installation, Setup and Upgrade