Keyword

K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7

More
9 months 2 weeks ago #170725 by Aram
Aram replied the 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.

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

More
9 months 2 weeks ago #170731 by Asim Gill
Asim Gill replied the 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.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
9 months 2 weeks ago #170754 by Fotis
Fotis replied the 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.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
2 weeks 1 day ago #173275 by Dan Carroll
Dan Carroll replied the 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.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 days 1 hour ago #173330 by Fotis
Fotis replied the 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?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
2 days 22 hours ago #173351 by Dan Carroll
Dan Carroll replied the 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...

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 days 21 hours ago #173353 by Fotis
Fotis replied the topic: K2 Edit Profile shows Error in Frontend after change to PHP 7.2.7
Glad it's resolved then :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum