Forum Open Notice
Forum Open Notice
  1. Forum
  2. Search

Advanced Search

Search Options

Search Results Displaying 21–40 out of 1118 results.

English K2 Community 5 years 9 months ago

Recoverable fatal error: Object of class stdClass could not be converted to stri

This is unfortunately an error with K2Store, not K2. Attach the file here and I'll try and fix it for you.
English K2 Community 5 years 9 months ago

Recoverable fatal error: Object of class stdClass could not be converted to stri

..the exact component; administrator/components/com_k2store/library/selectable/base.php
English K2 Community 5 years 9 months ago

K2 with PHP 8.0

Same error :-(

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/b0st0n/public_html/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2769
English K2 Community 5 years 9 months ago

K2 with PHP 8.0

Running K2 under PHP 8.02 throws the following error when trying to save an item:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/b0st0n/public_html/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2726

No problem with 7.4, but I wonder if anyone else has had an issue.

Regards,
Alan
English K2 Community 6 years 1 month ago

Fatal error is coming after upgrading the Joomla to ver 3.9

In either a plugin or where you render the code (e.g. the template overrides). It depends on the use case.

In your case, I assume these are presentation methods only, so they could have been part of a template override for K2.
English K2 Community 6 years 1 month ago

Fatal error is coming after upgrading the Joomla to ver 3.9

thanks for your quick reply. what are the ways to declare custom methods in the k2 components so conflicts can be avoided while upgrading in future without changing in the core files.
English K2 Community 6 years 1 month ago

Fatal error is coming after upgrading the Joomla to ver 3.9

These functions are not part of K2's core code, e.g. github.com/getk2/k2/search?q=getImagesForGallery

Whoever built your site modified K2's core code, which is a big no-no... :)
English K2 Community 6 years 1 month ago

Fatal error is coming after upgrading the Joomla to ver 3.9

Presently I have installed K2 v2.10.3 on Joomla[ver 3.9] and using php [PHP Version 5.6.40] on the website.
English K2 Community 6 years 1 month ago

Fatal error is coming after upgrading the Joomla to ver 3.9

I am getting fatal error in K2 component after upgrading the website to Joomla ver 3.9.

Please review below messages in the error log
======================================
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/wallpapers/item.php on line 354
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/audio/item.php on line 619
Fatal error: Call to undefined method K2ModelItem::getTitleFromItemId() in /home/.../public_html/components/com_k2/templates/guru/item.php on line 20
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/photos/item.php on line 332
======================================

Please suggest, where these methods are defined. Any help would be highly appreciated.

Thanks in advance!
English K2 Community 6 years 6 months ago

How to quickly filter just K2 extensions for troubleshooting

Hi! I tried to update my site (joomla/k2) and got it on a new server with recent php versions. Now, I can see the homepage and item pages, but no so for "category" pages.

I get this error:
Fatal error: Cannot declare class K2ModelItemlist, because the name is already in use in /home/--site--/public_html/components/com_k2/models/itemlist.php on line 0

I don't know what exactly already has been using K2ModelItemList, I suppose some 3rd party K2 extension.

How do I know which extensions to disable to troubleshoot this? Or in other words, how do I quickly just see K2 extensions?

Thank you!
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

component.php is like index.php. The only difference is that this file is usually called in modals, the print dialog etc. Explore that file and adjust accordingly.

As for the update, yes, it's simple.
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

Is it really simple? What I need to do? Can you explain in more detail?
Do you mean the template component file component.php?
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

a) Override component.php and add it there. Simple.

b) The error occurs because of the change you do. Regardless of that, you're missing for not using K2 v2.10.3.
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

a) I need the header from my template in the K2 frontend edit form. How can I do that? May be another method exist?

b) This fatal error is fixed in the new version of K2?
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

a) Don't do that. There's a reason it's loaded in the component.php sub-template.

b) You should upgrade to K2 v2.10.3 ASAP.
English K2 Community 6 years 7 months ago

Fatal Error between K2 User and K2 Frontend

Hi.
I have a fatal error "Call to undefined method K2ModelItem::getUserProfile()" when I click on the menu to form of K2 frontend. This error appeared after I changed the "component" to "index" in the file item.php to use the header from my template:

public function edit()
{
JRequest::setVar('tmpl', 'index');

I noticed that this error disappears if I disable the "K2 User" module, which is in the header of the template. Can you help me to solve my problem?
K2 v. 2.9.0, Joomla 3.9.12 Stable.
English K2 Community 6 years 7 months ago

K2 + SP Page builder

Hi
Has anyone encountered a problem with the new K2 and SP Page builder?

Fatal error: Cannot declare class SppagebuilderHelperK2, because the name is already in use in
sppagebuilder/helpers/k2.php

?
English K2 Community 6 years 9 months ago

Function broken after K2 upgrade

Hello,

I recently updated K2 from version 2.9 to version 2.10. I read in the documentation that this upgrade was safe for all template overrides, however, that does not seem to be the case for me.

After upgrading, I was hit with this error all over the site:
"Fatal error: Call to undefined method K2HelperUtilities::getFieldValue()"

I use this function to get extra fields from K2 items. Was this function changed in 2.10? Or is there another way to fix this?

Thanks!
English K2 Community 6 years 9 months ago

k2 editor in the backend does not render correctly

Hi again I have the error now maybe this will shed some light on the matter and hopefully you might be able to help as I have tried everything

Fatal error: Class 'JFormField' not found in /home/content/98/8665798/html/INTERNATIONALMETALTUBE/libraries/joomla/form/fields/text.php on line 22

Br.
Ian
English K2 Community 6 years 10 months ago

after installing K2 2.10.2 ... all my articles can't be shown on site

after installing the new K2 2.10.2 version, even though on the admin side of Joomla I see the install was a success, we are not able to see our article in the front end. an error message is shown Fatal error: Can't use method return value in write context in /homepages/1/d341242702/htdocs/gouwuhawaii/components/com_k2/views/item/view.html.php on line 468 so now none of the articles are able to show up correctly...

any solution?

thanks