Elxis CMS Forum

Support => Administration => Topic started by: mmarch on August 14, 2007, 13:40:43

Title: Can't update user profile
Post by: mmarch on August 14, 2007, 13:40:43
Hi!!!

I have problem with update a user profile from Front end. To existing user fields i added new one. After that i login like a user and tried update new field, but unfortunately after pushing update button nothing not happen.

Why ???
Title: Re: Can't update user profile
Post by: eliasan on August 14, 2007, 14:32:45
Hi,

You create new Extra Fields from Site -> User Manager -> Extra Fields -> New.
Among the parameters of Extra Fields is one called "Read Only".
If this one is set to "Yes", then you cannot change its value from public frontend.
Is this the case?
Title: Re: Can't update user profile
Post by: mmarch on August 14, 2007, 14:38:14
OkI will check itnow, and let you know.

Thanks
Title: Re: Can't update user profile
Post by: mmarch on August 14, 2007, 14:40:46
No there was OK This field was Not Read Only.

Title: Re: Can't update user profile
Post by: mmarch on August 16, 2007, 12:19:58
Is it possible that this problem is that i use 3d party add-ons. I has similar problem on one of my sites with 3d part add-ons, but i have not this problem with sites where i didn't use a 3rd party add-ons?

Is it possible, and how i can get it know?
Title: Re: Can't update user profile
Post by: mmarch on August 16, 2007, 12:24:27
Few days ago installed add-on to FF - FireBug and checked problem.

document.adminForm has no properties
http://www.andersonstownleisurecentre.info/includes/js/mambojavascript.js
Line 348 -

Code: [Select]
* Submit the admin form
*/
function submitform(pressbutton){
document.adminForm.task.value=pressbutton;
try {
document.adminForm.onsubmit();
}
catch(e){}
document.adminForm.submit();
}

348 line - document.adminForm.task.value=pressbutton;

Is it possible to fix it?
Title: Re: Can't update user profile
Post by: Ivan Trebješanin on August 16, 2007, 14:07:21
Don't touch any script/php. I would try to reinstall Elxis. Just remember to backup the DB
Title: Re: Can't update user profile
Post by: mmarch on August 16, 2007, 16:56:26
Yeaa, i did it  >:( I reinstalled and after that installed 3rd part addons. After that i am unable to update user profile from front end. And add-on for FF - FireBug gave me this error.

Title: Re: Can't update user profile
Post by: kboy_16 on September 17, 2007, 09:02:17
Hello all.. I really need your help.. Today i installed elxis.. and i got in the administration, i went to the Global Configuration but whenever i try to save it says a javascript error: 'document.adminForm.task' is null or not an object

I'm using IE 7 and also tried it with Firefox with no success.. :(
I don't know how to fix this.. Could someame please guide me.. Thank u in advance! Regards.
Title: Re: Can't update user profile
Post by: datahell on September 17, 2007, 10:21:42
This is a general javascript function that is used from ALL backend and many front-end components and there is no problem with that function. If there was a problem with that function it would be impossible to save anything. Why it does not work for you? I don't know. Maybe you miss some files. Does this problem happens only in a certain component or everywhere?

If it is for frontend Elxis 2006.x loads mambojavascript.js ONLY if you have login in the site. So, in that case, you will have problem for sure. But not logged in users are not allowed to post anything. So, normaly: no problem.

Notice: Elxis 2008.x always loads elxis.js regardless if you are logged in or not. mambojavascript.js removed from Elxis 2008.
Title: Re: Can't update user profile
Post by: kboy_16 on September 17, 2007, 16:52:10
Hi datahell, thank u for your answer.. I uploaded all the files from the administrator folder.. This problem just happens in the Global Configuration.. I can save in the others administration sections..
Title: Re: Can't update user profile
Post by: datahell on September 17, 2007, 19:39:01
Hmmmm......
Two cases of which the first is the most likely:

1. Your php misses posix functions.
Open /administrator/components/com_config/admin.config.html.php
Comment lines 839, 840 and 841:
//                $owner = @fileowner( $mosConfig_absolute_path );
//                $owner = @posix_getpwuid($owner);
//                $owner = $owner['name'];
Write bellow:
$owner = 'Unknown';

Save the file.
Done.
2. You have setup wrong FTP.
Check FTP path.
Title: Re: Can't update user profile
Post by: kboy_16 on September 17, 2007, 21:59:43
thanks a lot datahell!!  ;) :D that would do the trick.. now it's working!
Title: Re: Can't update user profile
Post by: datahell on September 17, 2007, 23:02:36
You will have the same issue in tool "chmod". If you use this tool you can fix it the same way.
Posix functions are also used in filemanager.
Elxis 2008 checks if you have posix installed before use it's functions.

Notice: Posix functions are in the standard php distribution and exist in almost 99% of the servers.
Title: Re: Can't update user profile
Post by: kboy_16 on September 18, 2007, 03:53:36
OK Datahell.. and when will Elxis 2008 be released?