Forums / Upgrading from 1.2 to 1.3.x / upgrade: zc_install/index.php = blank

upgrade: zc_install/index.php = blank

Locked

Started by ecm on 17 Aug 2006, 10:34 AM · Views: 10,173

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
17 Aug 2006, 10:34 AM
#1
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

upgrade: zc_install/index.php = blank

Hi,
I'm upgrading a shop from 1_03 to 1_03_02.

I've uploaded all the files, including the zc_install. When I go to www..../shop/zc_install/index.php all I get back is blank file. I've tried modifying the .htacess & even removing it - no go!

If I go to ...shop/admin/index.php I get the following error msg - "Illegal Access".

Any suggestions?

Cheers,

Eddie

17 Aug 2006, 1:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: upgrade: zc_install/index.php = blank

Sounds like a bad upload of files via FTP ...

Try re-loading all of the files again ...

NOTE: If not upgrading from v1.3.0.1 be sure to use the FULL Zen Cart v1.3.0.2 download ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Aug 2006, 2:11 PM
#3
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

Hi Ajeh,
Thanks very much for the prompt reply. Unfortunately, re-uploading had no effect.

I think I might try a full zen upgrade - just in case it wasn't a 1_03 version as I thought.

I'll upate my progress.

Thanks again,
Eddie

17 Aug 2006, 6:13 PM
#4
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

No success, so I installed 1.3_02 onto a new site.
Installation went ok. I deleted zc_install.
However, when I went to admin, again I got a blank page.

Error logs have following:

PHP Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/lib/php') in /home/t/r/mydomain/public_html/shop/admin/index.php on line 23

PHP Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/t/r/mydomain/public_html/shop/admin/index.php on line 23

Any suggestions?

Eddie

17 Aug 2006, 6:20 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: upgrade: zc_install/index.php = blank

Permission deniedWhat have you done regarding permissions to files/folders?
Are your files set to 644 and folders to 755, or did you do some special settings manually?

What are the contents of your /admin/includes/configure.php file, without password?

.
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.

17 Aug 2006, 6:40 PM
#6
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

Hi DrByte,
Thanks for you input. I think the problem has been the ftp upload. I've dragged top level folders over (such as includes) and have since discovered that some lower level folders (classes, for example) have not been copied over.

So, I'm now going thro' each subfolder to ensure that every file, etc has been copied over correctly. I've never run into this problem before - not sure if its my ISP connection or the software (SmartFTP).

I'll update on progress - if nothing doing, I'll post as you suggest.

Thanks,
Eddie

17 Aug 2006, 7:15 PM
#7
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

Hi All,

Permissions are 777 on all folders at the moment.

Config = :

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers // 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> /* * URLs 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 */ define('HTTP_SERVER', 'http://www.mydomain.co.uk'); define('HTTPS_SERVER', 'https://www.mydomain.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.co.uk'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); 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', '/shop/admin/'); define('DIR_WS_CATALOG', '/shop/'); define('DIR_WS_HTTPS_ADMIN', 'https://mydomain.co.uk/shop/admin/'); define('DIR_WS_HTTPS_CATALOG', 'https://mydomain.co.uk/shop/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . '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', '/domains/m/y/mydomain.co.uk/public_html/shop/admin/'); define('DIR_FS_CATALOG', '/domains/m/y/mydomain.co.uk/public_html/shop/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'shop_'); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // 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', '/domains/m/y/mydomain.co.uk/public_html/shop/cache'); ?>

Can you see anything obviously wrong?

I can get to the shop itself, but this has no styles, so it's not picking up the correct paths.

Any help most welcome.

Thanks
Eddie

17 Aug 2006, 7:18 PM
#8
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

The most recent error is this:

PHP Fatal error: Call to undefined function: zen_get_languages() in /home/m/y/mydomain/public_html/shop/admin/index.php on line 25

Again, this suggests that paths are incorrect or file has not been uploaded. Any idea which php file this function resides in?

Ta,
Eddie

17 Aug 2006, 7:21 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: upgrade: zc_install/index.php = blank

ECM:

not sure if its my ISP connection or the software (SmartFTP).
Yuck!

SmartFTP is notorious for dropping connections or not completing uploads.

Grab FileZilla .... http://filezilla.sf.net ... it's free and reliable.

.
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.

17 Aug 2006, 7:22 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: upgrade: zc_install/index.php = blank

the things I was thinking might be wrong in your configure.php appear to be fine

.
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.

17 Aug 2006, 7:23 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: upgrade: zc_install/index.php = blank

note that the admin area also uses many of the "classes" and "functions" and other files from the non-admin area, so you will want to be sure that "everything" is checked...

.
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.

17 Aug 2006, 8:49 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: upgrade: zc_install/index.php = blank

Need to change:

define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', 'https://mydomain.co.uk/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', 'https://mydomain.co.uk/shop/');

To read:

define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Aug 2006, 6:12 AM
#13
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: upgrade: zc_install/index.php = blank

Hi there - success!!

1stly, I want to say thanks to DrByte & Ajeh. You offered me (& others) a level of support that I wouldn't hope for from a commercial product. I've worked for organisations that pay big time for products like Oracle, etc & the support is never this prompt. So, I owe you a coffee.

Now time to 'fess up. My problems had two basic origins. The biggest was that I thought I had 1.3.0 running whereas it was a 1.2.7. Hence attempt to upload only the changed files was doomed.

I then tried uploading the full fileset - that's where problem 2 started. SmartFTP loaded everything in binary (even tho' it was set to Auto mode) & then appeared to have randomly skipped files. Hence I was getting errors relating to files not being found.

So, I deleted everything, got Filezilla (DrByte!), & did a full install. I then went thro' my database dump & checked table structures btn old & new. If there had been no change, I populated that table from my back up. Fortunately, there was no real live data in the original database - just a few product details & test data.

So, I now have a working zen shop again & am busy customising it using the overrides wherever possible. My heart did sink when I got the security advisory note, but the changes didn't take too long.

One possible problem with the installer. It allows you to enter /forum for your phpBB forum path, but actually needs the full directory path /domain/public_html/forum (etc) for the link to show in the Information tab. Could this be addressed in a future release? Or at least a more explicit explanation on page?

Anyway, thanks again for all your help.
Cheers,
Eddie