COMMUNITY FORUM
Search Results (Searched for: Fatal Error K2)
- Olga
23 Jun 2012 13:51
Replied by Olga on topic Cannot upload item photo
Cannot upload item photo
Category: English K2 Community
Could you specify more the server requirements? I have 64 Mb memory limit and the latest versions of K2 and Joomla installed but the same error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 900 bytes) in /home/uamaster/public_html/administrator/components/com_k2/lib/class.upload.php on line 3161
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 900 bytes) in /home/uamaster/public_html/administrator/components/com_k2/lib/class.upload.php on line 3161
- Thomas
21 Jun 2012 15:29
Replied by Thomas on topic Attaching image to item
Attaching image to item
Category: English K2 Community
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
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
- Sajan Ratna Shakya
14 Jun 2012 09:22
PHP Fatal error: Call to undefined function shMus was created by Sajan Ratna Shakya
PHP Fatal error: Call to undefined function shMus
Category: English K2 Community
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
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
- David Talaga
09 Jun 2012 22:22
Attaching image to item was created by David Talaga
Attaching image to item
Category: English K2 Community
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:
Displaying 741 - 760 out of 1119 results.
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:
- shrikant

07 Jun 2012 06:38 Page View Error /item/view.html.php on line 24 was created by shrikant Page View Error /item/view.html.php on line 24
Category: English K2 Community
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
- Steve B.
01 Jun 2012 13:10
Replied by Steve B. on topic When creating a new category, page goes blank
When creating a new category, page goes blank
Category: English K2 Community
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
Fatal error: Call to undefined function mb_internal_encoding() in /.../.../mydomain.com/administrator/components/com_k2/tables/k2category.php on line 92
- Web-JIVE
31 May 2012 17:40
White screen during import of J2.5.4 content was created by Web-JIVE
White screen during import of J2.5.4 content
Category: English K2 Community
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...
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...
- Aimery Marsily
31 May 2012 07:49
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
Ok thanks for the help !
Problem fixed ;)
Problem fixed ;)
- ExtremeT
29 May 2012 21:00
Importing Errors was created by ExtremeT
Importing Errors
Category: English K2 Community
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
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
- Lefteris
29 May 2012 08:52
Replied by Lefteris on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
Yes it works fine. K2HelperUtilities uses another way to include the menu links overrides when you are on front-end.
- Aimery Marsily
28 May 2012 17:49
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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 ?
$params = JComponentHelper::getParams('com_k2');
It works but I don't know if it's the "good" way ?
- Aimery Marsily
28 May 2012 17:17
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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:
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:
- Lefteris
28 May 2012 15:52
Replied by Lefteris on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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.
- Aimery Marsily
28 May 2012 14:42 - 28 May 2012 15:08
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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);
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);
- Lefteris
28 May 2012 09:29
Replied by Lefteris on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
@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.
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.
- JoomlaWorks
27 May 2012 20:24
Replied by JoomlaWorks on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
We'll have a look and get back to you guys.
- Aimery Marsily
26 May 2012 00:39
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
I hope the K2 team will make quickly an update to fix that or give us a way to work around... HELP ;)
- Izzy
25 May 2012 16:13
Fatal Error CBuser Not Found In com_k2/helpers/uti was created by Izzy
Fatal Error CBuser Not Found In com_k2/helpers/uti
Category: English K2 Community
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!
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!
- Leon TuckingFypo
24 May 2012 15:05
Replied by Leon TuckingFypo on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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.
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.
- Aimery Marsily
24 May 2012 14:29
Replied by Aimery Marsily on topic Fatal error: Cannot redeclare class K2ModelItem
Fatal error: Cannot redeclare class K2ModelItem
Category: English K2 Community
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...
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...