Keyword

Advanced Search

Search Results (Searched for: Re Error SQL)

  • Lefteris
  • Lefteris's Avatar
21 Mar 2014 13:50
Replied by Lefteris on topic Warning in Category View mysql.php on line 344

Warning in Category View mysql.php on line 344

Category: English K2 Community

Hi. Have you modified any of the K2 database tables? As i can see in your page, the error is coming from the breadcrumbs module you use there.
  • Gerald Kleinebreil
  • Gerald Kleinebreil's Avatar
14 Mar 2014 11:17
[SOLVED] 1054 Unknown column was created by Gerald Kleinebreil

[SOLVED] 1054 Unknown column

Category: English K2 Community

Hallo,

The following Error i get when i call the USER in K2.

1054 Unknown column 'juser.usertype' in 'order clause' SQL=SELECT juser.*, k2user.group, k2group.name as groupname FROM s9afm_users as juser LEFT JOIN s9afm_k2_users as k2user ON juser.id=k2user.userID LEFT JOIN s9afm_k2_user_groups as k2group ON k2user.group=k2group.id LEFT JOIN s9afm_user_usergroup_map as `map` ON juser.id=map.user_id WHERE juser.id>0 GROUP BY juser.id ORDER BY juser.usertype asc

The site is working fine. Any idea how to fix that?

Thx for help.

Gerald
  • andrea
  • andrea's Avatar
10 Mar 2014 10:37
Error when saving items was created by andrea

Error when saving items

Category: English K2 Community

Hi guys, i have an error when try to saving the items.

"Column count doesn't match value count at row 1 SQL=INSERT INTO `tline_finder_tokens` (`term`,`stem`,`common`,`phrase`,`weight`,`context`) VALUES ('naturbioss', 'naturbioss', 0, 0, 0,6667, 1)
"

How i can fix it?

Joomla: 2.5.19
K2: 2.6.8

Hope your help, thank you.
Regards
A.
  • Lefteris
  • Lefteris's Avatar
07 Mar 2014 18:57
Replied by Lefteris on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

In order to identify such issues in the future you can enable debugging under Joomla! configuration while you are building the site. This should give you more details regarding the error.
  • chomz
  • chomz's Avatar
07 Mar 2014 06:39
Replied by chomz on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

hi... I really dont understand what was wrong .. already tried to put on/off several plugins and modules, switching templates, etc.. no good result at all
finally i decided to re-create the site from zero.. thankfully it's a new site so i only have to rewrite tens k2 articles or so :(
  • Lefteris
  • Lefteris's Avatar
05 Mar 2014 11:03
Replied by Lefteris on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

@chomz

Hi. Are you using any third party K2 or content plugins ? I just tested under Joomla! 3.2.2/K2 2.6.8 and had no issues.
  • chomz
  • chomz's Avatar
04 Mar 2014 23:46 - 04 Mar 2014 23:59
Replied by chomz on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

Hi...
I am currently on Joomla 3.2.2 and K2 version of 2.6.7 ( now upgraded to 2.6.8 but nothing change)

Sys Info :

System information
Check Result

Web Server Apache
PHP version 5.3.28
MySQL version 5.5.32-cll
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 50M
Memory limit 64M
Open remote files (allow url fopen) Yes

attached the screenshot of the error
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Mar 2014 18:39 - 04 Mar 2014 18:40
Replied by Krikor Boghossian on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

Which version of Joomla! and K2 are you using?
Are you using any overrides for the itemform.php file?
  • chomz
  • chomz's Avatar
04 Mar 2014 17:27
Replied by chomz on topic SQL 1064 Error on Front-End Article Save

SQL 1064 Error on Front-End Article Save

Category: English K2 Community

:woohoo: finally..
please kindly inform me, how did you resolve this? puhleeeeease :side:
i've got stressed out because i couldn't save or create new k2 items from front submission :pinch:
  • spindoc99
  • spindoc99's Avatar
28 Feb 2014 15:44

[SOLVED] Items created and published in future, pending

Category: English K2 Community

Ya totally wierd.

Joomla 2.5.18
K2 2.6.8
PHP 5.3.26
Server Timezone America/Chicago
Mysql Timezone America/Chicago
Joomla Timezone America Chicago

I found this error while debugging, but its all I can find.

datetime.--construct</a>]: Failed to parse time string (-001-11-30T00:00:00+00:00) at position 7 (-): Double timezone specification 50
  • Lefteris
  • Lefteris's Avatar
