Re: Admin Profiles Support Thread
I am in the process of uploading the files for the admin folder now. As soon as it is done and I have access to the admin back-end again I will run the info.php tool that is built in. Normally I have that file (under some cryptic name) on my host anyhow, but I did not put it in this one because ZenCart has it built in. Then I can check the register_globals option.
As far as turning it off, I am not sure. I think I can override the php.ini file, will that do it? I will have to look at my host's help files to be sure how it is done, but I have seen mention of php.ini files with user setting in the host's support forums.
Re: Admin Profiles Support Thread
In a local environment changing the php.ini file works fine. In a hosted environment, I believe it depends upon how the host has set things up (cue: Dr Byte, who is rather more expert in this area than me).
Re: Admin Profiles Support Thread
Quote:
Originally Posted by kuroi
In a local environment changing the php.ini file works fine. In a hosted environment, I believe it depends upon how the host has set things up (cue: Dr Byte, who is rather more expert in this area than me).
php.ini or .htaccess
Documented here:
http://www.zen-cart.com/wiki/index.p...-_Installation
Re: Admin Profiles Support Thread
Quote:
Originally Posted by DrByte
My host is running php as cgi under phpsuexec, so it would be php.ini. Also it seems I will be needing to add it to every folder, as it effects on a per folder basis. Also, I have yet to confirm (files are still uploading) but I do believe that my host does have register_globals on by default.
Re: Admin Profiles Support Thread
The files are uploaded, and I have manually copied my php.ini file to every folder in the admin tree. I hope this is enough, as I don't want to have to do it for every folder in the carting system, and I don't know how to recursivly copy a single file to every folder in a given directory tree. If you know of the bash command that would do this it would be awesome.
I am going to try the install of 1.0.4 now. I never did find out if I have to do anything about my database. I guess I will find out soon enough.
########################################___
What is this extras folder in 1.0.4? It was not there before and the instructions have not changed from 1.0.3
Re: Admin Profiles Support Thread
1.0.4 isn't much different from 1.0.3 and really isn't needed if you're not using the User Tracking module.
This post contains a fix you can do to work around Register Globals = ON as Kuroi had suggested might be a problem:
http://www.zen-cart.com/forum/showth...836#post241836
Re: Admin Profiles Support Thread
I deleted everything in my admin folder and replaced them with the files from the download archive of the cart. I reinstalled the Image Handler mod. I manually added the php.ini file to every single directory in the admin tree. I added the php.ini file to most of the main folders for the rest of the cart (i.e. the root folder, the includes folder and sub folders, html area folder and sub folders, and all 1 level deep folders of the root folder). I confirmed register_globals is OFF.
Then I reinstalled the Admin Profiles mod following all instructions. I refreshed the admin home by clicking on the Admin Home link and . . . I am right back where I started. I have no menus and no permission to any admin page beyond index.php. :no: Now What??
########################################____
Is there anything I can look for in the database with phpMyAdmin to help?
Re: Admin Profiles Support Thread
Did you re-run the "install_admin_profiles.sql" file via phpMyAdmin to reset all the admin permissions?
Re: Admin Profiles Support Thread
I note that you refreshed the admin page. Is it possible that you might still be in the same session with a wrong user ID being held as a sessional variable?
Re: Admin Profiles Support Thread
Quote:
Originally Posted by DrByte
Did you re-run the "install_admin_profiles.sql" file via phpMyAdmin to reset all the admin permissions?
Yes
Quote:
Originally Posted by kuroi
I note that you refreshed the admin page. Is it possible that you might still be in the same session with a wrong user ID being held as a sessional variable?
Session?? Hmm . . . Let's try logging out, ok - then back in, and . . .
I have a menu!!! :yes:
OK I only need the three admins right now, but will need more later. Just for Sh172 an Grins I deletes the rows for admins 2 and 3 in phpMyAdmin from the admin table. Let me try to re-add one of them and see what it does.
##############################_
Ok the password didn't match and the validation caught it. Let's try again.
New user added!! :thumbsup:
Thank you -- Thank you -- Thank you.
I guess is was a combination of register_globals and having the same session.
You are both great, and you put up with me when I was frustrated and short tempered. I hold you both in high regards. Thank you for staying up with me tonight, now go to bed. I think I can get it from here - I think I will be calling in sick tomorrow also.
Once again thank you both.