- Posts: 2
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Constant K2_JVERSION already defined in K2.php on line 21
Constant K2_JVERSION already defined in K2.php on line 21
- Marco
- Topic Author
- Offline
- New Member
Anybody know what this error comes from? Constant K2_JVERSION already defined in [web_dir]/plugins/system/k2/k2.php on line 21 and where do I start to investigate?
It appears in both front and back end.
I'm using Joomla! 3.x (last version) k2 (last version) Joomshaper Spectrum Template with PageBuilder PRO everything is up-to-date. Server has PHP 7.
Thanks,
Marco
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6218
$ find . -iname "*.php" | xargs grep "K2_JVERSION"
The above command will show you which files include this string.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Gorast
- Offline
- Premium Member
- Posts: 137
I got the notice on the back end and front end.
Site is also not visible on the front end. Only red message: 0 - Using $this when not in object context.
When I return to 7.0 I get this on the frontend:
Notice: Constant K2_JVERSION already defined in /home/puppetco/public_html/plugins/system/k2/k2.php on line 21
Deprecated: Non-static method Joomla\CMS\Application\SiteApplication::getMenu() should not be called statically in /home/puppetco/public_html/templates/t3_blank/local/tpls/default-tdm.php on line 21
Deprecated: Non-static method Joomla\CMS\Application\CMSApplication::getMenu() should not be called statically in /home/puppetco/public_html/libraries/src/Application/SiteApplication.php on line 275
Notice: Undefined variable: this in /home/puppetco/public_html/libraries/src/Application/CMSApplication.php on line 370
Notice: Only variables should be assigned by reference in /home/puppetco/public_html/templates/t3_blank/local/tpls/default-tdm.php on line 21
Fix for this?
Thanks,
Gorast
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6218
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Gorast
- Offline
- Premium Member
- Posts: 137
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6218
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Gorast
- Offline
- Premium Member
- Posts: 137
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6218
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Gorast
- Offline
- Premium Member
- Posts: 137
it is Falant related. Im on the latest version and I still get it.
I wrote to the developer.
Please Log in or Create an account to join the conversation.
- Bouey
- Offline
- New Member
- Posts: 7
You have to filter the plugin by system plugin order by "ordering ascending" and put the Falang - k2 after the System - k2
Best regards,
Stéphane
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Constant K2_JVERSION already defined in K2.php on line 21