Keyword

Advanced Search

Search Results (Searched for: Fatal Error K2)

  • Ray Lin
  • Ray Lin's Avatar
07 Jan 2013 06:18

creating K2 items but get blank pages...

Category: English K2 Community

i am using Joomla 2.5.8, and K2 with 2.6.2
And K2 works just fine few days ago but suddenly it just can't add any new items,
when i want to add a new item on back end, and i click new or edit old items, it got blank pages and i can't do anything... but i can edit other tabs like categoray, tags, comments...etc

and i opened the error report after i click new item it shows "Fatal error: Call to a member function getAttribute() on a non-object in /home3/incgsolu/public_html/gem/administrator/components/com_k2/elements/items.php on line 34"

i've googled but still can't find any solutions, is there any help?
i've also attach my Plug-in Manager screenshot and fatal error screenshot.
Thanks,
  • Bokel
  • Bokel's Avatar
06 Jan 2013 12:11

Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Category: English K2 Community

When you look at k2.php (the system plugin) you can see that the K2 devs are using

JRequest::getCmd()

which is deprecated.

They should use

JFactory::getApplication()->input->get() instead.

docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3.0_and_Joomla_Platform_12.1

Workaround: Just select template name with checkbox and click on Edit button. That will do the same as if you clicked on template name ...

Perhaps "one day" the K2 guys will change that (and stop blaming Gantry) ...

I guess you could also just "search & replace"
JRequest::getCmd with Factory::getApplication()->input->get
in the k2.php ... but I haven't tested that.
  • Jack Hughes
  • Jack Hughes's Avatar
27 Dec 2012 22:50
Replied by Jack Hughes on topic Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Category: English K2 Community

I have the same problem. Joomla 3.0.2. K2 2.6.2, Rocket Theme Cerulean template 1.0, Gantry 4.1.4

If I unpublish the System - K2 plugin I can then access the template from the backend.
  • Ludwig Mader
  • Ludwig Mader's Avatar
19 Dec 2012 07:14
Replied by Ludwig Mader on topic White Page after Save or import - New installation

White Page after Save or import - New installation

Category: English K2 Community

Thanks for the "switches"!

I got figured out like in this thread getk2.org/community/New-to-K2-Ask-here-first/165876-Fatal-Error---please-help#165876
that mbstring support is not enabled.

So i let enable mbstrings and try again.

I will insert feedback for doc later.
  • mahdi
  • mahdi's Avatar
17 Dec 2012 15:29

call extra field one k2 module & show that

Category: English K2 Community

i want to call k2 extra field to one of k2 module to show that. about this work ther are 1 code one of that is k2 defult code & working right just in k2 component & do not work in my module:

<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
<!-- Item extra fields -->
<div class="itemExtraFields">
<ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value != ''): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<?php if($extraField->type == 'header'): ?>
<h4 class="itemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
<?php else: ?>
<span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>

whene add this to my module give this error : Fatal error: Using $this when not in object context in /opt/lampp/htdocs/worldnews/templates/sj_worldnews/html/mod_sj_megak2news/theme1.php on line 70
  • natecovington
  • natecovington's Avatar
17 Dec 2012 14:19
Replied by natecovington on topic K2 - White screen when saving item and php error

K2 - White screen when saving item and php error

Category: English K2 Community

Nate Covington wrote:

Susan Penter wrote: Hi I thought this line my fix my problem since loading the additional information tab data but I still get this fatal error:

Fatal error: Call to undefined method K2ModelItemMultiImages::buildAliasBasedExtraFields() in /home/sites/SITENAME/public_html/genealogy/components/com_k2/models/item.php on line 1492

I also have the following plugin installed which may be involved as it is mentioned in the error message:
getk2.org/extend/extensions/date/item/763-k2-multiple-images-plugin


The other pages in the category that I have not added the additional data to are working fine but even after emptying the data out of the additional data tab of the broken page it still didn't work.

The multi image plug in is being used in a different category and is behaving fine.

Many thanks for any help.

Susan



I am having a similar issue with the extra fields, same error:
Fatal error: Call to undefined method K2ModelItemMultiImages::buildAliasBasedExtraFields() in /Applications/MAMP/htdocs/sitename/components/com_k2/models/item.php on line 1492

Same configuration - multi images plugin works on item view without K2 extra fields... both the image and extra fields work on the category view, but not on the item view. Even the new "image" type of extra field works, in the category view...

Anyone?



Just reporting back, I received an updated "K2 Multi Images Plugin" from Andrey (JoomCar) and it solved my issue. Hope this is helpful to someone.

Thanks!
  • éric Péan
  • éric Péan's Avatar
15 Dec 2012 14:01
Problème d'affichage élément K2 was created by éric Péan

Problème d'affichage élément K2

Category: Communauté française K2

