我使用postgres 9.x版本安装了最新的openX广告服务器(发布服务器)。
成功安装和配置后,我登录并单击“统计”选项卡,我看到以下错误。
当我用mysql安装openX服务器任何快速修复时,我没有看到这个错误?
PEAR错误
MDB2错误:未知错误 _doQuery:[错误信息:无法执行语句] [上次执行的查询:SELECT m.clientid AS advertiser_id,d.campaignid AS placement_id,s.ad_id AS ad_id,SUM(s.impressions)AS sum_views,SUM(s.clicks)AS sum_clicks,SUM(s.revenue)AS sum_revenue ,m.campaignid || IF(LENGTH(market_advertiser_id)> 0,('_'|| market_advertiser_id ||''),'')|| ad_width || 'x'|| ad_height AS ad_id,(m.campaignid || IF(LENGTH(market_advertiser_id)> 0,('_'|| market_advertiser_id ||''),'')|| ad_width ||'x '|| ad_height)AS pkey FROM“ox_ext_market_stats”AS s INNER JOIN“ox_banners”AS d ON(d.bannerid = s.ad_id)INNER JOIN“ox_zones”AS z ON(z.zoneid = s.zone_id)INNER JOIN“ ox_campaigns“AS m ON(m.campaignid = d.campaignid)INNER JOIN”ox_affiliates“AS p ON(p.affiliateid = z.affiliateid)INNER JOIN”ox_clients“as a ON(a.clientid = m.clientid)WHERE s .ad_id IN(1,2)AND a.type = 1 AND s.zone_id<> 0 AND s.date_time> ='2011-02-22 00:00:00'和s.date_time< ='2011-02-22 23:59:59'GROUP BY advertiser_id,placement_id,pkey]
[本机消息:错误:列“s.ad_id”必须出现在GROUP BY子句中或用于字符65处的聚合函数]
PEAR错误
MDB2错误:未知错误 _doQuery:[错误信息:无法执行语句] [上次执行的查询:SELECT m.clientid AS advertiser_id,d.campaignid AS placement_id,s.ad_id AS ad_id,SUM(s.impressions)AS sum_views,SUM(s.clicks)AS sum_clicks,SUM(s.revenue)AS sum_revenue ,m.campaignid || IF(LENGTH(market_advertiser_id)> 0,('_'|| market_advertiser_id ||''),'')|| ad_width || 'x'|| ad_height AS ad_id,(m.campaignid || IF(LENGTH(market_advertiser_id)> 0,('_'|| market_advertiser_id ||''),'')|| ad_width ||'x '|| ad_height)AS pkey FROM“ox_ext_market_stats”AS s INNER JOIN“ox_banners”AS d ON(d.bannerid = s.ad_id)INNER JOIN“ox_campaigns”AS m ON(m.campaignid = d.campaignid)INNER JOIN“ ox_clients“AS a ON(a.clientid = m.clientid)WHERE s.ad_id IN(1,2)AND s.zone_id = 0 AND a.type = 1 AND s.date_time> ='2011-02-22 00: 00:00'AND s.date_time< ='2011-02-22 23:59:59'AND s.zone_id = 0 GROUP BY advertiser_id,placement_id,pkey]
[本机消息:错误:列“s.ad_id”必须出现在GROUP BY子句中或用于字符65处的聚合函数]
答案 0 :(得分:2)
好的,我找到了解决方案。要解决此问题,必须在lib / max / SqlBuilder.php中的第1031行之后添加此代码。
$ aGroupColumns [] =“s.ad_id”;