Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38
  1. #1
    Join Date
    Apr 2011
    Posts
    41
    Plugin Contributions
    0

    Default After moving to new server cant acsses admin

    After moving zencart to new server cant acsses admin area just goes blank

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

    Default Re: After moving to new server cant acsses admin

    .

    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
    Apr 2011
    Posts
    41
    Plugin Contributions
    0

    Default Re: After moving to new server cant acsses admin

    in cache folder my debug it says this [19-Apr-2011 07:52:05] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/transponder.co.za/httpdocs/includes/templates/theme346/sideboxes/tpl_categories.php on line 20

    any ideas

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: After moving to new server cant acsses admin

    Sounds like something wrong with the custom code in your unofficial 3rd-party addon template.
    .

    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.

  5. #5
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: After moving to new server cant acsses admin

    Hello,

    I'm attempting to copy my zencart site to a new domain.

    I copied all my zencart files and folders into my new domain under "my_folder".

    I created a new database and then imported all my old database tables.

    I created a new cache folder under "newzen" in public_html.

    Finally, I changed my two configure files.

    I also ran the fix_cache_key.php file.

    Anyway, the catalogue under my new domain seems to show up fine. However, on the admin side, I get a blank page. No code, no nothing.

    Here are the changes I made to the admin configure file:

    define('HTTP_SERVER', 'http://n13967.com');
    define('HTTPS_SERVER', 'https://n13967.com');
    define('HTTP_CATALOG_SERVER', 'http://n13967.com');
    define('HTTPS_CATALOG_SERVER', 'https://n13967.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');


    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/myfolder/admin/');
    define('DIR_WS_CATALOG', '/myfolder/');
    define('DIR_WS_HTTPS_ADMIN', '/myfolder/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/myfolder/');


    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/var/www/vhost/accountname/public_html/myfolder/admin/');
    define('DIR_FS_CATALOG', '/var/www/vhost/accountname/public_html/myfolder/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'myusername');
    define('DB_SERVER_PASSWORD', 'mypassword';
    define('DB_DATABASE', 'mynewdatabase');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'file');
    define('DIR_FS_SQL_CACHE', '/home/ncom2/public_html/newzen/cache');


    I've been over the admin configure file over and over again. I must be missing something, but cannot figure out what!

    One other thing, I added a new customer to the site on my new domain. However, this new customer showed up in the OLD database for my OLD domain, not in the new one I created.

    Is duplicating my zencart site to a new domain not so simple a process as I had thought?

    Any insight into this would be greatly appreciated!

    StillANewZenner

  6. #6
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: After moving to new server cant acsses admin

    define('DIR_WS_ADMIN', '/myfolder/admin/');
    define('DIR_WS_CATALOG', '/myfolder/');
    define('DIR_WS_HTTPS_ADMIN', '/myfolder/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/myfolder/');
    Is your admin folder still named admin, or did you change it?
    Last edited by RescoCCC; 24 Dec 2011 at 11:28 PM.

  7. #7
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: After moving to new server cant acsses admin

    I actually did change it, that's just what I'm calling it on the forum

    I am certain that my admin name in the file matches with its corresponding folder name.

    Thanks

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: After moving to new server cant acsses admin

    The FAQ articles I mentioned earlier explain the simple process.
    Sounds like your database settings are pointing to the wrong place.
    Remember, read-only files can't have changes saved to them.
    .

    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.

  9. #9
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: After moving to new server cant acsses admin

    I changed the permission to 777....

    I've read the FAQ on moving a site to another server. However, zencart was installed on my original server using Fantastico. I thought it would be easier to just copy all my zencart files and folders to a folder in my new domain instead of installing a fresh zen. So, I made a new database and configured both configure files to reflect the changes in server and database.

    Database changes:

    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'my(new)username');
    define('DB_SERVER_PASSWORD', 'my(new)password';
    define('DB_DATABASE', 'mynewdatabase');

    I have, however, not changed the DB_Prefix value. Yet, I've kept the same prefix for my new database as my old database, so I didn't think I had to change it. Do I need to have different prefixes for the different databases?

    Of course username, password, and database defines have been changed to reflect my new database....

    Thanks for your response.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: After moving to new server cant acsses admin

    The reason we tell people to do a fresh install on the new server is so that the configure.php file contents are built correctly for the new server. Otherwise people come along asking us to tell them what you put in there even though it's impossible for us to magically guess all they paths correctly for a million different web servers.
    Once you've done the fresh install and tested that it's working correctly, then you can copy your files over, and import your database.
    I'd go on except all that's already in the articles I was referring to.

    You need the same prefix in both places if you're importing data from old to new, otherwise the table names won't match and you'll get unexpected data oddities, not unlike what you're describing.
    .

    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.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. cannot login to admin pages after moving to new server
    By longhaired1 in forum General Questions
    Replies: 5
    Last Post: 5 Oct 2015, 11:07 PM
  2. v139h Can't get into my admin after moving to a new server
    By tpeck in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 29 Jul 2013, 03:03 PM
  3. v139h After moving to a new server, admin are blank without any error info
    By boomup in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 21 Jan 2012, 05:19 AM
  4. Can't access Admin after moving to new server
    By eranariel in forum General Questions
    Replies: 5
    Last Post: 25 Apr 2011, 09:35 AM
  5. Admin page not found after moving to new server
    By serge111 in forum General Questions
    Replies: 2
    Last Post: 26 Nov 2010, 09:31 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