Bonjour,
j'essaie d'utiliser depuis peu K2. ma version de Joomla est le 2.5.1 et j'ai la dernière version de K2.
j'ai créé un lien vers une catégorie K2, en cliquant sur ce menu les éléments de la catégorie s'affiche mais quand je clique sur un élément j'ai le message suivant :
Fatal error: require_once() [function.require]: Failed opening required '/homez.395/useprrfp/www/components/com_mailto/helpers/mailto.php' (include_path='.:/usr/local/lib/php') in /homez.395/useprrfp/www/components/com_k2/views/item/view.html.php on line 305

quelqu'un peut-il m'aider? Merci
Eric
  • natecovington
  • natecovington's Avatar
14 Dec 2012 21:48
Replied by natecovington on topic K2 - White screen when saving item and php error

K2 - White screen when saving item and php error

Category: English K2 Community

Susan Penter wrote: Hi I thought this line my fix my problem since loading the additional information tab data but I still get this fatal error:

Fatal error: Call to undefined method K2ModelItemMultiImages::buildAliasBasedExtraFields() in /home/sites/SITENAME/public_html/genealogy/components/com_k2/models/item.php on line 1492

I also have the following plugin installed which may be involved as it is mentioned in the error message:
getk2.org/extend/extensions/date/item/763-k2-multiple-images-plugin


The other pages in the category that I have not added the additional data to are working fine but even after emptying the data out of the additional data tab of the broken page it still didn't work.

The multi image plug in is being used in a different category and is behaving fine.

Many thanks for any help.

Susan



I am having a similar issue with the extra fields, same error:
Fatal error: Call to undefined method K2ModelItemMultiImages::buildAliasBasedExtraFields() in /Applications/MAMP/htdocs/sitename/components/com_k2/models/item.php on line 1492

Same configuration - multi images plugin works on item view without K2 extra fields... both the image and extra fields work on the category view, but not on the item view. Even the new "image" type of extra field works, in the category view...

Anyone?
  • william white
  • william white's Avatar
14 Dec 2012 18:29
Replied by william white on topic K2 Items Disappeared

K2 Items Disappeared

Category: English K2 Community

That is a "warning" not a fatal error, it should not remove anything.
Turn error reporting to none in Joomla Global Settings Server Tab and the warning should go away.

What have you changed, added, or updated on your site just before the items went away?
  • Juanna McKenzie
  • Juanna McKenzie's Avatar
14 Dec 2012 17:36
K2 Component & JomHoliday was created by Juanna McKenzie

K2 Component & JomHoliday

Category: English K2 Community

Good Day

Last evening I purchased the Joomla Component JomHoliday.

The component was configured and assigned to menu item but page loads with the following error message:

Fatal error: Call to a member function getUserProfile() on a non-object in /home/hbkvilla/public_html/components/com_k2/helpers/utilities.php on line 73

Can you please provide assistance in resolving?

Joomla Version 2.5.8
K2: (Last update: November 23rd, 2012 - Version 2.6.2)
Gantry 4.1.4
Template: Rocket Theme993

Your assistance is resolving ASAP is appreciated.

Regards
Juanna
  • davicod
  • davicod's Avatar
12 Dec 2012 23:02 - 12 Dec 2012 23:06
k2_override problem was created by davicod

k2_override problem

Category: English K2 Community

Hi,
I had a problem as i was trying to create a k2_content override.

I followed the instructions at
getk2.org/documentation/tutorials/item/77-k2-template-override-package-comparison
I want to have more that one k2_content override so inside my mytempate/html/mod_k2_content folder i copied and pasted twice the default folder and i gave defferent names.
Then i set some of my k2_content modules to use the sub-templates i created.
That's all i did, i didnt change anything at the php files yet.

When i work locally, i m able to see the sub-templates and assign them to some of my modules, with no problem.

But when i put the site online i get this error

Warning: require(/home/egnapost/public_html/modules/mod_k2_content/tmpl/default.php) [function.require]: failed to open stream: No such file or directory in /home/egnapost/public_html/modules/mod_k2_content/mod_k2_content.php on line 55

Fatal error: require() [function.require]: Failed opening required '/home/egnapost/public_html/modules/mod_k2_content/tmpl/default.php' (include_path='.:/opt/php53/lib/php') in /home/egnapost/public_html/modules/mod_k2_content/mod_k2_content.php on line 55

Also i cant see the sub-templates i created from the backend of the online site, but the override folders are at their place.

Am I doing something wrong?

Thanks for your time
yorgos

PS. If i set my online site's modules to use the default sub-template, the site works normally.
  • william white
  • william white's Avatar
11 Dec 2012 09:43
Replied by william white on topic Fatal error: Call to undefined function mb_interna

Fatal error: Call to undefined function mb_interna

Category: English K2 Community

Goto the k2 dashboard, check the information tab.
You will likely find that mb_string is not enabled on your server.
Contact your host and have them turn it on
  • Samantha
  • Samantha's Avatar
11 Dec 2012 09:13
Replied by Samantha on topic Blank Page

Blank Page

Category: English K2 Community

mmmm, as soon as I enabled that, I got the following:

Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() in /home/samprins/public_html/libraries/joomla/html/parameter.php on line 512

Strict Standards: Declaration of fancyboxClass::getHeaderLibrary() should be compatible with that of JAPopupHelper::getHeaderLibrary() in /home/samprins/public_html/plugins/system/japopup/fancybox/fancybox.php on line 17

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/k2/k2.php on line 306

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/k2/k2.php on line 27

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/k2/k2.php on line 120

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/jalazyload/jalazyload.php on line 37



And then when I go to the comments area to check what error I get, I see nothing but this:

Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() in /home/samprins/public_html/libraries/joomla/html/parameter.php on line 512

Strict Standards: Declaration of fancyboxClass::getHeaderLibrary() should be compatible with that of JAPopupHelper::getHeaderLibrary() in /home/samprins/public_html/plugins/system/japopup/fancybox/fancybox.php on line 17

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/k2/k2.php on line 306

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/plugins/system/k2/k2.php on line 27

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/admin.k2.php on line 14

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/admin.k2.php on line 18

Strict Standards: Non-static method K2HelperPermissions::checkPermissions() should not be called statically in /home/samprins/public_html/administrator/components/com_k2/admin.k2.php on line 39

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/components/com_k2/helpers/permissions.j16.php on line 19

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/components/com_k2/helpers/permissions.j16.php on line 20

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/admin.k2.php on line 66

Strict Standards: Declaration of K2ControllerComments::display() should be compatible with that of JController::display() in /home/samprins/public_html/administrator/components/com_k2/controllers/comments.php on line 15

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/views/comments/view.html.php on line 21

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/views/comments/view.html.php on line 22

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/views/comments/view.html.php on line 40

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/views/comments/view.html.php on line 41

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/models/comments.php on line 65

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/models/comments.php on line 68

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/models/comments.php on line 21

Strict Standards: Only variables should be assigned by reference in /home/samprins/public_html/administrator/components/com_k2/models/comments.php on line 24

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in /home/samprins/public_html/libraries/joomla/database/database/mysql.php on line 706



Any ideas?
  • Matt F
  • Matt F's Avatar
07 Dec 2012 01:51
Replied by Matt F on topic Slight issue with K2 on joomla-admin

Slight issue with K2 on joomla-admin

Category: English K2 Community

Hi William - You are correct. Here is the message I receive.

Fatal error: Call to undefined method stdClass::onDisplay() in /home2/domain/public_html/libraries/joomla/html/editor.php on line 459

Would you be able to help me with this?

Thank you!
  • United Online S.A.
  • United Online S.A.'s Avatar
06 Dec 2012 07:53 - 06 Dec 2012 07:54
Replied by United Online S.A. on topic Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Category: English K2 Community

Same issue here.
Using Gantry framework, and Cerulean Rockettheme template with Joomla 3.0.4 & K2 2.6.2

As soon as K2 was uninstalled, I had access to the template again.
  • Benny Van Den Heuvel
  • Benny Van Den Heuvel's Avatar
05 Dec 2012 13:27
Replied by Benny Van Den Heuvel on topic filtering the categories.

filtering the categories.

Category: English K2 Community

Hi,

thx for the re. I'm using joomla 2.5.8 and K2 2.6.1.
If we update to k2 2.6.2 there are fatal errors in the site.

grts,

Benny
  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar
05 Dec 2012 12:27 - 05 Dec 2012 12:28
Replied by DINALVA ROMANCINI on topic Doubts about the new extra fields features v2.6.2

Doubts about the new extra fields features v2.6.2

Category: English K2 Community

Hi William... the error is this:

Fatal error: Using $this when not in object context in /home/d/mysite/www/templates/protostar/html/mod_k2_content/gastes/default.php on line 9

Regards!

BTW: The code is working fine in category_item.php
  • Guntis Jansons
  • Guntis Jansons's Avatar
04 Dec 2012 14:11
Replied by Guntis Jansons on topic K2 - can't add category - getting blank

K2 - can't add category - getting blank

Category: English K2 Community

I'm getting:
Fatal error: Class 'JdFinderIndexerAdapter' not found in /var/www/vhosts/edgetech.lv/httpdocs/joomla1/plugins/finder/jdcontent/jdcontent.php on line 37
  • Alex
  • Alex's Avatar
03 Dec 2012 20:07

Fatal error attaching file Joomla 3.0.1. K2 2.6.1.

Category: English K2 Community

Is there any update on how to fix this issue?
  • Alby Mulder
  • Alby Mulder's Avatar
03 Dec 2012 19:24
after installing K2 website crashes was created by Alby Mulder

after installing K2 website crashes

Category: English K2 Community

I have just installed K2 2.6.2 in a Joomla 2.6 site, now my site is not functioning anymore. Even the admin is not available. What happend?


Fatal error: Cannot make static method JModel::addIncludePath() non static in class K2Model in /home/lactacar/public_html/administrator/components/com_k2/models/model.php on line 41
Displaying 601 - 620 out of 1119 results.

Powered by Kunena Forum