Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    red flag Can't access admin/sign-in

    Tried uploading backup copy of shop after installing B1G1 free module, which didn't work. Store "front" is appearing but I can't get in the back end. Any help appreciated,.

    Error log says:
    [13-Sep-2011 07:48:20] PHP Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in /home/sprinks/public_html/shop/zc_admin/includes/functions/general.php:2680) in /home/sprinks/public_html/shop/zc_admin/includes/functions/functions_prices.php on line 1334

    And this is line 1325 to 1334 in functions_prices.php:

    PHP Code:
    // set the products_price_sorter
      
    function zen_update_products_price_sorter($product_id) {
        global 
    $db;

        
    $products_price_sorter zen_get_products_actual_price($product_id);

        
    $db->Execute("update " TABLE_PRODUCTS " set
                      products_price_sorter='" 
    zen_db_prepare_input($products_price_sorter) . "'
                      where products_id='" 
    . (int)$product_id "'");
      } 
    Last edited by Kim; 14 Sep 2011 at 04:04 PM.
    Happy to be Zenning (and learning more about Zen Cart) today

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't access admin/sign-in

    When a module is incorrectly installed, or if it conflicts with other add-ons, and you then want to remove it, the procedure is (in effect) to do the REVERSE of what you did when you installed it.

    As the problem is with the ADMIN side, it would appear that one of your add-ons has over-written a CORE admin file.

    The easiest way to find out what file was over-written is to look at the README file that came with the module, because the author should have listed which CORE files will be over-written.

    It is then a case of removing the overwrite file(s), and loading up a fresh file from a download of the zencart software (of the SAME version you are using).

    In some cases, modules will make database changes. It is usually necessary to REMOVE these changes - and again, the author of the module should have provided instructions (or an UNINSTALL.SQL file) for you to do these changes.

    As always, before any changes are made to the database, create a full backup.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Can't access admin/sign-in

    Oh, I am so not fluent with Zen-Cart. I have two other installed modules that work great and wondering if I upload new core files if it will affect them. <banging head on desk>
    Happy to be Zenning (and learning more about Zen Cart) today

  4. #4
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Can't access admin/sign-in

    Schoolboy, thank you, thank you. I reuploaded the changed files like you said and I'm in....virtual hugs to you!
    Happy to be Zenning (and learning more about Zen Cart) today

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't access admin/sign-in

    Great... your first successful "fix-it" project is always a big confidence booster.

    You will learn (usually the hard way, like most of us), to follow certain steps that reduce the chances of error, when you make modifications to your site.

    I have many posts on the forum that show some of these techniques - particularly for novice users, so look around a bit for them.

    Also, spend a lot of time in the tutorials section of this forum. That is how I learned much of what is necessary for sensible management of your installation.
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Can't access admin/sign-in

    I definitely will take your advice! I'm so used to WordPress, Zen-Cart is a whole other animal.
    Happy to be Zenning (and learning more about Zen Cart) today

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't access admin/sign-in

    Ironically, I find customising WordPress files to be a "Pain in the A", because it is more complicated to "manipulate" the code. Of course WP is designed with "non-technical" users very much in mind - and in this respect it is arguably the best program of its type.

    It's possible with WP to get a really great looking, and superbly performing site, without even having even the most basic of programming skills.
    20 years a Zencart User

 

 

Similar Threads

  1. v153 Can't login to admin after SSl was disabled, How to restore admin access?
    By alpheus in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 20 Dec 2014, 09:34 PM
  2. v153 Can't sign in Admin from 1&1
    By Phil Davis in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 7 Oct 2014, 02:57 AM
  3. v151 Two Sign-ins Required to Access store Admin
    By KenBaker in forum Basic Configuration
    Replies: 14
    Last Post: 22 Mar 2014, 01:26 PM
  4. Replies: 3
    Last Post: 4 Jun 2009, 06:40 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