OpenX: Statistik Seite wird nicht angezeigt (weisse Seite)
Nach dem Update auf PHP Version 5.4.x wird die Statistik Seite nicht mehr angezeigt. Es werden auch keine Fehler ausgegeben.
Lösung:
vi lib/OA/Admin/Statistics/Delivery/CommonEntity.php
Zeile 292:
if (array_search('ad_id', $aggregates) !== false) {
$this->childrendata['ad_id'] = Admin_DA::fromCache('getAds', $aParams);
// Plugins can set their own ads in the array
foreach ($this->aPlugins as $oPlugin) {
/* replaced by teslina
$oPlugin->mergeAds(&$this->childrendata['ad_id']);
*/
$oPlugin->mergeAds($this->childrendata['ad_id']);
// eof teslina
}
}
Das gleiche noch auf Zeile 322:
// Plugins can set their own zones in the array
foreach ($this->aPlugins as $oPlugin) {
/* replaced by teslina
$oPlugin->mergeZones(&$this->childrendata['zone_id']);
*/
$oPlugin->mergeZones($this->childrendata['zone_id']);
// eof teslina
}
}
Dann noch im File:
vi lib/OA/Admin/Statistics/Delivery/CommonHistory.php
Zeile 160:
function prepare(&$aParams, $link = '')
{
/* replaced by teslina
parent::prepare(&$aParams);
*/
parent::prepare($aParams);
// eof teslina
Nun läuft die Statistik wieder. Den gesamten Artikel dazu findest Du hier.
Thanks for sharing this, now it works again on our centos 6 linux server.
Btw, on this distro I first ran into „Using an input encoding requires PHP support for mb_convert_encoding() and mb_strlen()“ issue with excel exports, which is easy to fix : yum install php-mbstring