Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Sep 2015
    Location
    Upper Hutt
    Posts
    13
    Plugin Contributions
    0

    Default Cannot delete users from within admin

    v1.5.4 on Linux. I am using SSL on everything.

    I am trying to create and delete test users from within the admin section.

    And I can't. I click on the user, I get the panel with the user details, and when I choose to delete... nothing happens.

    Oddly, if I choose "edit", I get the customer details form/page but if I press "update", all the fields go blank and ZC complains about missing mandatory fields.

    When I look at the log, I see that I have been attempting to delete a user with ID = 0 rather than 777 as it should be.

    Any ideas on what could be wrong?

  2. #2
    Join Date
    Sep 2015
    Location
    Upper Hutt
    Posts
    13
    Plugin Contributions
    0

    Default Re: Cannot delete users from within admin

    Oh, and if I try to delete an Admin user, I am told "The option that you requested cannot be undertaken without specifying a user"

    so it looks like the ID=0 problem again? What can I do? What have I not done?

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Cannot delete users from within admin

    There are several questions that can be asked back to try to resolve this, a majority of them though are the same as requested to be provided as shown when a user selects to post/write a message to the forum. Called the posting tips.

    Answering them will help to identify why 1) all of your admin users are being assigned an id of 0, 2) if not assigned an id of 0, why the particular admin edit sections are not obtaining the correct value or why they are passing along a value of 0 when trying to modify the user. The use of 777 is that a number that was seen as related to one of the numerous users created, or is that a number "expected" (typically associated with the permissions of a file or directory and just wanting to make sure that we're all talking about the same expectation.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Sep 2015
    Location
    Upper Hutt
    Posts
    13
    Plugin Contributions
    0

    Default Re: Cannot delete users from within admin

    Quote Originally Posted by mc12345678;
    The use of 777 is that a number that was seen as related to one of the numerous users created, or is that a number "expected" (typically associated with the permissions of a file or directory and just wanting to make sure that we're all talking about the same expectation.)
    No, #777 is the customer ID, as displayed in the admin panel. Nothing to do with file permissions.

    Whatever customer I try to delete, the ID is given as 0.

    Looking in the logs, I see that somehow, it's trying to use a bad path. Is that right?


    [27-Sep-2015 10:54:13 Pacific/Auckland] PHP Warning: session_save_path(): open_basedir restriction in effect. File(/home/ianschof/public_html/new_shop/cache) is not within the allowed path(s): (/var/sentora/hostdata/riobravo/public_html/schofield:/var/sentora/temp/) in /var/sentora/hostdata/riobravo/public_html/schofield/includes/functions/sessions.php on line 155

    I have no idea where it's getting "/home/ianschof/public_html/new_shop/cache" from (2nd line, for example).

    I'll chase up the open_basedir thing now, but where does Zen Cart set the cache path?

    The record in the configuration table (configuration_key SESSION_WRITE_DIRECTORY) doesn't mention that path at all.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Cannot delete users from within admin

    Quote Originally Posted by _Vince View Post
    No, #777 is the customer ID, as displayed in the admin panel. Nothing to do with file permissions.

    Whatever customer I try to delete, the ID is given as 0.

    Looking in the logs, I see that somehow, it's trying to use a bad path. Is that right?


    [27-Sep-2015 10:54:13 Pacific/Auckland] PHP Warning: session_save_path(): open_basedir restriction in effect. File(/home/ianschof/public_html/new_shop/cache) is not within the allowed path(s): (/var/sentora/hostdata/riobravo/public_html/schofield:/var/sentora/temp/) in /var/sentora/hostdata/riobravo/public_html/schofield/includes/functions/sessions.php on line 155

    I have no idea where it's getting "/home/ianschof/public_html/new_shop/cache" from (2nd line, for example).

    I'll chase up the open_basedir thing now, but where does Zen Cart set the cache path?

    The record in the configuration table (configuration_key SESSION_WRITE_DIRECTORY) doesn't mention that path at all.
    Two places, includes/configure.php and admin/includes/configure.php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Sep 2015
    Location
    Upper Hutt
    Posts
    13
    Plugin Contributions
    0

    Default Re: Cannot delete users from within admin

    Yep, I've had a look at those but the path is not in either of them.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 26 Jun 2015, 10:02 PM
  2. Disable "DELETE" - Make certain admin users not able to delete orders
    By vetpro in forum Managing Customers and Orders
    Replies: 0
    Last Post: 12 Nov 2011, 02:01 PM
  3. Cannot access Customer within Admin
    By imiq in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2010, 12:24 PM
  4. emailing from within admin
    By moodle in forum General Questions
    Replies: 0
    Last Post: 12 Feb 2009, 01:57 PM

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