- Posts: 12
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
- Aram
- Offline
- New Member
Less
More
5 years 10 months ago #170725
by Aram
Replied by Aram on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Had the same issue.
Andreas suggestion seems to work! I'm able to save profile changes.
Andreas suggestion seems to work! I'm able to save profile changes.
Please Log in or Create an account to join the conversation.
- Asim Gill
- Offline
- New Member
Less
More
- Posts: 1
5 years 10 months ago #170731
by Asim Gill
Replied by Asim Gill on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Im having the same issue. Running 7.2 and the latest Joomla right now. All of a sudden saving profile as a user was resulting in an Error 0. After deleting the line suggested here, the page successfully "saves" and reloads, but none of the changes are saved.
User can't edit anything including description and avatar image. Even deletion of avatar doesnt work.
Would really appreciate some help as this is a core feature I'm hoping to use!
I can make changes from the back-end as an administrator, but not as a user on the front-end.
User can't edit anything including description and avatar image. Even deletion of avatar doesnt work.
Would really appreciate some help as this is a core feature I'm hoping to use!
I can make changes from the back-end as an administrator, but not as a user on the front-end.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 10 months ago #170754
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Although I'm sure this was fixed prior to the release of K2 v2.9.0, you can always get the latest dev version installed on your site: github.com/getk2/k2/archive/master.zip
Let us know.
Let us know.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Dan Carroll
- Offline
- New Member
Less
More
- Posts: 3
5 years 1 month ago #173275
by Dan Carroll
Replied by Dan Carroll on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
I can confirm that this is *somewhat* of a problem still...
I've installed the latest version as per Fotis' suggestion.
I no longer receive the Error 0, however the changes will only save under some conditions..
It has to do with the password/password verify fields.
If you do not supply a password, or supply the password in both password+verify fields, the k2 profile as well as any other custom user plugins save.
If you only put the password in the password field (a lot of browsers pre-fill this for you) then only some of the data saves.
In this case:
* The basic user data saves.
* The user.profile plugin data saves.
* The k2 plugin data does not save.
* My own custom user plugin (same code as user profile, just extra fields) does not save.
I've installed the latest version as per Fotis' suggestion.
I no longer receive the Error 0, however the changes will only save under some conditions..
It has to do with the password/password verify fields.
If you do not supply a password, or supply the password in both password+verify fields, the k2 profile as well as any other custom user plugins save.
If you only put the password in the password field (a lot of browsers pre-fill this for you) then only some of the data saves.
In this case:
* The basic user data saves.
* The user.profile plugin data saves.
* The k2 plugin data does not save.
* My own custom user plugin (same code as user profile, just extra fields) does not save.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 month ago #173330
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
What happens if you disable the custom K2 and user plugins?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Dan Carroll
- Offline
- New Member
Less
More
- Posts: 3
5 years 1 month ago #173351
by Dan Carroll
Replied by Dan Carroll on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Thanks for coming back to this Fotis...
I found the problem after a day or two..
It seems my joomla template was missing the messages definition:
<jdoc:include type="message" />
When you only put one password in (even it if is correct) then Joomla thinks you are trying to change the password and fails because the passwords don't match.
I did not know this was the reason because I did not see the error message.
The strange thing is that without the messages definition, the save does not work, but when you include the message definition the save *does* work fine..
Either way, my conclusions are:
1. It's a joomla core issue.
2. It's not an issue when you properly build the template...
I found the problem after a day or two..
It seems my joomla template was missing the messages definition:
<jdoc:include type="message" />
When you only put one password in (even it if is correct) then Joomla thinks you are trying to change the password and fails because the passwords don't match.
I did not know this was the reason because I did not see the error message.
The strange thing is that without the messages definition, the save does not work, but when you include the message definition the save *does* work fine..
Either way, my conclusions are:
1. It's a joomla core issue.
2. It's not an issue when you properly build the template...
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 month ago #173353
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Glad it's resolved then :)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7