-
AuthorPosts
-
August 8, 2013 at 2:46 am #189558
Hello, we just installed JA Voice this evening and are going through the configuration settings, no problems for the most part. However, when attempting to edit the Voice Types (as the Super Admin), I receive the following error message:
Fatal error: Class ‘JHtmlList’ not found in ……../components/com_javoice/models/voicetypes.php on line 163
This occurs no matter which Voice Type I try to edit; these are just the default types that came with the extension. We are running Joomla 2.5.14 and JA Voice 1.1.0.
Any help is greatly appreciated.
Thank You!
AngelaAugust 9, 2013 at 12:30 am #501681This was submitted as a support ticket. Sorry for the mix up.
Corvin & Angela
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
August 9, 2013 at 3:33 am #501702Hi Corvin Adkins,
It’s fixed, pls take a look at it.
In file “components/com_javoice/models/voicetypes.php” I changed :
function getOrdering($item) {
$neworder = 0;
$query = 'SELECT ordering AS value, title AS text' . ' FROM #__jav_voice_types' . ' ORDER BY ordering';if (is_object($item))
{
$item = $item->ordering;
}if (isset($item->id))
{
$neworder = 0;
}
else
{
if ($neworder)
{
$neworder = 1;
}
else
{
$neworder = -1;
}
}
return JHtmlList::ordering('ordering', $query, '', $item, $neworder);//return JHTML::_ ( 'list.specificordering', $item, $item->id, $query );
}
to :
$query = 'SELECT ordering AS value, title AS text' . ' FROM #__jav_voice_types' . ' ORDER BY ordering';
$neworder = 0;
if(version_compare(JVERSION, '3.0', 'ge')){if (is_object($item))
{
$item = $item->ordering;
}if (isset($item->id))
{
$neworder = 0;
}
else
{
if ($neworder)
{
$neworder = 1;
}
else
{
$neworder = -1;
}
}
return JHtmlList::ordering('ordering', $query, '', $item, $neworder);
}else{
return JHTML::_ ( 'list.specificordering', $item, $item->id, $query );
}
Regards.August 20, 2013 at 5:57 pm #502910<em>@MoonSailor 384163 wrote:</em><blockquote>Hi Corvin Adkins,
It’s fixed, pls take a look at it.
In file “components/com_javoice/models/voicetypes.php” I changed :
function getOrdering($item) {
$neworder = 0;
$query = 'SELECT ordering AS value, title AS text' . ' FROM #__jav_voice_types' . ' ORDER BY ordering';if (is_object($item))
{
$item = $item->ordering;
}if (isset($item->id))
{
$neworder = 0;
}
else
{
if ($neworder)
{
$neworder = 1;
}
else
{
$neworder = -1;
}
}
return JHtmlList::ordering('ordering', $query, '', $item, $neworder);//return JHTML::_ ( 'list.specificordering', $item, $item->id, $query );
}
to :
$query = 'SELECT ordering AS value, title AS text' . ' FROM #__jav_voice_types' . ' ORDER BY ordering';
$neworder = 0;
if(version_compare(JVERSION, '3.0', 'ge')){if (is_object($item))
{
$item = $item->ordering;
}if (isset($item->id))
{
$neworder = 0;
}
else
{
if ($neworder)
{
$neworder = 1;
}
else
{
$neworder = -1;
}
}
return JHtmlList::ordering('ordering', $query, '', $item, $neworder);
}else{
return JHTML::_ ( 'list.specificordering', $item, $item->id, $query );
}
Regards.</blockquote>Followed this change and now get a blank page with error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in …/com_javoice/models/voicetypes.php on line 139
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
August 27, 2013 at 2:39 am #503524Hi operaghost,
If possible, you can send PM to me admin and ftp login info of your site. I will check it for you.
Regards
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by MoonSailor 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum