- Posts: 4
COMMUNITY FORUM
plgK2Userextendedfields has a deprecated constructor
- Circolo fotografico Estate 1826
-
Topic Author
- Offline
- New Member
Less
More
7 years 11 months ago #162357
by Circolo fotografico Estate 1826
plgK2Userextendedfields has a deprecated constructor was created by Circolo fotografico Estate 1826
Dear all,
I can't find a solution for this message: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgK2Userextendedfields has a deprecated constructor in /web/htdocs/www.
.it/home/plugins/k2/userExtendedFields/userExtendedFields.php on line 16.
After upgrading to PHP7 this message apeared. I tried installing the lasted version 3.0 but it does not seem to change anything. I've also tried to change userExtendedFields.php but then I get the site not working anymore.
Could you help me out on what to replace in the code?
Best regards
I can't find a solution for this message: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgK2Userextendedfields has a deprecated constructor in /web/htdocs/www.
.it/home/plugins/k2/userExtendedFields/userExtendedFields.php on line 16.
After upgrading to PHP7 this message apeared. I tried installing the lasted version 3.0 but it does not seem to change anything. I've also tried to change userExtendedFields.php but then I get the site not working anymore.
Could you help me out on what to replace in the code?
Best regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162366
by Krikor Boghossian
Replied by Krikor Boghossian on topic plgK2Userextendedfields has a deprecated constructor
Hello,
Which version of K2 are you using?
Which version of K2 are you using?
Please Log in or Create an account to join the conversation.
- Circolo fotografico Estate 1826
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
7 years 11 months ago #162367
by Circolo fotografico Estate 1826
Replied by Circolo fotografico Estate 1826 on topic plgK2Userextendedfields has a deprecated constructor
I'm using the k2 version 2.8.0
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162372
by Krikor Boghossian
Replied by Krikor Boghossian on topic plgK2Userextendedfields has a deprecated constructor
It has been fixed in the repository
github.com/getk2/user-extended-fields-for-k2
github.com/getk2/user-extended-fields-for-k2
Please Log in or Create an account to join the conversation.
- Circolo fotografico Estate 1826
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
7 years 11 months ago #162381
by Circolo fotografico Estate 1826
Replied by Circolo fotografico Estate 1826 on topic plgK2Userextendedfields has a deprecated constructor
That did the trick.
Thanks for your fast support!
Thanks for your fast support!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162386
by Krikor Boghossian
Replied by Krikor Boghossian on topic plgK2Userextendedfields has a deprecated constructor
You 're welcome :)
Please Log in or Create an account to join the conversation.