Keyword

[SOLVED] K2 conflict with Tapatalk

  • John Allen
  • John Allen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126136 by John Allen
[SOLVED] K2 conflict with Tapatalk was created by John Allen
My site is registered in tapatalk (www.cdmas.org) and works until a user attempts to log onto the site. I am using joomla 3.2.3, Kunena 3.05, Community Builder 1.91, and K2 v2.6.8. Attached is the error message that users get. Given that K2 is a standard for article management, and uninstalling it creates a host of other problems, I would really like to get tapatalk to work with it. Profiles are set to use community builder. I have resynced all users from CB, K2 and Kunena several times. I have ordered the K2 plugins so that the load first. Without tapatalk, everything on the site works fine. PLEASE HELP as I am loosing members.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #126137 by Lefteris
Replied by Lefteris on topic Re: K2 conflict with Tapatalk
Hi. I really don't know how this extension is using K2 files. However in order to fix the issue you can edit file /administrator/components/com_k2/tables/k2user.php and add the following code in line 12:
require_once JPATH_ADMINISTRATOR.'/components/com_k2/tables/table.php'

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • John Allen
  • John Allen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #126138 by John Allen
Replied by John Allen on topic Re: K2 conflict with Tapatalk
I cut and pasted the code into line 12 of the file then attempted to log in and simply got no screen at all upon hitting the logon button. Did I need to add an extra blank line? I included the ' at the end of the line as well? i did clear cache afterwards but did not try resyncing users.
I installed the code snippet right before:
line 13: class TableK2User extends K2Table

Please Log in or Create an account to join the conversation.

  • John Allen
  • John Allen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126139 by John Allen
Replied by John Allen on topic Re: K2 conflict with Tapatalk
Here is the error message after resyncing users and installing the code:

Parse error: syntax error, unexpected T_CLASS in /mnt/data/vhosts/casite-512141.cloudaccess.net/httpdocs/administrator/components/com_k2/tables/k2user.php on line 13

Please Log in or Create an account to join the conversation.

  • John Allen
  • John Allen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126140 by John Allen
Replied by John Allen on topic Re: K2 conflict with Tapatalk
Here is the entire modified PHP file

<?php
/**
* @version 2.6.x
* @package K2
* @author JoomlaWorks www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die;
require_once JPATH_ADMINISTRATOR.'/components/com_k2/tables/table.php'

class TableK2User extends K2Table
{

var $id = null;
var $userID = null;
var $userName = null;
var $gender = null;
var $description = null;
var $image = null;
var $url = null;
var $group = null;
var $plugins = null;
var $ip = null;
var $hostname = null;
var $notes = null;

function __construct(&$db)
{

parent::__construct('#__k2_users', 'id', $db);
}

function check()
{

if (JString::trim($this->url) != '' && substr($this->url, 0, 7) != 'http://')
$this->url = 'http://'.$this->url;
return true;
}

function bind($array, $ignore = '')
{

if (key_exists('plugins', $array) && is_array($array))
{
$registry = new JRegistry();
$registry->loadArray($array);
$array = $registry->toString();
}

return parent::bind($array, $ignore);
}

}

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #126141 by Lefteris
Replied by Lefteris on topic Re: K2 conflict with Tapatalk
There is a missing semicolon... The correct code is:
require_once JPATH_ADMINISTRATOR.'/components/com_k2/tables/table.php';

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • John Allen
  • John Allen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126142 by John Allen
Replied by John Allen on topic Re: K2 conflict with Tapatalk
YOUR THE BEST!!!!!!!!!!!!!!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum