Keyword

K2 +PHP7

  • Anthony Walker
  • Anthony Walker's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #152877 by Anthony Walker
K2 +PHP7 was created by Anthony Walker
K2 component does not like PHP7. Sends lots of error messages about deprecated functions etc

If you are upgrading PHP please be aware. I went to PHP 5.6 meantime

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #152883 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 +PHP7

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

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

  • Anthony Walker
  • Anthony Walker's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #152890 by Anthony Walker
Replied by Anthony Walker on topic K2 +PHP7
Sorry I won't ask or put anything in here again. One look at that code is enough to scare anyone off. Joomla is meant to be a language where very little code is needed. I haven't got the slightest idea what you just tried to tell me. All I see is hundreds of lines of code. If these are errors that need fixed then forget it.
Last edit: 8 years 5 months ago by Anthony Walker. Reason: addition

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #152904 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 +PHP7

Joomla is meant to be a language where very little code is needed.


Have you looked at Joomla!'s repo?
You can grab the DEV version where these fixes have been applied.
github.com/getk2/k2/archive/master.zip

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

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

More
8 years 5 months ago #152929 by Alex
Replied by Alex on topic K2 +PHP7
But i also get some errors. Got K2 2.7 running.
Do i have to update something?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago - 8 years 5 months ago #152960 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 +PHP7
Hello,

Did you apply the patches or are you using the 2.7.1 DEV version - github.com/getk2/k2/archive/master.zip ?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 8 years 5 months ago by Krikor Boghossian.

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

More
8 years 5 months ago - 8 years 5 months ago #153001 by Alex
Replied by Alex on topic K2 +PHP7
I used the Joomla Update Manager, in Joomla 3.5, to update from K2 2.6.9 to 2.7.0.
I did nothing manually.
Last edit: 8 years 5 months ago by Alex.

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

More
8 years 5 months ago - 8 years 5 months ago #153006 by Alex
Replied by Alex on topic K2 +PHP7
Can i hide these warnings somehow? In joomla i have deactivated error reporting.
Last edit: 8 years 5 months ago by Alex.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #153064 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 +PHP7
Can you install the DEV version and see if that solves the issue?

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

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

More
8 years 5 months ago - 8 years 5 months ago #153242 by piet
Replied by piet on topic K2 +PHP7
Hello,

for me I think it was better. I just installed the dev version.

No more problem in the backend, but still have problem in frontend :
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_sigpro has a deprecated constructor in /www/plugins/content/jw_sigpro/jw_sigpro.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_allvideos has a deprecated constructor in /www/plugins/content/jw_allvideos/jw_allvideos.php on line 18

If you have a idea...?

Thank you.

update: no, sorry but same problem in the backend too...
Last edit: 8 years 5 months ago by piet.

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


Powered by Kunena Forum