Welcome To Agriya FAQ

ID #0

Fixes given for 2.2 Release

Fixes for Rayzz 2.2

Note: This Article consists of the fixes for the issues in Rayzz 2.2


Issue: The mini audio player shown in admin panel while listing the audios is not working. url: projectpath/admin/musicManage.php?list=musicListAll

Fix:

Change 1:
File to change : common/classes/class_mediaHandler.lib.php
In the method : musicEmbedCode
Locate the following line :
$player_url = $this->CFG['site']['url'].'mini_player.swf';
Replace with
$player_url = $this->CFG['site']['url'].'player.swf';

Change 2:
Rename the mini_player.swf to mini_liteBlue.swf
and move the mini_liteBlue.swf file to ./files/skins/mp3/ .




Issue: The rss feed for Most Discussed Music for Today shows blank page

Fix:

File to change : rss/rssFeedMusic.php

Find the text
todayMostMostDiscussed
and replace with
with todayMostDiscussed








Issue: In the view video page of group videos, when clicking the more link shown for the related videos, it is throwing Page Not Found Error

Fix:

File to change: general/groupViewVideo.php
In the method: populateRleatedVideo()
Locate the following line


and replace with the following line





Issue: Clicking on the link to Upload Video in groups page shows Page Not Found error

Fix:

File to change: common/classes/class_HeaderHandler.lib.php

Locate the following line
fields_arr['gurl'].'&video_id=', 'groupviewvideo/'.$this->fields_arr['gurl'].'/');

And replace with the following

$video_url = getUrl('groupViewVideo.php?group_id='.$this->fields_arr['gurl'].'&video_id=', 'groupviewvideo/'.$this->fields_arr['gurl'].'/');


Issue: Videos from deleted groups are listed .

Fix:

Change 1

File to change: videoPlaylistXmlCode.php
In the method populateGroupVideoSelectQuery()

Locate the following line
$sql_condition = 'v.group_video_id!=\''.addslashes($this->fields_arr['vid']).'\' AND v.group_video_status=\'Ok\''.$add_con;

And replace with the following
$sql_condition = 'v.group_video_id!=\''.addslashes($this->fields_arr['vid']).'\' AND v.group_video_status=\'Ok\' AND g.group_status=\'Ok\''.$add_con;

Locate the following line

return $sql = 'SELECT v.playing_time, v.group_video_id AS video_id, v.user_id, v.group_video_title AS video_title, v.group_video_caption AS video_caption,'.
' TIMEDIFF(NOW(), date_added) as date_added, v.rating_total, v.rating_count, v.total_comments,'.
' v.group_video_server_url AS video_server_url, '.$add_field.'v.total_views,'.
' v.s_width, v.s_height, v.group_video_ext AS video_ext FROM '.$this->CFG['db']['tbl']['group_video'].' AS v'.
' WHERE '.$sql_condition.$add_order.' LIMIT 20';

And replace with the following

return $sql = 'SELECT v.playing_time, v.group_video_id AS video_id, v.user_id, v.group_video_title AS video_title, v.group_video_caption AS video_caption,'.
' TIMEDIFF(NOW(), v.date_added) as date_added, v.rating_total, v.rating_count, v.total_comments,'.
' v.group_video_server_url AS video_server_url, '.$add_field.'v.total_views,'.
' v.s_width, v.s_height, v.group_video_ext AS video_ext FROM '.$this->CFG['db']['tbl']['group_video'].' AS v LEFT JOIN '.$this->CFG['db']['tbl']['groups'].' AS g'.
' ON v.group_id = g.group_id'.
' WHERE '.$sql_condition.$add_order.' LIMIT 20';



Change 2:

File to change: videoConfigXmlCode.php

In the method getGroupTotalRelatedVideo()

Locate the following

$sql_condition = 'v.group_video_id!='.$this->dbObj->Param('group_video_id').' AND v.group_video_status=\'Ok\''.$add_con;

And replace with the following
$sql_condition = 'v.group_video_id!='.$this->dbObj->Param('group_video_id').' AND v.group_video_status=\'Ok\' AND g.group_status=\'Ok\''.$add_con;

Locate the following

$sql = 'SELECT COUNT(*) AS count FROM '.$this->CFG['db']['tbl']['group_video'].' AS v'.' WHERE '.$sql_condition.' LIMIT 20';

And replace with the following code

$sql = 'SELECT COUNT(*) AS count FROM '.$this->CFG['db']['tbl']['group_video'].' AS v LEFT JOIN '.$this->CFG['db']['tbl']['groups']. ' AS g'. ' ON v.group_id = g.group_id'.' WHERE '.$sql_condition.' LIMIT 20';






Issue: The playing time of the videos uploaded in groups shows as : 00:00

(Please Note: This will solve the issue only for videos that are uploaded here after)

Fix:

File to change : common/classes/class_GroupVideoUpload.lib.php

Locate the following line
$rs = $this->dbObj->Execute($stmt, array($this->L_WIDTH, $this->L_HEIGHT, $this->T_WIDTH, $this->T_HEIGHT,$this->S_WIDTH, $this->S_HEIGHT, $this->fields_arr['playing_time'], $this->VIDEO_ID, $this->fields_arr['flv_upload_type']));

And replace with the following

$rs = $this->dbObj->Execute($stmt, array($this->L_WIDTH, $this->L_HEIGHT, $this->T_WIDTH, $this->T_HEIGHT,$this->S_WIDTH, $this->S_HEIGHT, $this->fields_arr['playing_time'], $this->fields_arr['flv_upload_type'], $this->VIDEO_ID));

Tags:

-