Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes
Accepted

K2: Call To A Member Function Get() On Null

I posted the issue on k2 forum and got the answer. Following is the issue's reason and solution: In Helix Framework, when we create a menu item of type item edit form. It throws an error. So, this is ...
Liz.'s user avatar
  • 1,385
3 votes

How to call K2 currently viewed item's title / creation date on my template index.php?

You can do something similar like: $app = JFactory::getApplication(); $jinput = $app->input; $option = $jinput->getCmd('option'); $view = $jinput->getCmd('view'); if ($option=="com_k2"...
Piero Marsilio's user avatar
3 votes
Accepted

Override category list of K2 frontend item form

There may be a correct way deeper in the depths of K2 to not have the disabled categories in the list in the first pace, however, the quickest solution is to use regex to remove them. <?php $...
David Hayes's user avatar
2 votes

Error 1146 while installing K2 extension

This situation can happen if K2 was installed in the past and not removed correctly or after a failed install attempt. Have a look with your FTP client for either of the directories below as K2 ...
CoalaWeb's user avatar
  • 275
2 votes

How to create Multiple Sets of K2 Extra Fields for the same K2 item

This exactly what the Datasets for K2 plugin does: http://www.joomreem.com/extensions-store/k2-datasets Also, there is a documentation to learn in details how to use it: http://www.joomreem.com/...
Mohamed Abdelaziz's user avatar
2 votes
Accepted

K2 item association

As far as I know, K2 in its current version does not support Item Associations, similar to what you get in Joomla's core articles, when you enable the feature in the language filter plugin. One ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Integration of Facebook Comments

My opinion is to use Facebook, because then the comments are more widely shared if that's your objection. If the comments are in K2, they will remain just there and can only be seen by visitors to ...
Edward_178118's user avatar
2 votes
Accepted

Get K2 Extra Field Name Using Id

The extra fields are saved in json encoded format, so first you will need to have: $arrExtraFields = json_decode($extra_fields); Once you have that, you will need to loop through the array $...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

Redirect K2 article url after alias change

The Redirect Manager only works if the URL of the first article returns a 404 error. If it doesn't, then the redirect will not take place. I suggest you do this redirect in the .htaccess file by ...
itoctopus's user avatar
  • 3,226
2 votes

K2:How to run a certain task every time an item is saved

You need a K2 plugin if you are not yet using K2 V3, otherwise a regular Joomla plugin, if I remember correctly. Basic sceleton for what you need would be something like <?php defined('_JEXEC') ...
Marko D's user avatar
  • 471
2 votes

What would be the best approach to modify multiple articles' content programatically?

You can edit the K2 articles directly from the database using phpMyAdmin. That shouldn't be a problem. Just make sure you clear your Joomla and your browser cache in order to see the updated data. ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

How to add submenus to a menu?

Beez template doesnt support dropdown menu. You can use different templates also if the Beez template is important then you can install menu extension to work with the same template. Some free ...
Joomler's user avatar
  • 1,811
2 votes

How to change home page title and description in meta tag

The second screenshot you have posted is from the Global Configuration. In Global configuration, apart of the Basic Setup/Configuration, you can define settings that would be used globally across your ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()

"items.php" no longer exists in K2 (as of 2.8.0). I think you have a problem in your libraries folder because of the Joomla update. It might be that you have some reminiscent files from a previous ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

How to use convert_tz in a joomla query?

Rather than using CONVERT_TZ(), you can use INTERVAL in your query to execute a daylight-savings-ignorant conversion and avoid the use of a php variable. $query->where("DATE(publish_up + INTERVAL ...
mickmackusa's user avatar
  • 4,801
2 votes

SEF URL Issues on several sites

The "enable advanced SEF" option in K2 is a standalone SEF router, and is most likely conflicting with anything that RS SEO is doing. Without taking a look at your site, I can't really tell, but it ...
Jonathan Magoga's user avatar
1 vote
Accepted

Fatal error in K2 Tools Module

I have changed: require_once (dirname(__FILE__).DS.'helper.php'); To: require_once (dirname(__FILE__).'/'.'helper.php'); This is a known bug and an official solution should be given in the next K2 ...
Michael Yaeger's user avatar
1 vote

K2 show items to selected users

If you want to control access to K2 articles individually, you can do that inside that article settings in the "Access Level" field. The same setting can be applied (Access Level) to K2 categories ...
Michael Yaeger's user avatar
1 vote

How to change home page title and description in meta tag

The page title and meta description are changed through the 'Menus' menu item in the administrative back-end. 1) Choose the page. 2) Go to the 'Page Display' tab. 3) Change the page title via the '...
nimble's user avatar
  • 418
1 vote
Accepted

K2: Show 5 articles per page

Try this: Go to Components > K2 > Categories Here select the main category and go to the Tab Display Settings, see the screenshot:
AlejandroVega's user avatar
1 vote
Accepted

K2 User show total number of Item hits

This should be what you need. $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select($db->qn('hits')) ->from($db->qn('#__k2_items')) ->where($db->qn('...
Lodder's user avatar
  • 26.9k
1 vote
Accepted

Editing K2 Items showing error

Ok, so it turns out this wasn't an issue with Joomla or K2 at all, but an issue with WAMP. I increased the PHP memory limit in php.ini to 512M and edited the index.php within the root of the Joomla ...
RustyJoomla's user avatar
  • 2,078
1 vote

Koowa suddenly throwing strict errors

I had a very similar thing happen with a different component after upgrading the server's PHP version from 5.4 -> 5.5. Essentially, Strict Standards warnings are not errors; they’re messages ...
Michael Yaeger's user avatar
1 vote

What would be the best approach to modify multiple articles' content programatically?

Yes, there is a perfect extension for the job: Regular Labs (ex-NoNumber) DB Replacer. I have used it successfully for years for similar tasks: batch Find & Replace of text in articles or K2 ...
Mikan's user avatar
  • 3,007
1 vote
Accepted

K2 : Redirect user after login to User Blog Page

The only way (out of the box) that K2 can dynamically create the link to the user page is to use the K2 User module. However, the "Login Redirection" setting uses Menu Items, only. Unfortunately, ...
Michael Yaeger's user avatar
1 vote
Accepted

Why can googlebot crawl to author page while I never actually show author link on my website?

GoogleBot is a very aggressive bot. We have the exact same issue on K2 based websites, and we have determined that this is mainly caused by Google knowing some patterns (from other K2 websites) and so ...
itoctopus's user avatar
  • 3,226
1 vote
Accepted

How does K2 Custom HTML module differ from Joomla's?

I've never used K2's Custom HTML module, but I would not suggest installing the entire K2 package just to be able to use this module. That's extremely overkill. You best bet is to install the ...
Lodder's user avatar
  • 26.9k
1 vote

How do I get category object from within an item's template?

We have category.php and item.php files. category.php load template in loop like: foreach($this->links as $key => $item) : $this->item = $item; $this->loadTemplate('item'); ...
Lanah's user avatar
  • 522
1 vote

K2 add item in frontend without registration

No, there is no way for Guests or Public visitors to post anything in neither K2 nor Joomla itself. They have to belong at least to Author group, which is lowest group with front-end editing rights, ...
Mikan's user avatar
  • 3,007
1 vote
Accepted

joomla 2.5 / K2 - SQL Query to delete trashed items taking care of data integrity

K2 is not using cascade delete : http://www.mysqltutorial.org/mysql-on-delete-cascade/ It's is safe to run your query. Only trashed articles will be delete. You can and should do a backup of your ...
Pierre-André Vullioud's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible