Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  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,816
    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,816
    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.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Cannot delete users from within admin

    Quote Originally Posted by _Vince View Post
    Yep, I've had a look at those but the path is not in either of them.
    So back to my first post: origin of database, origin of fileset, how installed, all of the thngs in the postng tips, otherwise going to be throwing a lot of guesses as this is not the daily issues experienced by so many others... Need a framework from which to offer reasonable suggestions even if just guesses.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Cannot delete users from within admin

    Here, in case there's any wondering about what they are, they are quoted below:

    Have you already posted about this issue? If so, DO NOT POST a duplicate. Instead, reply to your existing post, with MORE information.
    NOTE: When making a new post, be sure to include relevant information such as:
    What version of Zen Cart are you using?
    Has your site been upgraded? When? From what version(s)?
    If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?)
    What plugins/addons have you installed? When? If your problems are payment-related, what payment module(s) are you using? If it's shipping-related, which shipping module(s) are you using?
    If your problems are language-pack related (non-English), have you checked that all the language files are loaded and correct?
    HOW did you install Zen Cart? (upload via FTP and run zc_install, or a one-click install from your hosting company? (one-click installs might mean you don't have enough information about your site/server to make customizations easily))
    What version of PHP and MySQL is your server using? (See Admin->Tools->Server Info)
    WHEN did the problem "start"? How does that compare with other events of your hosting company, changes you've made to your site files/addons, or your admin settings, etc?
    Please post the contents of related "debug logs" generated by Zen Cart (wrap the content in
    Code:
     and
    tags please!).
    If this is your first store, have you tested all aspects of transactions before going live?
    In what ways is your site customized or different from a brand new uncustomized install?
    Please post your site URL* so we can take a look at it. This is especially important if you're encountering display/layout problems, so the problem can be seen directly.
    If you're encountering problems that could be related to your server or hosting company, include the name of your hosting company (not their URL).
    HAVE YOU LOOKED IN THE FAQ AREA for answers to your question? (ie: a search for your error message or what you want to edit/change, etc)
    Have you searched the FORUM for your error message or for answers to the question you're asking?

    Also read the "Before You Post" and "Forum Do's and Don'ts" to be sure you provide at least the basics of information in your post. The more detail you supply, the more likely you'll get a usable answer. If you don't give enough information then you'll likely just get a reply asking for more info, or worse: no reply at all. We'd rather give excellent answers than have to ask you more questions!

    *NOTE: Search engines index this Zen Cart® support site very quickly. Posting your URL will cause your site and your post to show up in search engines. If you want to prevent that, put spaces between each letter of the domain name in your URL.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Cannot delete users from within admin

    Ok, here we go then...

    And thanks for the quick replies.


    What version of Zen Cart are you using?

    1.5.4

    Has your site been upgraded? When? From what version(s)?

    1.3x (?) not sure.

    If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?)

    I installed ZC then loaded the old database and ran the update script.

    What plugins/addons have you installed? When? If your problems are payment-related, what payment module(s) are you using? If it's shipping-related, which shipping module(s) are you using?

    No addons or modules. just a very simple template.

    HOW did you install Zen Cart? (upload via FTP and run zc_install

    yes


    What version of PHP and MySQL is your server using? (See Admin->Tools->Server Info)


    Server Host: sentora.dynamite.net.nz (103.16.181.36)
    Database Host: localhost (103.16.181.36)
    Server OS: Linux 3.12.27-xenU
    Database: MySQL 5.5.44-0ubuntu0.14.04.1
    Server Date: 09/28/2015 13:01:58
    Database Date: 09/28/2015 13:01:58
    Server Up Time: 13:01:58 up 31 days, 16:42, 0 users, load average: 1.50, 1.49, 1.54
    HTTP Server: Apache
    PHP Version: 5.5.9-1ubuntu4.12 (Zend: 2.5.0)
    PHP Memory Limit: 128M PHP Safe Mode: Off
    PHP File Uploads: On
    Max Size: 50M POST Max Size: 50M
    Database Data Size: 1,487 kB
    Database Index Size: 736 kB




    WHEN did the problem "start"?
    As soon as I tried updating users. A development version of the site on a local Linux machine has no problems.

    Please post the contents of related "debug logs" generated by Zen Cart (wrap the content in

    Code:
    [27-Sep-2015 10:54:37 Pacific/Auckland] PHP Warning:  file_exists(): 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/mgmnt/includes/init_includes/init_cache_key_check.php on line 15
    
    [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
    
    [27-Sep-2015 10:54:12 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

  10. #10
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Cannot delete users from within admin

    Please verify the files on the server (for the admin) are an exact copy of the Zen Cart 1.5.4 distribution's admin folder (no modifications, no missing files, no extra files, etc).

    What is the value of "admin" -> "configuration" -> "sessions" -> "session write directory"? This is used when you have configured Zen Cart to not use the database for STORE_SESSIONS (in the configure.php).

    Post both "/includes/configure.php" and "/your_admin_folder/includes/configure.php" (from the server, not local development). Please use code tags around each file's contents (press the # button in the editor when replying - desktop version of the site). EX: [CODE]contents of the file[/CODE]. (Obscure the DB user, DB password, and admin folder if listed)

    Also post the contents of "/includes/local/configure.php" and "/your_admin_folder/includes/local/configure.php" from the server if present (again wrap with code tags).
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhūngīl : Plugin / Module Tracker

 

 
Page 1 of 2 12 LastLast

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