C.Cenov
Well-Known Member
Здравейте,
имам следният проблем с ipb, когато някои пусне нов отговор излиза тази грешка:
Мненито иначе се публикува коректно. На въпросният ред в leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php има това
Намерих в гуугъл още някои които е имал подобен проблем тук, но не пише как го е решил.
имам следният проблем с ipb, когато някои пусне нов отговор излиза тази грешка:
Код:
Warning: Invalid argument supplied for foreach() in /home/popbg/public_html/leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php on line 208
Warning: Cannot modify header information - headers already sent by (output started at /home/popbg/public_html/leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php:208) in /home/popbg/public_html/leagueoflegends/ips_kernel/classAjax.php on line 304
Warning: Cannot modify header information - headers already sent by (output started at /home/popbg/public_html/leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php:208) in /home/popbg/public_html/leagueoflegends/ips_kernel/classAjax.php on line 307
Warning: Cannot modify header information - headers already sent by (output started at /home/popbg/public_html/leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php:208) in /home/popbg/public_html/leagueoflegends/ips_kernel/classAjax.php on line 308
Warning: Cannot modify header information - headers already sent by (output started at /home/popbg/public_html/leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php:208) in /home/popbg/public_html/leagueoflegends/ips_kernel/classAjax.php on line 309
{"success":1,"post":"\n\n
\n\t\t<\/a>\n\t\t\n\t\n\t\t\n\t\t
\n\t\t\t\n\t\t\t\t
Мненито иначе се публикува коректно. На въпросният ред в leagueoflegends/admin/applications_addon/ips/ccs/sources/databases/topics.php има това
Код:
public function checkAndIncrementComments( $insert )
{
if( $insert['topic_id'] )
{
$_databases = $this->cache->getCache('ccs_databases');
[B]foreach( $_databases as $_database )[/B] [U]- това е 208 ред[/U]
{
//-----------------------------------------
// Got a record using this tid in this db?
//-----------------------------------------
$_record = $this->DB->buildAndFetch( array( 'select' => 'primary_id_field', 'from' => $_database['database_database'], 'where' => 'record_topicid=' . $insert['topic_id'] ) );
if( $_record['primary_id_field'] )
{
$this->DB->update( $_database['database_database'], "record_comments=record_comments+1", "primary_id_field=" . $_record['primary_id_field'], true, true );
break;
}
}
}
}
Намерих в гуугъл още някои които е имал подобен проблем тук, но не пише как го е решил.
Последно редактирано: