Keyword

K2 2.8 Fatal Error

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago - 7 years 8 months ago #163435 by Eddie May
K2 2.8 Fatal Error was created by Eddie May
Hi,
Upgraded K2 this afternoon & am now getting the following when creating/editing a K2 item

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

Joomla! Info:
PHP Version 7.0.22
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.7.5 Stable [ Amani ] 14-August-2017 12:09 GMT

MySQL version 5.6.36-82.1-log
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 128M
Memory limit 768M
Open remote files (allow url fopen) Yes

Any suggestions?

Thanks,
Eddie
Last edit: 7 years 8 months ago by Eddie May.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163436 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
Which other extensions and K2 plugins are you using?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163437 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
Which other extensions and K2 plugins are you using?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163439 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,
Thanks for quick reply - appreciated.

K2 Modules

mod_k2_comments Installed
mod_k2_content Installed
mod_k2_tools Installed
mod_k2_user Installed
mod_k2_users Installed
mod_k2_quickicons (administrator) Installed
mod_k2_stats (administrator) Installed

K2 Plugins

Finder - K2 Installed - Enabled
Search - K2 Installed - Enabled
System - K2 Installed - Enabled
User - K2 Installed - Enabled

Third-party Extensions

AllVideos (plugin) Installed
Simple Image Gallery Pro (plugin) Not Installed

Components
Akeeba Backup
JCE Editor Pro
JotCache
K2
Post-installation Messages
Regular Labs - Extension Manager
Unite Revolution Slider 2

Thanks,
Eddie

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163440 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
Can you try disabling extensions one by one to see which is causing this issue?

Start with Unite Revolution Slider 2

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163453 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,
Disabled all, starting w/ Unite.
Same problem.
Cheers

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163454 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,

Looking at K2 categories I get the following warning:

Warning: Declaration of K2ElementExtraFieldGroups::render() should be compatible with K2Element::render($layoutId, $data = Array) in /home/..../public_html/plugins/k2/mefgfork2/elements/extrafieldgroups.php on line 14


Cheers,

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163455 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
I cannot verify this issue, nor has it been reported by other users using 2.8 or 2.8 DEV. Is this issue present in other sites as well?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163456 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Sorry,
2 more warnings when editing K2 category:

Warning: Declaration of K2ElementMultiSelects::render() should be compatible with K2Element::render($layoutId, $data = Array) in /home/.../public_html/plugins/k2/mefgfork2/elements/multiselects.php on line 0

Warning: Declaration of K2ElementImages::render() should be compatible with K2Element::render($layoutId, $data = Array) in /home/.../public_html/plugins/k2/mefgfork2/elements/images.php on line 0

Cheers,

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163458 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
These are coming from a 3rd party K2 extension.
Try disabling this extension (mefgfork2) as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163459 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
These are coming from a 3rd party K2 extension.
Try disabling this extension (mefgfork2) as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163463 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,
Disabled mefgfork2 - error msgs disappeared when editing a category.

However, still can't edit a K2 item:
Fatal error: Cannot declare class upload, because the name is already in use in /home/.../public_html/administrator/components/com_k2/lib/class.upload.php on line 624

Cheers,

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #163464 by JoomlaWorks
Replied by JoomlaWorks on topic K2 2.8 Fatal Error
As the original error indicates, there is already another instance of class.upload.php being loaded first, causing issues in K2. As for the warnings you get, just switch error reporting to none or default in Global Configuration.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163472 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,
There is another instance of class.upload.php in /media/k2/assets/vendors/verot/class.upload.php/src/
Removing the directory leads to another fatal error - missing the verot version of class.upload.php

This issue has only arisen since updating K2 to 2.8. The verot class was updated as part of the k2 2.8 upgrade.

Kind regards,

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163501 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
As you can see -> github.com/getk2/k2/tree/master/components/com_k2 the /lib/ folder is not present in the 2.8.x version.

Try renaming that folder and see if the error is gone. Better yet clear all caches and reinstall 2.8 before performing any tasks.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Eddie May
  • Eddie May's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #163512 by Eddie May
Replied by Eddie May on topic K2 2.8 Fatal Error
Hi,

Thanks for following up on this.

I'm wondering if my upgrade went bad or something, since I still had these files in my structure, despite upgrading from the Joomla Extensions/manage/Update route.

I've now downloaded the 2.8 zip & installed that over K2 using Extensions/manage/Install route.

K2 now says it's running 2.8 -> (Last update: August 18th, 2017 - Version 2.8.0)

However, I'm still getting fatal errors on save:

Warning: require_once(/home/.../public_html/administrator/components/com_k2/lib/class.upload.php): failed to open stream: No such file or directory in /home/..../public_html/plugins/system/k2multiimages/K2MultiImages/administrator/models/itemmultiimages.php on line 5

Fatal error: require_once(): Failed opening required '/home/.../public_html/administrator/components/com_k2/lib/class.upload.php' (include_path='.:/usr/local/php70/pear') in /home/.../public_html/plugins/system/k2multiimages/K2MultiImages/administrator/models/itemmultiimages.php on line 5

However, disabling the k2multiimages plugin allows me to save items. Perhaps this extension needs updating to account for the removal of class.upload.php from the lib folder?

Thanks again for your assistance - much appreciated.

Regards,
Eddie

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163513 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 2.8 Fatal Error
Yes, the culprit was found :)
Report this issue to the K2 Multi Image devs so they can provide a solution and a possible update.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum