Results 1 to 8 of 8

Thread: [error] 403 Forbidden with admin account

  1. #1
    gtg182s is offline Member
    Join Date
    Jun 2008
    Posts
    11

    Default [error] 403 Forbidden with admin account

    I did a fresh installation on sugarcrmce 5.0.0f. I made a small changes to Contact module to add active_ind field. Here's what I've done:

    ===vardef.php==== //add active_ind
    'active_ind' =>
    array (
    'name' => 'active_ind',
    'vname' => 'LBL_ACTIVE_IND',
    'type' => 'varchar',
    'len' => '6',
    ),

    ===en_us.lang.php=== //add active_ind lable
    'LBL_ACTIVE_IND' => 'Active Indicator',


    With that I click on "Quick Repair and Rebuild" and repair Contact module. It shows:

    Differences Found Between Database and Vardefs
    ....
    /* Table : contacts */
    /*COLUMNS*/
    /*MISSING IN DATABASE - active_ind - ROW*/
    /* INDEXES */
    ALTER TABLE contacts add column active_ind varchar(6) NULL ;

    I click on Execute and it gives me 403 Forbidden both on IE and Firefox.

    I can manually add a column in the database but I prefer not to do it this way. Anyone know how I can resolve this?


    I'm using IE7 and Firefox 2.0.0.14


    Thank You,
    Tri

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: [error] 403 Forbidden with admin account

    403 is an authentication error. You do not have access to change the database with the user you are using.

    Is you sugar user the admin? If not try it and run it again.

    Good luck, Paris

  3. #3
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: [error] 403 Forbidden with admin account

    What happens if you add the field in studio instead? Or is there a particular reason to do it manually?
    Re. the 403 error: It's strange because this means that your webserver doesn't have access to a file or a directory. I do not think that this is a db error. Set the permissions for the entire Sugar directory (incl. subs) to 777 (don't forget to reset it afterwards) and try again.

    And just in case I'm wrong - check your db user in config.php and his permissions for your Sugar db. He should be able to alter a table. If not change accordingly and try again.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  4. #4
    gtg182s is offline Member
    Join Date
    Jun 2008
    Posts
    11

    Default Re: [error] 403 Forbidden with admin account

    I'm using admin account and I can add it in studio. The reason I dont add it in studio is because if I add a new field in studio it will be in another table "contact_cust" or something like that. If I added in vardef it will be in the same table.

    I've check role list for admin user and it has all access to module and action.
    Yes I've checked config.php and it uses the correct db user, root(admin user for mysql). So the problem is not DB permission.

    Now how do I set permission for Sugar directory to 777? I'm using window and it doesnt have chmod command (maybe a cacls). I think I've full access, I've look in Sugar directory properties and it has all permission (under Security Tab).

    Thanks,
    Tri


    Quote Originally Posted by roblaus
    What happens if you add the field in studio instead? Or is there a particular reason to do it manually?
    Re. the 403 error: It's strange because this means that your webserver doesn't have access to a file or a directory. I do not think that this is a db error. Set the permissions for the entire Sugar directory (incl. subs) to 777 (don't forget to reset it afterwards) and try again.

    And just in case I'm wrong - check your db user in config.php and his permissions for your Sugar db. He should be able to alter a table. If not change accordingly and try again.

  5. #5
    gtg182s is offline Member
    Join Date
    Jun 2008
    Posts
    11

    Default Re: [error] 403 Forbidden with admin account

    Another strange but related problem.

    On Firefox, I click on Account (or other module Contact, etc), and I click on |> (next page), will give me 403 forbidden.
    On IE7, I did the same thing and it's working fine.


    I'm wondering if this problem is cause by javascript or browser or something else.

    Sugar is ran on
    PHP Version 5.1.5 and MySQL - 5.0.24 and Window XP

    also I've enable javascript on both IE and firefox.
    Last edited by gtg182s; 2008-07-02 at 03:25 PM.

  6. #6
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: [error] 403 Forbidden with admin account

    Are you using English? If not switch and try again. Although this is very remote.
    Are you using IIS or Apache?
    Permissions under Win - file properties.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  7. #7
    gtg182s is offline Member
    Join Date
    Jun 2008
    Posts
    11

    Default Re: [error] 403 Forbidden with admin account

    Yes I'm using English and Apache.

    yes I've check Sugarcrm file properties, all permission are allowed.

    Any other suggestions?

    Thanks,
    Tri

    Quote Originally Posted by roblaus
    Are you using English? If not switch and try again. Although this is very remote.
    Are you using IIS or Apache?
    Permissions under Win - file properties.

  8. #8
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: [error] 403 Forbidden with admin account

    Did you check your site_url settings in config.php? I can't think of anything more...
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Without Admin Account, helppp
    By mariodelzo in forum Español
    Replies: 1
    Last Post: 2008-03-23, 04:00 PM
  2. customized admin account
    By elvinjoe in forum Developer Help
    Replies: 1
    Last Post: 2008-02-25, 11:02 PM
  3. Admin Account no longer an Admin
    By randomprocess in forum Help
    Replies: 0
    Last Post: 2007-03-07, 11:43 PM
  4. broken links on forcast screen
    By peter.brown in forum Help
    Replies: 0
    Last Post: 2006-10-06, 07:04 AM
  5. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •