Keyword

Advanced Search

Search Results (Searched for: Fatal Error K2)

  • Envidea
  • Envidea's Avatar
24 May 2019 23:05
Memory exhausted was created by Envidea

Memory exhausted

Category: English K2 Community

Hi,

My K2 installation needs a lot of memory:

FastCGI: server "/var/www/domain.com/cgi-bin/php5.fcgi” stderr: PHP message: PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /var/www/domain.com/htdocs/components/com_k2/helpers/route.php on line 108, referer: www.domain.com/

Does anyone know why and can you help me?

Thanks
  • JoomlaWorks
  • JoomlaWorks's Avatar
23 May 2019 23:17

White screen on item new/edit screen PHP7, Joomla 3x, and K2 2.9 and 2.10

Category: English K2 Community

K2 is tested against all PHP versions from 5.6 up to 7.3. Seeing that the output is halfway broken, this could indicate a third party plugin that it's not up to date or not compatible with PHP 7.3.

Just switch error reporting to "maximum" in Joomla's Global Configuration and you'll see the exact error occurring.

If you can't switch the site's error reporting to "maximum", then look in your site's error logs for "fatal" errors specifically.
  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Apr 2019 21:33
Replied by JoomlaWorks on topic Undefined error

Undefined error

Category: English K2 Community

The first notice references a 3rd party plugin - it's not K2 core so you should ask the developer of that plugin. If you used this for filtering, see newer and more up to date alternatives from joomreem.com and joomcar.net.

The 2nd fatal error is indeed related to mb_string specific functions and I'm guessing the hosting company upgraded your site to PHP 7.2 or 7.3 without installing the php-mbstring module first.
  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Apr 2019 21:11
Replied by JoomlaWorks on topic Multiple issues after upgrade to Joomla 3.9.5

Multiple issues after upgrade to Joomla 3.9.5

Category: English K2 Community

Install K2 v2.9.1 (dev) on top of 2.9.0 from: github.com/getk2/k2/archive/master.zip

This should resolve the countable() warnings in PHP 7.2+.

The error "Using $this when not in object context" which probably causes a fatal error in the frontend may come from a 3rd party extension that utilizes K2 content.

A URL to your site(s) would also help.
  • Martie de Kock
  • Martie de Kock's Avatar
22 Apr 2019 20:19
Undefined error was created by Martie de Kock

Undefined error

Category: English K2 Community

www.resulte.co.za

I've got the latest Joomla version installed
but I get these 2 errors when I switch site error settings to developer mode

Notice: Use of undefined constant php - assumed 'php' in /home/resulteco/public_html/plugins/system/k2filter/k2filter.php on line 1

( not sure what to do here?)


Fatal error: Call to undefined function mb_internal_encoding() in /home/resulteco/public_html/components/com_k2/helpers/route.php on line 86

( I've asked hosting company to enable the mb string)

Please advise

Kind regards
Martie
  • JoomlaWorks
  • JoomlaWorks's Avatar
05 Feb 2019 23:42
Replied by JoomlaWorks on topic Fatal error: Cannot declare class K2ModelItemlis

Fatal error: Cannot declare class K2ModelItemlis

Category: English K2 Community

These modules are probably old and don't utilize K2 code as they should. Check if there are newer versions for these modules and upgrade. If there are no new versions, I would highly recommend you switch to the K2 Content module.

If you get any PHP warnings/notices for core K2 (not the third party modules), update to K2 v2.9.1 (dev) from github.com/getk2/k2/archive/master.zip and they will be resolved.
  • JoomlaWorks
  • JoomlaWorks's Avatar
05 Feb 2019 20:51
Replied by JoomlaWorks on topic SQL Sentence to select items by Tag

SQL Sentence to select items by Tag

Category: English K2 Community

K2 v2.9.1 (dev) hosted on GitHub (github.com/getk2/k2/archive/master.zip) works just fine up to PHP 7.2 and should work just fine with 7.3 as well.

What K2 version are you using? Additionally, the errors you get are basically bad code in there 3rd party modules. Did you check for possible updates in these modules? The ones you use may be too old.
  • Akram Helali
  • Akram Helali's Avatar
02 Feb 2019 13:15

Fatal error: Cannot declare class K2ModelItemlis

Category: English K2 Community

Dear support,
Before of all I want to thank you for the efforts you made for this forum,
I'm the webmaster of the dunevoices.infotike.com news online website, (Joomla 3.9.2/PHP 7.2.13)
All works well and fine but after updating my PHP version (request by my provider for a vulnerabitily reasons till 31/12/2018) I'm issuing a fatal error problem in mys Joomla K2 component
The problem :
Fatal error: Cannot declare class K2ModelItemlist, because the name is already in use in /home/djogr0/public_html/infotike/dunevoices/components/com_k2/models/itemlist.php on line 1117
The link with problem is:
dunevoices.infotike.com/index.php/fr/algerie/frontiere
The module used is : YJ Newsflash 4
But I tried to use other modules like YJ Module Engine, Latest News Enhanced and the issue is always in the same line in the same sub categories level.
But the module works well in the level (dunevoices.infotike.com/index.php/fr/algerie/) witch is one level before the path (dunevoices.infotike.com/index.php/fr/algerie/frontiere).
Can you please help me to correct the issue. And thank you for your professionalism and habitual support.
Is there any update of the framework K2 and free extentions tools after the PHP 7.2 update, because from this date we issue many problems, and I was obliged to change extentions or to personalise some code like you suggest in your forums,
Best regards
  • Akram Helali
  • Akram Helali's Avatar
01 Feb 2019 11:19 - 02 Feb 2019 13:13
Replied by Akram Helali on topic SQL Sentence to select items by Tag

SQL Sentence to select items by Tag

Category: English K2 Community

Dear support,
I'm issuing a fatal error problem in mys Joomla K2 component
The problem :
Fatal error: Cannot declare class K2ModelItemlist, because the name is already in use in /home/djogr0/public_html/infotike/dunevoices/components/com_k2/models/itemlist.php on line 1117
The link with problem is:
dunevoices.infotike.com/index.php/fr/algerie/frontiere
The module used is : YJ Newsflash 4
But I tried to use YJ Module Engine, Latest News Enhanced and the issue is always in the same line in the same sub category level.
But the module works well in the level (dunevoices.infotike.com/index.php/fr/algerie/) witch is one level before the path (dunevoices.infotike.com/index.php/fr/algerie/frontiere).
Can you please help me to correct the issue. And thank you for your professionalism and habitual support.
Is there any update of the framework K2 and free extentions tools after the PHP 7.2 update, because from this date we issue many problems, and I was obliged to change extentions or to personalise some code like you suggest in your forums,
Best regards
  • Phil Morton
  • Phil Morton's Avatar
21 Jan 2019 20:05
Front end editor is displays a blank page was created by Phil Morton

Front end editor is displays a blank page

Category: English K2 Community

hello

Joomla site, the front end editor, which is accessed and displayed when a registered member is logged in displays a blank page and not the `edit item form`

I am using K2 version 2.9.0
Joomla version 3.9.1
php 7,1,22
on a local host wamp server
Template - Rocket them plethora

Front end editor stop working some time ago, maybe 2-3 years.
I am now returning to this issue.

If I switch on error reporting, this is the main text I see.

Warning: require_once(C:\wamp64\www\id61 network site\libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or

directory in C:\wamp64\www\id61 network site\templates\rt_plethora\error.php on line 138


Fatal error: require_once(): Failed opening required 'C:\wamp64\www\id61 network site\libraries/joomla/document/html/renderer/head.php'

(include_path='.;C:\php\pear') in C:\wamp64\www\id61 network site\templates\rt_plethora\error.php on line 138

help most appreciated in this matter

Phil Morton
  • Chad Criswell
  • Chad Criswell's Avatar
20 Nov 2018 19:43

White page/ memory error in back end when trying to list K2 items or users

Category: English K2 Community

We noticed that our search page wasn't filling in information any more after upgrading K2 to the current version.

www.glasspatterns.com/en/search-tutorials.html?f[g][4][]=3

If I click K2>Users I get a white page but without any relevant errors.

When I go into the back end and click on K2>Items I get a white page. With error reporting turned on I get:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/glasspa1/public_html/libraries/joomla/database/driver/mysqli.php on line 887 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/glasspa1/public_html/libraries/vendor/joomla/registry/src/Registry.php on line 89 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/glasspa1/public_html/libraries/joomla/database/driver.php on line 2043 Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0

Any idea what I need to do? for additional plugins I know we are using Filter For K2 and plg_searcher_k2 by Styleware
  • Fábio Jordan
  • Fábio Jordan's Avatar
14 Nov 2018 22:07
Replied by Fábio Jordan on topic Some K2 Articles are blank pages

Some K2 Articles are blank pages

Category: English K2 Community

Hi, Fotis. Thanks for the compliment.

So, I have enabled it, there's a lot of notices (with Undefined property), some warnings (about A non-numeric value encountered) and a few deprecateds (like Non-static method K2ModelItem::getItemTags). Those are errors in my K2 files in the template folder.

But, I get a warning of preg_match(): Unknown modifier '/' about cache file.

And also a PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16384 bytes) in /home/cafecomf/public_html/plugins/content/jw_sigpro/jw_sigpro/includes/helper.php on line 266

I have no clue how to solve it right now, just saw on Google Search Console theres 20 pages with the same problem. But this is very odd.

Any help is appreciated.

Thanks again!

Regards
  • Gary Hewitt
  • Gary Hewitt's Avatar
02 Nov 2018 21:31
Class Upload PHP causing save issues was created by Gary Hewitt

Class Upload PHP causing save issues

Category: English K2 Community

I have read a bunch of issues on this forum about upgrading k2 beyond 2.6.9 and having save issues. I too have this issue. It has something to do with the class.upload.php file duplication. I decided on a test duplicate site I would uninstall k2 and reinstall it to see if that fixed the issue. What I got back was crap.

Fatal error: require_once(): Failed opening required '/var/www/vhosts/testsite.com/httpdocs/administrator/components/com_k2/lib/class.upload.php' (include_path='.:/opt/plesk/php/5.6/share/pear') in /var/www/vhosts/testsite.com/httpdocs/plugins/system/rebuild/rebuild.php on line 16

When I look at the ftp for the site the com_k2 is gone, but now I can't load my administrator site, nor does the frontend work. What is this error and how do I fix it. After fixing this, how do I correct this issue on my live site?

On the live site I have already tried installing k2 rather than upgrading and it doesn't fix anything.
Before uninstalling this I looked through the source code of my item page to see what else was loading to cause this duplication of class.upload.php and there was only your script and JCE. JCE is up to date.
  • JoomlaWorks
  • JoomlaWorks's Avatar
02 Nov 2018 12:47
Replied by JoomlaWorks on topic Content Not Displaying for one Category

Content Not Displaying for one Category

Category: English K2 Community

First off, the error page is broken because it was built for Joomla 1.5. Simply copy the error page from the /templates/system/ folder or just delete the error.php file in your template.

The errors you mention at the top of your post indicate fatal PHP errors because of missing files which are "required" by some plugin I guess. I'm saying plugin and not something else because you directly called the page with ?tmpl=component. That's why calling the same page with just the K2 URL params also breaks.

Start by disabling your active content plugins first, one by one. Then do the same for system plugins.
  • Timothy Michel
  • Timothy Michel's Avatar
02 Nov 2018 03:36 - 02 Nov 2018 04:17
Replied by Timothy Michel on topic Content Not Displaying for one Category

Content Not Displaying for one Category

Category: English K2 Community

Thanks Fotis, no, the component doesn't load, nor do any of the main content modules.

Here are the error messages for today:
[Thu Nov 01 19:05:15 2018] [warn] [client 46.229.168.148] mod_fcgid: stderr: PHP Warning: require(/mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/../symfony/polyfill-php71/bootstrap.php): failed to open stream: No such file or directory in /mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/autoload_real.php on line 66 [Thu Nov 01 19:05:15 2018] [warn] [client 46.229.168.148] mod_fcgid: stderr: PHP Warning: require(/mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/../symfony/polyfill-php71/bootstrap.php): failed to open stream: No such file or directory in /mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/autoload_real.php on line 66 [Thu Nov 01 19:05:15 2018] [warn] [client 46.229.168.148] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required '/mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/../symfony/polyfill-php71/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /mnt/data/vhosts/casite-610118.cloudaccess.net/httpdocs/libraries/vendor/composer/autoload_real.php on line 66

If I call the item using the link from menu manager like:
https://www.911tap.org/index.php?option=com_k2&view=item&layout=item&id=607

I get the following:



If I call the item using the menu item alias, you can see the results by navigating to this link:
https://www.911tap.org/welcome-to-the-9-11-truth-action-project

This is not spam.

There are still ACYMailing plugins that give PHP warnings, but I don't think this has anything to do with the current issue.

Carlos Camera, at ACYBA, said that they have been updating their plugins, and that I should download and install all of their plugins, even if the version numbers are the same, because he has been going through and updating them on the fly as error reports come in. So I have done that.

There is no ACYMailing code on the page. I simply provide ACYMailing a link to the item/article, so that if the ACYMailing plugin receives a response from some subscription confirmation email, the page gets displayed in the browser.

I am getting the same result for other items in the "HIdden" menu that aren't in any way related to ACYMailing.

The JFBConnect plugin is called on every page, but that includes items included in the "Nav" bar and they all load without problem.
  • Craig Hamilton
  • Craig Hamilton's Avatar
04 Oct 2018 09:21 - 04 Oct 2018 11:12
Replied by Craig Hamilton on topic Edit Item, White Screen K2 2.8 and doesn't save

Edit Item, White Screen K2 2.8 and doesn't save

Category: English K2 Community

I have the same issue even now using the latest Joomla 3.8.2 and K2 v2.9.0 and PHP 7.1. Theme is Gk Storefront

Error reporting shows this...

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; upload has a deprecated constructor in /public_html/administrator/components/com_k2/lib/class.upload.php on line 624

Fatal error: Cannot declare class upload, because the name is already in use in /public_html/administrator/components/com_k2/lib/class.upload.php on line 624

I have tried to replace the class.upload.php from GitHub to latest version but still not working. This gives this new error code still with white screen...

Fatal error: Cannot declare class upload, because the name is already in use in /public_html/administrator/components/com_k2/lib/class.upload.php on line 36

Thanks in advance
  • Nadal Kumar
  • Nadal Kumar's Avatar
04 Aug 2018 01:05 - 04 Aug 2018 01:11
Replied by Nadal Kumar on topic Author alias - seems links back to homepage.....

Author alias - seems links back to homepage.....

Category: English K2 Community

The conditional statements should look like the following

category_item.php
<?php if($this->item->params->get('catItemAuthor')): ?> <!-- Item Author --> <span class="catItemAuthor"> <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <?php if(isset($this->item->author->link) && $this->item->author->link): ?> <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a> <?php else: ?> <?php echo $this->item->author->name; ?> <?php endif; ?> </span> <?php endif; ?>

item.php
<?php if($this->item->params->get('itemAuthor')): ?> <!-- Item Author --> <span class="itemAuthor"> <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <?php if(empty($this->item->created_by_alias)): ?> <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a> <?php else: ?> <?php echo $this->item->author->name; ?> <?php endif; ?> </span> <?php endif; ?>

It's not only about that single missing page. Any 404 missing page returns the fatal error. You should still check the template's error.php to correct the reported fatal error as it will affect your search status and build a sizeable error log file over time. If you can't define the problem, delete the file error.php and Joomla will default to the file in the system folder.
  • Nadal Kumar
  • Nadal Kumar's Avatar
03 Aug 2018 17:35 - 03 Aug 2018 17:47
Replied by Nadal Kumar on topic Author alias - seems links back to homepage.....

Author alias - seems links back to homepage.....

Category: English K2 Community

It seems the problem may be with your site's template. It runs into a fatal error when 404 is determined. I clicked ourdogsinternational.com/info-pages/kennel-clubs and the below error returned.

---
Fatal error: require_once(): Failed opening required '/home/ourdogsi/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/local/php56/pear') in /home/ourdogsi/public_html/templates/cloudbase3/error.php on line 78

