Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Plugin Contributions
    0

    bug Can not edit your admin user profiles (v1.5.0)?

    After I install Zen-Cart V1.5.0, I found that I can not edit the admin user profiles after "add profiles".

    I try to find the answer at this forum, but find nothing

    Here is how I solve the problem:

    edit file" admin folder\profiles.php"

    line:199

    <form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">

    change to

    <?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=edit') ?>

    I think this post may be able to help some others.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can not edit your admin user profiles (v1.5.0)?

    Actually this has already been posted as a bug report previously.

    And the correct fix to the /admin/profiles.php is ...

    to change:
    Code:
    <form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">
    to read:
    Code:
      <?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=insert') ?>
    One other change is to fix:
    Code:
      case 'update_name':
        zen_update_profile_name($profile, $_POST['profile-name']);
        $messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
        zen_redirect(zen_href_link(FILENAME_PROFILES));
        break;
    and change to:
    Code:
      case 'update_name':
      // bof: fix update name
        if (trim($_POST['profile-name']) == '') {
          $messageStack->add_session(ERROR_INVALID_PROFILE_NAME, 'error');
          zen_redirect(zen_href_link(FILENAME_PROFILES));
        }
      // eof: fix update name
        zen_update_profile_name($profile, $_POST['profile-name']);
        $messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
        zen_redirect(zen_href_link(FILENAME_PROFILES));
        break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Edit orders and Admin Profiles
    By solo_400 in forum General Questions
    Replies: 9
    Last Post: 1 May 2015, 12:07 PM
  2. Replies: 6
    Last Post: 4 Dec 2013, 08:02 PM
  3. ADMIN user does not work! can resend PW but admin name wrong?
    By catalinabydesign in forum General Questions
    Replies: 3
    Last Post: 23 May 2009, 11:47 AM
  4. can I make a user that can only edit one EZ page?
    By optimalwebsite in forum Basic Configuration
    Replies: 1
    Last Post: 19 Dec 2008, 05:23 PM
  5. New User Upgraded now can not edit
    By raylee in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 5 Feb 2007, 04:29 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR