Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Only getting the option to install not upgrade..

Only getting the option to install not upgrade..

Views: 2,181

Results 1 to 13 of 13
18 Mar 2011, 4:55 PM
#1
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Only getting the option to install not upgrade..

I'm having really huge problems getting myself going with this upgrade (1.3.8 to 1.3.9).

My current situe is that I've created a new database, I have changed all relevant templates etc and uploaded to my server. I went through and performed the upgrade but then couldn't get to my website - what should have been showing as www. sassyyou.co.uk/zen_new was showing as www.sassyyou.co.ukzen_new. Obviously it seems to me there's something wrong with my configure file. So I've gone back in and changed the configure files and re uploaded everything to the server - however, now I'm getting the "Hello, Thank You For Loading Zen Cart.... problem with installation..." screen.

If I now try and do the upgrade again through the zc_install/index.php file it won't let me, I assume because it's already upgraded? It will only let me install.

I'm missing many fundamental things with this upgrade (despite having the upgrade tutorials open constantly beside me). But I've been editing the dist-configure.php files pre-upload. Now on my web server I see the two dist-configure.php files, but I also now see the configure.php files which are 0kb?

I know I have too many questions but I'd really appreciate some pointers on what I may need to do.:dontgetit

18 Mar 2011, 6:22 PM
#2
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Delete the configure.php from the server and rename the edited dist-configure.php to configure.php and upload it.

Make sure the slash is there in
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
That was causing your error in the first place.

18 Mar 2011, 8:52 PM
#3
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Thanks for your reply, but I've been through the whole process again and no luck.

What I've done, in my zen cart 1.3.9 downloaded files there was dist-configure.php in both includes/ and admin/includes/. I have made all the relevant changes to these files and uploaded them alongside everything else.
On the file server I then see configure.php at 0kb, and the dist-configure.php at 454kb. I have deleted configure.php and renamed dist-configure.php as configure.php.
Then I can carry out the upgrade. It completes succesfully but I click to either view my store or view my admin and I see nothing - just a white screen.
I think I've just got something wrong in the configure files, but I've been looking and I don't know what.

The is my incudes/ configure.php file:

<?php /** * dist-configure.php * * @package Configuration Settings * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $ * @private */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com define('HTTP_SERVER', 'http://www.sassyyou.co.uk'); define('HTTPS_SERVER', 'https://enterprise.terrassl.net/~sassyyou'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * 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_CATALOG', '/zen_new/'); define('DIR_WS_HTTPS_CATALOG', '/zen_new/'); define('DIR_WS_IMAGES', 'zen_new/images/'); define('DIR_WS_INCLUDES', 'zen_new/includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'zen_new/functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'zen_new/classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'zen_new/modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'zen_new/languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'zen_new/pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'zen_new/templates/'); define('DIR_WS_PHPBB', '/zen_new/phpBB2/'); // * 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_CATALOG', '/home/sassyyou/public_html/zen_new/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'zen_new/download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'zen_new/pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'zen_new/uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'zen_new/email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'deleted'); define('DB_SERVER_PASSWORD', 'deleted'); define('DB_DATABASE', 'deleted'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // 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', 'none'); define('DIR_FS_SQL_CACHE', '/home/sassyyou/public_html/zen_new/cache'); ?>

This is my admin/includes/configure.php file:

