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

Advanced Search

Search Options

Search Results Displaying 41–60 out of 1118 results.

English K2 Community 7 years 2 weeks ago

Call to a member function isSite() on null

I just upgraded our dev site to K2 2.10.0 and was really excited to see the new look of the back end item administration page.

But I cannot edit any K2 items. If I click on any of the item titles, where normally I would get the edit form, instead I get a KException Error | Fatal Error

Call to a member function isSite() on null.

The line complained about is:

.../administrator/templates/isis/html/com_k2/item/default.php:15

...which is: <?php if($this->mainframe->isSite()): ?>

I have tried clearing the cache, the expired cache, logging out and logging back in again. Before I start disassembling my site to see if there's an extension conflict, can anyone shed any light on what this error means?

I have the whole exception handling and error handling story if that would help.

I am able to edit K2 categories and users
English K2 Community 7 years 6 months ago

Memory exhausted

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
English K2 Community 7 years 6 months ago

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

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.
English K2 Community 7 years 7 months ago

Undefined error

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.
English K2 Community 7 years 7 months ago

Multiple issues after upgrade to Joomla 3.9.5

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.
English K2 Community 7 years 7 months ago

Undefined error

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
English K2 Community 7 years 9 months ago

Fatal error: Cannot declare class K2ModelItemlis

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.
English K2 Community 7 years 10 months ago

Fatal error: Cannot declare class K2ModelItemlist, because the name is already i

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.
English K2 Community 7 years 10 months ago

Fatal error: Cannot declare class K2ModelItemlis

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
English K2 Community 7 years 10 months ago

Fatal error: Cannot declare class K2ModelItemlist, because the name is already i

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
English K2 Community 7 years 10 months ago

Front end editor is displays a blank page

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
English K2 Community 8 years 2 weeks ago

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

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
English K2 Community 8 years 2 weeks ago

Some K2 Articles are blank pages

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
English K2 Community 8 years 1 month ago

Class Upload PHP causing save issues

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.
English K2 Community 8 years 1 month ago

Content Not Displaying for one Category

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.
English K2 Community 8 years 1 month ago

Content Not Displaying for one Category

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:

Item Access Error Message

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.
English K2 Community 8 years 2 months ago

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

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
English K2 Community 8 years 4 months ago

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

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.
English K2 Community 8 years 4 months ago

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

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.
English K2 Community 8 years 6 months ago

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

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.