28 Feb 2014 13:27
Replied by Lefteris on topic [SOLVED] SQL syntax error

[SOLVED] SQL syntax error

Category: English K2 Community

It's good of course you post it here but first of all you need to submit it to it's developer so it get's fixed. Anyway, thank you for your great feedback.
  • Jackson
  • Jackson's Avatar
28 Feb 2014 00:55
Replied by Jackson on topic [SOLVED] SQL syntax error

[SOLVED] SQL syntax error

Category: English K2 Community

@Lefteris

Yes, I did read it. The problem is with the K2 additional categories plugin . It hasn't been fixed yet, so I figured I'd put the patch up here.
  • Lefteris
  • Lefteris's Avatar
27 Feb 2014 16:11
Replied by Lefteris on topic [SOLVED] SQL syntax error

[SOLVED] SQL syntax error

Category: English K2 Community

@Jackson

You didn't read Mohamed's answer? This plugin is not part of K2. Ask for help it's developer.
  • Jackson
  • Jackson's Avatar
27 Feb 2014 03:50 - 27 Feb 2014 03:53
Replied by Jackson on topic [SOLVED] SQL syntax error

[SOLVED] SQL syntax error

Category: English K2 Community

I'm having this issue too.

It happens when the plugin renders the HTML for an item in the admin page. If one's being added, it will fetch the current K2 item categories to show. But it doesn't realise it's being added, and there is no K2 item ID yet.

I've made a fix where it checks for the item id, and if it's null, then it doesn't bother fetching the categories.

Hopefully it works for others!

I can't seem to attach the file... it goes in k2/k2additionalcategories/k2additionalcategories.php

<?php
/**
* @version 1.0.1
* @package Additional Categories for K2 (plugin)
* @author Thodoris Bgenopoulos <This email address is being protected from spambots. You need JavaScript enabled to view it.>
* @link www.netpin.gr
* @copyright Copyright (c) 2012 netpin.gr
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/


// no direct access
defined('_JEXEC') or die ('Restricted access');


// Load the K2 Plugin API
JLoader::register('K2Plugin', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'lib'.DS.'k2plugin.php');

// Initiate class to hold plugin events
class plgK2k2additonalcategories extends K2Plugin {


/**
* Constructor
*
* For php4 compatability we must not use the __constructor as a constructor for plugins
* because func_get_args ( void ) returns a copy of all passed arguments NOT references.
* This causes problems with cross-referencing necessary for the observer design pattern.
*
* @param object $subject The object to observe
* @param object $params The object that holds the plugin parameters
* @since 1.5
*/
function plgK2k2additonalcategories( & $subject, $params) {
parent::__construct($subject, $params);
}


