• Page:
  • 1
  • 2

Profile front end not working properly 3 years 2 weeks ago #1

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
Hi,
It's probably something I've not done but when I click 'Update Profile', I get error 'page not found' - any idea why
Thanks
Paul
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #2

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
sorry forgot the error message
Too few arguments to function WallFactoryAvatar::canChangeAvatarSource(), 0 passed in /home/networds/public_html/components/com_wallfactory/models/profile.php on line 107 and exactly 1 expected
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #3

  • Erik F
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 5075
What Joomla version do you use?
Is then the profile saved?
thePHPfactory Team
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #4

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
Joomla! 3.9.26
The profile can be saved in the back end but not the front end
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #5

  • Erik F
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 5075
Have you enabled the error reporting?
what errors do appear expect the one mentioned?
thePHPfactory Team
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #6

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
I've enabled Debug but can't find an error message, where would it be?
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #7

  • Erik F
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 5075
Not debug in browser, Joomla error reporting.
thePHPfactory Team
The administrator has disabled public write access.

Profile front end not working properly 3 years 2 weeks ago #8

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
Joomla error reporting is set to maximum the only error message I get is
Too few arguments to function WallFactoryAvatar::canChangeAvatarSource(), 0 passed in /home/networds/public_html/components/com_wallfactory/models/profile.php on line 107 and exactly 1 expected
The administrator has disabled public write access.

Profile front end not working properly 3 years 1 week ago #9

  • Erik F
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 5075
Hi Paul,

try please the following. EDIT file:

components/com_wallfactory/models/profile.php 107

REPLACE:

if (!WallFactoryAvatar::canChangeAvatarSource()) {
$form->removeField('avatar_source');
}

WITH:

if (!WallFactoryAvatar::canChangeAvatarSource(JFactory::getUser()->id)) {
$form->removeField('avatar_source');
}

Let us know if this worked for you!
thePHPfactory Team
The administrator has disabled public write access.

Profile front end not working properly 3 years 1 week ago #10

  • Paul Blackburn
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 7
Yes, that did it!
Paul
The administrator has disabled public write access.
  • Page:
  • 1
  • 2