After moving zencart to new server cant acsses admin area just goes blank
After moving zencart to new server cant acsses admin area just goes blank
.
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.
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![]()
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.
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
Is your admin folder still named admin, or did you change it?define('DIR_WS_ADMIN', '/myfolder/admin/');
define('DIR_WS_CATALOG', '/myfolder/');
define('DIR_WS_HTTPS_ADMIN', '/myfolder/admin/');
define('DIR_WS_HTTPS_CATALOG', '/myfolder/');
Last edited by RescoCCC; 24 Dec 2011 at 11:28 PM.
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
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.
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.
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.