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

Advanced Search

Search Options

Search Results Displaying 741–760 out of 1118 results.

English K2 Community 14 years 5 months ago

Re: Attaching image to item

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 900 bytes) in /.........../joomla/administrator/components/com_k2/lib/class.upload.php on line 3161

Same mistake... same problem... What about solution?
Does anybody may help, please?

Put your hands on your keyboard and feel the warm of my honest thank.

Litho
English K2 Community 14 years 5 months ago

PHP Fatal error: Call to undefined function shMus

I got the following error with sh404sef

PHP Fatal error: Call to undefined function shMustCreatePageId() in components/com_k2/sef_ext/com_k2.php on line 188.

Please suggest me to get the solution
English K2 Community 14 years 5 months ago

Attaching image to item

I am trying to build a site with Joomla 2.5.4 and K2 2.5.7.

Attaching images causes a blank screen. Not all images do this, but many do and there does not seem to be a consistent relationship regarding the size in kb or pixels. The problem occurs for images as small as 200px and 50kb.

Turning on errors gives the following error:

[code type=php-brief]Fatal error: Out of memory (allocated 11272192) (tried to allocate 3724 bytes) in /homepages/15/d104641567/htdocs/joomla25/administrator/components/com_k2/lib/class.upload.php on line 3161[/code]

Line 3161 is the call:
 
English K2 Community 14 years 5 months ago

Page View Error /item/view.html.php on line 24

Warning: require_once(/home/carepi/public_html/components/com_mailto/helpers/mailto.php) [function.require-once]: failed to open stream: No such file or directory in /home/carepi/public_html/components/com_k2/views/item/view.html.php on line 244

Fatal error: require_once() [function.require]: Failed opening required '/home/carepi/public_html/components/com_mailto/helpers/mailto.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/carepi/public_html/components/com_k2/views/item/view.html.php on line 244


I got error when i click on the k2 items it show above error
English K2 Community 14 years 6 months ago

Re: When creating a new category, page goes blank

Yes, I turned error reporting on and am getting the following error:

Fatal error: Call to undefined function mb_internal_encoding() in /.../.../mydomain.com/administrator/components/com_k2/tables/k2category.php on line 92
English K2 Community 14 years 6 months ago

White screen during import of J2.5.4 content

When I try to import J2.5.4 content using K2, I get the following error:

Fatal error: Class 'JSimpleXML' not found in /home/urotoday/public_html/dev/administrator/components/com_k2/models/items.php on line 737

Any ideas on how to fix this?

Trying to import 50K articles...
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

Ok thanks for the help !

Problem fixed ;)
English K2 Community 14 years 6 months ago

Importing Errors

Hello everyone, bit of a problem here I've been working on for about 40 hours. I'm trying to import our site's content over to K2 from the standard Joomla content. At first it was timing out throwing a fatal error, most likely due to the amount of articles. We fixed this up increasing the PHP timeout limit.

However now it is throwing a 500 error and after my tech support team took a deep look into everything the import script is itself is making a bad SQL call while trying to import the articles. I haven't submitted a bug tracker yet since I wanted to see if anyone had a solution to this problem. If need be I can post the error log.

Any help would be appreciated as I would like to use K2 and it would suck if we couldn't. We currently run Joomla 2.5.4 and it is a pretty fresh install
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

Yes it works fine. K2HelperUtilities uses another way to include the menu links overrides when you are on front-end.
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

So I found a workaround to get the K2 params instead of using K2 utilities.php helper I call :
$params = JComponentHelper::getParams('com_k2');

It works but I don't know if it's the "good" way ?
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

I tried to do that but with the function embeded to get the extrafield, I must call the helper "utilities.php" from K2 and doing that I have this error now :
Fatal error: Call to undefined method JAdministrator::getParams()

So utilities.php call this : $params = &K2HelperUtilities::getParams('com_k2');
That call this (and that's where it dies) : $params = & $app->getParams($option);

Sorry for the nightmare but I don't get it at all :unsure:
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

It seems that Joomla! still gives you the backend model. Unfortunatelly there is no way to use the front-end model when the backend model is already loaded, since they share the same class name. The only thing you can do is to enbody the function to your plugin.
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

Thanks for your help and your time.

Unfortunately I got this message now :
Fatal error: Call to undefined method K2ModelItem::getItemExtraFields()

If you know how to fix it ?

NB : I did that to create the model :
JModel::addIncludePath(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'models');
$model2 = JModel::getInstance('Item', 'K2Model');
And I call the function like this : $result->extra_fields = $model2->getItemExtraFields($result->extra_fields);
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

@Mushr00m

This is happening because you are including the front-end item model which has the same class name as the backend item model, which is already loaded to perform the save. Try to use JModel to access the model. Something like this may do the trick:

JModel::addIncludePath(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'models');
$model = JModel::getInstance('Item', 'K2Model');

If this don't solve the issue then just enbody the function to your plugin, there is no other way.

@Leon TuckingFypo

Can you please be more specific? The fact that this is the same kind of error ( require once failure ) does not mean that it is the same error. It would be very helpful if you post the entire error message here.
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

We'll have a look and get back to you guys.
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

I hope the K2 team will make quickly an update to fix that or give us a way to work around... HELP ;)
English K2 Community 14 years 6 months ago

Fatal Error CBuser Not Found In com_k2/helpers/uti

I just upgraded K2 via FTP I can access the backend admin ok but when it comes to the front end I am encountering an error:
Fatal error: Class 'CBuser' not found in /home/crosbya1/public_html/fightingyourcorner.com/components/com_k2/helpers/utilities.php on line 24

I cannot uninstall k2 because I have k2 articles critical to the site. Plaese need your urgent help!
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

I am having a fatal error as well, and the lines seems same (require once... is same )

require_once(JPATH_SITE.DS.'components'.DS.'com_mailto'.DS.'helpers'.DS.'mailto.php');
$item->emailLink = JRoute::_('index.php?option=com_mailto&tmpl=component&link='.MailToHelper::addLink($item->absoluteURL));

This is at view.html.php file..

I think something is wrong with the new version of K2 ( Probably a bug ). THEY NEED TO FIX IT!

Because i kept an older version of K2, were everything is ok, i saw that the line which starts with "require once",wasn't there. So dunno, something is wrong with the new version.

P.S This error gives me php error message when i try to see a k2 item.
English K2 Community 14 years 6 months ago

Re: Fatal error: Cannot redeclare class K2ModelItem

I realy need to use the function getItemExtraFields in my plugin but it's a nightmare !

If I undersant the error is because the model item.php is already called on saving a K2 item... I can't see how to call the function...
English K2 Community 14 years 6 months ago

Fatal error: Cannot redeclare class K2ModelItem

Hi,

I need to create a new plugin for K2, for that I use the trigger "onAfterK2Save" and I add this code in my function to get the extrafield formated :