<?php /** * dist-configure.php * * @package Configuration Settings * @package Admin * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $ * @private */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com /* * URL's for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://www.sassyyou.co.uk'); define('HTTPS_SERVER', 'https://enterprise.terrassl.net/~sassyyou'); define('HTTP_CATALOG_SERVER', 'http://www.sassyyou.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://enterprise.terrassl.net/~sassyyou'); // secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'true'); define('ENABLE_SSL_ADMIN', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * 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', '/zen_new/admin/'); define('DIR_WS_CATALOG', '/zen_new//'); define('DIR_WS_HTTPS_ADMIN', '/zen_new//admin/'); define('DIR_WS_HTTPS_CATALOG', '/zen_new/'); define('DIR_WS_IMAGES', 'zen_new/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'zen_new/icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'zen_new/images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'zen_new/includes/templates/'); define('DIR_WS_INCLUDES', 'zen_new/includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'zen_new/boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'zen_new/functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'zen_new/classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'zen_new/modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'zen_new/languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'zen_new/includes/languages/'); // * 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', '/home/sassyyou/public_html/zen_new/admin/'); define('DIR_FS_CATALOG', '/home/sassyyou/public_html/zen_new/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'zen_new/includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'zen_new/images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'zen_new/includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'zen_new/includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'zen_new/backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'zen_new/email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'zen_new/download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'deleted'); define('DB_SERVER_PASSWORD', 'deleted'); define('DB_DATABASE', 'deleted'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // 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', 'none'); define('DIR_FS_SQL_CACHE', '/home/sassyyou/public_html/zen_new/cache'); ?>

:frusty:

18 Mar 2011, 9:37 PM
#4
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

You didn't need to upgrade again. When you do that you are in effect undoing your changes you have made to the configure.php by overwriting it.

Right now do this and ONLY this. Then check your site.
IN admin/includes/configure.php file
REPLACE ```
define('DIR_WS_CATALOG', '/zen_new//');
define('DIR_WS_HTTPS_ADMIN', '/zen_new//admin/');

WITH

define('DIR_WS_CATALOG', '/zen_new/');
define('DIR_WS_HTTPS_ADMIN', '/zen_new/admin/');


Delete the configure.php from the server and rename the edited dist-configure.php to configure.php and upload it. Do this for both of the configure.php files.  Now check your site.
18 Mar 2011, 10:37 PM
#5
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

I've edited the admin/includes/configure.php file as you said, deleted the existing one from the server and replaced it (renaming it accordingly).
I have also deleted includes/configure.php from the server and replaced it with a new one.
No change though - just a white screen for my catalogue (/zen_new) and my admin (/zen_new/admin).

19 Mar 2011, 1:45 AM
#6
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Okay, Let's start from the begining.
Did you read the Faqs page about blank pages and server errors to make sure something in there was not your problem? Since you've uploaded everything at least twice I think you can rule that one out.

https://www.zen-cart.com/tutorials/index.php?article=82
https://www.zen-cart.com/tutorials/index.php?article=63

Go through these and if everything checks out, do a forum search for it. There is bound to be someone else with the same problem.

20 Mar 2011, 1:17 PM
#7
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

OK, really gone back to basics now. I've kept the configure.php files exactly as was in my earlier post (just taking into account the two slight errors pointed out by enchantedneedle.

I have now deleted all my previously uploaded files from the server and instead have uploaded the brand new unmodified zen cart 1.3.9 files. The only change I have made to these on the server is the swapping of the configure.php files so they are exactly as in my previous post.

So now I have on my server a brand new 1.3.9 fileset, with configure files pointing to what should be the correct locations - and absolutely no other modifications. And still I get a white screen when I navigate to zen_new, and the 'System Setup Required' screen when I navigate to zen_new/admin.

I have searched through multiple threads and cannot see why I have this problem.

I've just created a local/configure.php file so I can report the errors on screen. When I try to access https://www.sassyyou.co.uk/zen_new I get the following errors:

Warning: include(zen_new/includes/auto_loaders/config.core.php) [function.include]: failed to open stream: No such file or directory in /home/sassyyou/public_html/zen_new/includes/initsystem.php on line 21

Warning: include(zen_new/includes/auto_loaders/config.core.php) [function.include]: failed to open stream: No such file or directory in /home/sassyyou/public_html/zen_new/includes/initsystem.php on line 21

Warning: include() [function.include]: Failed opening 'zen_new/includes/auto_loaders/config.core.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sassyyou/public_html/zen_new/includes/initsystem.php on line 21

Warning: dir(zen_new/includes/auto_loaders) [function.dir]: failed to open dir: No such file or directory in /home/sassyyou/public_html/zen_new/includes/initsystem.php on line 22

Warning: require(zen_new/includes/counter.php) [function.require]: failed to open stream: No such file or directory in /home/sassyyou/public_html/zen_new/includes/application_top.php on line 158

Warning: require(zen_new/includes/counter.php) [function.require]: failed to open stream: No such file or directory in /home/sassyyou/public_html/zen_new/includes/application_top.php on line 158

Fatal error: require() [function.require]: Failed opening required 'zen_new/includes/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sassyyou/public_html/zen_new/includes/application_top.php on line 158

I really am very lost with this and would appreciate further help. As far as I can see I've taken it back to the very basics and have no idea of why I'm still getting problems.

20 Mar 2011, 8:59 PM
#8
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

klim:

So now I have on my server a brand new 1.3.9 fileset, with configure files pointing to what should be the correct locations - and absolutely no other modifications. And still I get a white screen when
In your first post you said you were trying to upgrade,
If you are trying to upgrade, did you follow the upgrade instructions instructions or the instruction for a new install?

Did you get your 1.3.8 clone working before you tried to upgrade to 1.3.9?
If you now have a 1.3.9 fileset loaded to the same directory that you've been working in, you may still have 1.3.8 files in there from the template customizations. If you want to get the 1.3.9 to work, you have to run the zc-install/index.php again, that is why you are getting the screen in the admin, but it will overwrite your db.
But you are not ready for 1.3.9 files yet. Get the 1.3.8 working first. Change the theme to template default before you save the db, then after you run the upgrade it to the new db, you will know if your problem is in the customizations.
I think you may have a db that is pointing to a theme that is not quite 1.3.9 compatible.

20 Mar 2011, 9:40 PM
#9
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Thank you again for your reply, I think you may be correct. The template I have been using in an_upscale_boutique which is 1.3.8, but is now available for 1.3.9.

When you said about getting my 1.3.8 clone working before I move onto 1.3.9 I am not sure what you mean? Obviously my main 1.3.8 site is working, I am now trying to get a 1.3.9 sorted but no sort of '1.3.8 clone'. I haven't tried any sort of changes with 1.3.8 and didn't know that I needed to do anything. I followed the full upgrade instructions as closely as possible.

I did not realise that when I save the database it saves anything from the templates. As you suggested, I will try changing the main site temporarily to template_default, make my backup and attempt the change from there.

21 Mar 2011, 12:28 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

In both config files, these are incorrect:

define('DIR_WS_IMAGES', 'zen_new/images/');
define('DIR_WS_INCLUDES', 'zen_new/includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'zen_new/functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'zen_new/classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'zen_new/modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'zen_new/languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'zen_new/pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'zen_new/templates/');

define('DIR_WS_PHPBB', '/zen_new/phpBB2/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'zen_new/download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'zen_new/pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'zen_new/uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'zen_new/email/');

zen_new/ << remove this from the above lines in both config files.

21 Mar 2011, 6:35 AM
#11
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

https://www.zen-cart.com/tutorials/index.php?article=98

#3

Please don't make changes to your live site. No where in my posts did I say anything about changing the template on your live site.
I'm sorry, but I don't think I can help you. Perhaps someone else can step in. I think I'm just confusing you more. Re-read the upgrade instructions.

21 Mar 2011, 2:02 PM
#12
klim avatar

klim

New Zenner

Join Date:
Apr 2010
Posts:
26
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Thank you for all the help, and thank you to Website Rob for the correct pointers. Those changes to the configure files have put me straight.:clap:

21 Mar 2011, 11:49 PM
#13
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Only getting the option to install not upgrade..

Glad to hear things are sorted out.

One other thing I would strongly suggest is getting your own SSL Certificate. Always looks more professional when your Domain name is used rather than some other Domain name; which is what shows in a Shared SSL Cert.