Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Cannot access admin on WAMP on local machine

    Thanks DrByte - read the tutorial and ran the query

    UPDATE configuration set configuration_value='c:/wamp/www/zencart/cache' WHERE configuration_key='SESSION_WRITE_DIRECTORY';
    it returns

    Error
    SQL query:
    UPDATE configuration SET configuration_value = 'c:/wamp/www/zencart/cache' WHERE configuration_key = 'SESSION_WRITE_DIRECTORY'

    MySQL said:
    #1146 - Table 'zc1.configuration' doesn't exist
    zc1 is the name of the database and the table "configuration" does exist with the prefix "zen_" thus reading "zen_configuration" - could the query be re-written accordingly to reflect the correct prefix?

    Also downloaded, installed and ran "fix_cache_key.php" - it returns "page not found" in IE and a blank page in Netscape.

    Next downloaded a fresh copy of the live database and imported same.

    Result is same old: front end displays all ok, all links working, can login to my account, add stuff to the shopping cart etc

    Trying to access backend (admin) produces same errors as described in my original post.

    I am stumped - time to go to bed and have another go tomorrow with a hopefully clear mind.

    Frank

    www.frnt.org/zencart

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Cannot access admin on WAMP on local machine

    Yes, you can add the "zen_" prefix to the query in order to suit the actual names of tables in your database.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Cannot access admin on WAMP on local machine

    Thanks again DrByte,

    Ran the query:


    UPDATE zen_configuration set configuration_value='c:/wamp/www/zencart/cache' WHERE configuration_key='SESSION_WRITE_DIRECTORY';
    MySQL responded with:

    Affected rows: 1 (Query took 0.0011 sec)
    SQL query:
    UPDATE zen_configuration SET configuration_value = 'c:/wamp/www/zencart/cache' WHERE configuration_key = 'SESSION_WRITE_DIRECTORY'

    Then emptied cache of all 3 browsers and gave it another try. Result is the same:

    IE says: cannot find server - the page cannot be displayed
    Netscape: blank page
    Firefox: Content Encoding Error - The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

    Called http://localhost/zencart/ logged in, placed stuff into the cart, logged out, checked cache for file entries which are shown perfectly.

    What else could be done?

    Thanks for your help and time with this problem

    Frank

    Frank Riegel Natural Therapies
    www.frnt.org
    www.frnt.org/zencart

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Cannot access admin on WAMP on local machine

    Well - this got me buggered !

    Deleted the local install and started from scratch. Followed all the hints and instructions (thanks again to DrByte - much appreciated indeed), all to no avail.

    If anyone has any ideas (not mentioned above) - it would be much appreciated.

    Frank

    www.frnt.org/zencart

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Cannot access admin on WAMP on local machine

    Maybe you've got something set up for your admin .htaccess that's confusing your WAMP?
    Maybe your WAMP error logs may reveal more.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Cannot access admin on WAMP on local machine

    Thank you Chris

    (bought the book, so knowing the real name of DrByte makes things a bit more personal .... GREAT BOOK btw)

    Should add here that everyone running a ZC shop would be well advised to invest $29.95 in a copy of the book -- no kidding folks, it is worth every cent (no commission earned here).

    --

    Neither admin/.htaccess nor the WAMP error log has shed any light on this mystery.

    My next plan of attack is this:

    1. delete the lot
    2. fresh install of ZC
    3. test access to admin
    4. if OK (and it should be) then import copy of live database
    5. test access to admin
    - if OK then the DB is not the problem --- >> go to 6.
    - if not OK then the DB has a bug --- >> check local vs remote DB
    compatability - may have to get a different version of WAMP or even
    replace WAMP with XAMPP (version as per book) --->> go to 8.
    6. copy live admin files into test install
    7. test access to admin
    - if OK then GOOD! (but why all of a sudden I could not explain - EOF)
    - if not OK replace WAMP with XAMPP (version as per book) --->> go to 8.
    8. fresh install of ZC

    etc

    Talk about being totally zenned !

    It's like treating a difficult patient still trying to find the cause of the disease..

    I will keep you all posted

    Frank

    www.frnt.org/zencart
    Last edited by frank18; 20 Aug 2008 at 01:44 PM. Reason: missed adding my comment about the book

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Cannot access admin on WAMP on local machine

    Referring to my last post above, I got to step 7. and ..... I can access the admin.

    I have no idea why it worked after the umpteenth install but not first up. Maybe the sequence of steps played a role. In my initial attempts I copied the live files first (using the fresh DB) and then imported the live DB.

    This time I imported the live DB first and then copied the live files.

    To some extent that would make sense....

    Anyway, problem solved after 5 days of testing and pondering.

    Thanks again for all your help.

    Frank

    www.frnt.org/zencart

 

 

Similar Threads

  1. v154 Cannot access install on local serveraccross local network.
    By RMPowell01 in forum Installing on a Windows Server
    Replies: 5
    Last Post: 15 Jan 2015, 06:08 PM
  2. Replies: 13
    Last Post: 19 Sep 2012, 10:35 AM
  3. Install on local machine w/wamp
    By ecmauto in forum Installing on a Windows Server
    Replies: 1
    Last Post: 16 Dec 2011, 12:51 AM
  4. Installing on local and cannot access phpmyadmin on wamp
    By RenoB in forum Installing on a Windows Server
    Replies: 1
    Last Post: 11 Mar 2010, 11:31 AM
  5. Cannot access zencart over local network
    By bikerlee in forum Installing on a Mac Server
    Replies: 4
    Last Post: 16 Nov 2007, 12:11 AM

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