/**
* Modify the k2 query(items) before being executed in order to count or return additional items.
*
*
* @param string The query.
* @return string
*/
function onK2BeforeSetQuery(&$query)
{

$mainframe = &JFactory::getApplication();
$query_parts=explode('WHERE',$query);

//admin backend area
if($mainframe->isAdmin())
{
//filter by category
if (preg_match("/i.catid IN \([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{
$catids_in=$matches[0][0];
$add_catids_in=str_replace('i.catid IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);

}
//filter by category count results
if (preg_match("/ catid IN \([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{

$catids_in=trim($matches[0][0]);
$add_catids_in=str_replace('catid IN','ca.`catid` IN',$catids_in);
$catids_in_add_pref=str_replace('catid IN','i.`catid` IN',$catids_in);
$all_catids='('. $catids_in_add_pref .' OR '. $add_catids_in .')';

$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);
$query_parts[1]=str_replace('trash','i.`trash`',$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";

$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);
$query=implode(' WHERE ',$query_parts);

}

}


//frontend area
if($mainframe->isSite())
{

$task = JRequest::getCmd('task');
$view= JRequest::getCmd('view');
$layout= JRequest::getCmd('layout');
$category_id= JRequest::getInt('id');

//user blog layout
if($task=='user' && $view=='itemlist')
{

if (preg_match("/i.catid IN\([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{
$catids_in=$matches[0][0];
$add_catids_in=str_replace('i.catid IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);

}

//k2 2.6.3 +
if (preg_match("/c.id IN\([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{

$catids_in=$matches[0][0];
$add_catids_in=str_replace('c.id IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);


}

}
//one category id
if($task=='category' && $view=='itemlist' && $category_id > 0)
{
if (preg_match("/c.id IN \([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{
$catids_in=$matches[0][0];
$add_catids_in=str_replace('c.id IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);


}

//catalog mode
if (preg_match("/c.id\=[\d]+/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{

$catids_in=$matches[0][0];
$add_catids_in=str_replace('c.id','ca.`catid`',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);

}

}

//multiple category ids
if($layout=='category' && $view=='itemlist' && $category_id==0)
{
if (preg_match("/i.catid IN \([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{
$catids_in=$matches[0][0];
$add_catids_in=str_replace('i.catid IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);

}

//k2 2.6.3 +
if (preg_match("/c.id IN \([\d,]+\)/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{

$catids_in=$matches[0][0];
$add_catids_in=str_replace('c.id IN','ca.`catid` IN',$catids_in);
$all_catids='('. $catids_in .' OR '. $add_catids_in .')';
$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);

$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";
$query_parts[0]=str_replace('i.*','DISTINCT i.`id`,i.*',$query_parts[0]);

//case count
$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);

$query=implode(' WHERE ',$query_parts);



}

}

}

}


/**
* Brings the GUI of plugin in the content tab of the k2 item.
*
* @param object The k2 item.
* @param string The view.
* @param string The tab for assign the plugin.
* @return object
*/
function onRenderAdminForm(&$item, $type, $tab='')
{
if($type=='item' && $tab=='content')
{

$plugin = new JObject;
$language = JFactory::getLanguage();
$language->load('com_k2additionalcategories');
$plugin->set('name', JText::_( 'COM_K2ADDITIONALCATEGORIES_LBL' ));
$db = &JFactory::getDBO();
$query = 'SELECT m.* FROM #__k2_categories AS m WHERE m.`trash` = 0 ORDER BY `parent`, `ordering`';
$db->setQuery( $query );
$mitems = $db->loadObjectList();
$children = array();
if ($mitems)
{
foreach ( $mitems as $v )
{
if(K2_JVERSION!='15')
{
$v->title = $v->name;
$v->parent_id = $v->parent;
}
$pt = $v->parent;
$list = @$children[$pt] ? $children[$pt] : array();
array_push( $list, $v );
$children[$pt] = $list;
}
}
$list = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
$mitems = array();

foreach ( $list as $i )
{
$i->treename = JString::str_ireplace('&#160;', '- ', $i->treename);
$mitems[] = JHTML::_('select.option', $i->id, ' '.$i->treename );
}

// New item, item ID not set yet
if ($item->id === null) {
$fields=JHTML::_('select.genericlist', $mitems,'itm_add_catids[]', 'class="inputbox" style="width:100%;" multiple="multiple" size="10"', 'value', 'text', '' );

$plugin->set('fields', $fields);
return $plugin;
}

$query = "SELECT `catid` FROM #__k2_additional_categories WHERE `itemID` = {intval($item->id)}";
$db->setQuery( $query );
if (version_compare(JVERSION, '1.6.0', '<'))
{
$sel_value = $db->loadResultArray();
}
else
{
$sel_value = $db->loadColumn();
}


$fields=JHTML::_('select.genericlist', $mitems,'itm_add_catids[]', 'class="inputbox" style="width:100%;" multiple="multiple" size="10"', 'value', 'text', $sel_value );

$plugin->set('fields', $fields);
return $plugin;

}

}


/**
* Saves data in db after apply or save.
*
* @param object The updated or new k2 item.
* @param boolean Flag setting if the item is new or not.
* @return void
*/
function onAfterK2Save(&$row, $isNew)
{

$add_catids = JRequest::getVar('itm_add_catids','',array());
$db = &JFactory::getDBO();
$query ="DELETE FROM #__k2_additional_categories WHERE `itemID`= {intval($row->id)}";
$db->setQuery($query);
$db->query();
if(is_array($add_catids) && count($add_catids) > 0)
{
foreach($add_catids as $k=>$v)
{

$v=intval($v);
if($v > 0)
{
$query = "INSERT INTO #__k2_additional_categories (`id`, `catid`, `itemID`) VALUES(NULL, '$v', {intval($row->id)})";
$db->setQuery($query);
$db->query();
}

}

}

}


/**
* Custom trigger (not k2 core). Count the active or trash item the category has.Category list on backend.
*
* @param string The k2 query.
* @return string
*
* @deprecated
*/
function onK2BeforeCountCategoryItemsQuery(&$query)
{

$query_parts=explode('WHERE',$query);
if (preg_match("/catid\=[\d]+/",$query_parts[1], $matches, PREG_OFFSET_CAPTURE) > 0)
{
$catids_in=$matches[0][0];
$add_catids_in=str_replace('catid','ca.`catid`',$catids_in);
$catids_in_add_pref=str_replace('catid','i.`catid`',$catids_in);
$all_catids='('. $catids_in_add_pref .' OR '. $add_catids_in .')';

$query_parts[1]=str_replace($catids_in,$all_catids,$query_parts[1]);
$query_parts[1]=str_replace('trash','i.`trash`',$query_parts[1]);
$query_parts[0].=" LEFT JOIN #__k2_additional_categories AS ca ON ca.`itemID` = i.`id`";

$query_parts[0]=str_replace('COUNT(*)','COUNT(DISTINCT i.`id`)',$query_parts[0]);
$query_parts[0]=str_replace('FROM #__k2_items','FROM #__k2_items AS i',$query_parts[0]);
$query=implode(' WHERE ',$query_parts);
}

}


/**
* Custom trigger (not k2 core). Count the active or trash item the category has.Category list on backend.
*
* @param string The k2 query.
* @return string
*
* @since 1.0.1
*/
function onK2BeforeCountCategoryItemsAdmin(&$result,$catid,$trash)
{

$db = &JFactory::getDBO();
$query = "SELECT COUNT(ca.`itemID`) FROM #__k2_items AS i,#__k2_additional_categories AS ca WHERE ca.`catid`={intval($catid)} AND i.`trash`={intval($trash)} AND i.`id`=ca.`itemID`";

$db->setQuery($query);
$total_additional = $db->loadResult();
$result=$result+$total_additional;

}


/**
* Custom trigger (not k2 core). Delete the k2 item entry from #__k2_additional_categories when
* item removed from k2.
*
* @param object The k2 item.
* @return void
*/
function onK2AfterDeleteItem($row)
{
$db = &JFactory::getDBO();
$query ="DELETE FROM #__k2_additional_categories WHERE `itemID`= {intval($row->id)}";
$db->setQuery($query);
$db->query();
}




// Events to display (in the frontend)




/**
* Custom trigger (not k2 core). Generate link and title of additional catecories if exists.
*
* @param int The id of k2 item.
* @return array
*/
function onK2AfterLinkCategoryPublish($itemID) {

$itemID=intval($itemID);
$output='';
if($itemID > 0)
{

$db = &JFactory::getDBO();
$query = "SELECT c.`id`,c.`name`,c.`alias` FROM #__k2_additional_categories AS ca, #__k2_categories AS c WHERE ca.`itemID` ='$itemID' AND c.`id`=ca.`catid`";
$db->setQuery( $query );
$sel_value = $db->loadObjectList();

foreach($sel_value as $k=>$v)
{
$link= urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($v->id.':'.urlencode($v->alias))));
$output.=', <span class="add_cat_link"><a href="'.$link.'">'.$v->name.'</a></span>';
}
}
return $output;
}


/**
* Custom trigger (not k2 core). Add additional category items to the count of current category subcategories.
*
* @param int The count of items that subcategory have.
* @param int The subcategory id.
* @param object The subcategories data.
* @return int
*/
function onK2BeforeSetCountCategoryQuery(&$total, &$id, &$categories)
{

$mainframe = &JFactory::getApplication();
$user = &JFactory::getUser();
$aid = (int) $user->get('aid');
$id = (int) $id;
$db = &JFactory::getDBO();

$jnow = &JFactory::getDate();
$now = $jnow->toMySQL();
$nullDate = $db->getNullDate();

$query = "SELECT COUNT(ca.`itemID`) FROM #__k2_items AS i,#__k2_additional_categories AS ca WHERE ca.`catid` IN (".implode(',', $categories).") AND i.`published`=1 AND i.`trash`=0 AND i.`id`=ca.`itemID`";

if(K2_JVERSION!='15')
{
$query .= " AND i.access IN(".implode(',', $user->authorisedLevels()).") ";
if($mainframe->getLanguageFilter())
{
$query.= " AND i.`language` IN(".$db->Quote(JFactory::getLanguage()->getTag()).", ".$db->Quote('*').")";
}
}
else
{
$query .=" AND i.`access`<=".$aid;
}

$query .= " AND ( i.`publish_up` = ".$db->Quote($nullDate)." OR i.`publish_up` <= ".$db->Quote($now)." )";
$query .= " AND ( i.`publish_down` = ".$db->Quote($nullDate)." OR i.`publish_down` >= ".$db->Quote($now)." )";
$db->setQuery($query);
$total_additional = $db->loadResult();
$total=$total+$total_additional;
}

}
  • Miry
  • Miry's Avatar
24 Feb 2014 00:18
[SOLVED] Error 0 on K2 categories was created by Miry

[SOLVED] Error 0 on K2 categories

Category: English K2 Community

I've created a new K2 category and was going to use it on a News Show Pro GK5 module, when I saved it I got the following error and I can't see my site. I disable the module Show Pro GK5 module, I've deleted the category but I still have this error:
0
SQL=SELECT content.id AS ID, cats.name AS cat_name, cats.alias AS cat_alias, content.catid AS cat_id, users.name AS author, users.email AS author_email, users.id AS author_id, content_rating.rating_sum AS rating_sum, content_rating.rating_count AS rating_count FROM mkynr_k2_items AS content LEFT JOIN mkynr_k2_categories AS cats ON cats.id = content.catid LEFT JOIN mkynr_users AS users ON users.id = content.created_by LEFT JOIN mkynr_k2_rating AS content_rating ON content.id = content_rating.itemID WHERE ORDER BY content.created DESC

Any help is much appreciated.

Miry
  • jameslam
  • jameslam's Avatar
19 Feb 2014 15:30
Replied by jameslam on topic deploy to domain mysql failure

deploy to domain mysql failure

Category: English K2 Community

tried follow the link to manually modify DUMP file, limiting all mediumtext column to a small length (tried 333, 11), but still shows error message saying total index length can't be more than 1000.

Any other clue?
  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • jameslam
  • jameslam's Avatar
18 Feb 2014 14:29
deploy to domain mysql failure was created by jameslam

deploy to domain mysql failure

Category: English K2 Community

installed and built a Joomla site with K2 in my local pc.
using K2 created 2 K2 items. Frontend display them okay.

But when moving this pc site localhost db DUMP to host domain, encountered below error:
Error

SQL query:

CREATE TABLE `tp1_k2_items` ( `id` int(11) not null auto_increment, `title` varchar(255) not null, `alias` varchar(255), `catid` int(11) not null, `published` smallint(6) not null default '0', `introtext` mediumtext not null, `fulltext` mediumtext not null, `video` text, `gallery` varchar(255), `extra_fields` text, `extra_fields_search` text not null, `created` datetime not null, `created_by` int(11) not null default '0', `created_by_alias` varchar(255) not null, `checked_out` int(10) unsigned not null, `checked_out_time` datetime not null, `modified` datetime not null, `modified_by` int(11) not null default '0', `publish_up` datetime not null, `publish_down` datetime not null, `trash` smallint(6) not null default '0', `access` int(11) not null default '0', `ordering` int(11) not null default '0', `featured` smallint(6) not null default '0', `featured_ordering` int(11) not null defau[...]

MySQL said: Documentation
#1170 - BLOB/TEXT column 'introtext' used in key specification without a key length


Googled internet with no luck.

Posted here looking for your great help.
  • Luis C Escajeda
  • Luis C Escajeda's Avatar
14 Feb 2014 02:58
K2 Additional Categories was created by Luis C Escajeda

K2 Additional Categories

Category: English K2 Community

:(
I have installed K2 additional categories plugin for joomla 3.1.5.

When I try to add new K2 Item, it gives me error
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')}' at line 1 SQL=SELECT `catid` FROM mnc_k2_additional_categories WHERE `itemID` = {intval()}

I tried disabling k2 additional categories from the plugins manager, and then I can add new k2 item again. What could be wrong? I need this plugin to allow me to duplicate k2 item in another category.
Hope someone can help me out.

Thanks.
  • Lefteris
  • Lefteris's Avatar
12 Feb 2014 17:40

[SOLVED] Item created & published dates change on edit

Category: English K2 Community

@Mario Beck
@Amy Lewis

The K2 dev version is updated every day. Probably you got a copy which contains an incorrect SQL query. Please grab a new copy from getk2.org/assets/get/ and install again. Time problem as well as SQL error should be gone. Please let me know if your issues have been resolved.
Displaying 321 - 340 out of 793 results.

Powered by Kunena Forum