- Posts: 12
COMMUNITY FORUM
K2 2.8 Fatal Error
- Eddie May
-
Topic Author
- Offline
- New Member
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
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 12
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 12
Disabled all, starting w/ Unite.
Same problem.
Cheers
Please Log in or Create an account to join the conversation.
- Eddie May
-
Topic Author
- Offline
- New Member
- Posts: 12
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 12
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 12
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.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
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
-
Topic Author
- Offline
- New Member
- Posts: 12
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 12
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
-
- Offline
- Platinum Member
- Posts: 15920
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.