Try switching to the Joomla Protostar template and run some tests.

It may also be as Krikor suggested previously, that you may be using author aliases so there will be no destination. The author link for posts by Administrator works fine ourdogsinternational.com/show-reports/east-europe/montenegro/author/62-administrator.

The default K2 template does not link an alias so it may be that you are using an override which has removed the conditional statement.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 May 2018 21:43 - 16 May 2018 21:44

Fetch items from children categories: YES, PHP Fatal error: Allowed memory size

Category: English K2 Community

I tried to reproduce the issue with no luck
jmp.sh/ok0XqVu
jmp.sh/6L22zpT

Which version of PHP are you using? Any other K2 related extensions?
Are you using Apache or Nginx?
For the time being you can select directly the three subcategories.
  • Lapo_78
  • Lapo_78's Avatar
11 May 2018 18:25 - 14 May 2018 12:47

"libraries/src/Language/Language.php on line 797"

Category: English K2 Community

Hi,
if ia enable k2_content module on item i get this error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 73728 bytes)
DOMAIN/libraries/src/Language/Language.php on line 797"

and

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/DOMAIN/libraries/vendor/joomla/registry/src/Registry.php on line 85

k2 2.8
joomla 3.8.6
Displaying 41 - 60 out of 1119 results.

Powered by Kunena Forum