Forums / Installing on a Windows Server / Problem after fresh installation ion IIS6

Problem after fresh installation ion IIS6

Locked

Started by thommy on 24 May 2006, 7:51 PM · Views: 3,938

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 May 2006, 7:51 PM
#1
thommy avatar

thommy

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Problem after fresh installation ion IIS6

Hi,
I've just installed the newest zen-cart version on a dedicated Windows-Server. I can log into the admin-account and do all the configuration, but I can't open the normal shop-address. This gives the following error-message:

Call to a member function get_template_part() on a non-object
(Line 29 in index.php)

Any idea?
For testing, this ist the URL:
http://shop.pferde-im-visier.de

At the moment, I didn't delete the zc_install Directory and both config-files are writable. So feel free to change some settings if you see an error.

Many thanks for your help!

Thommy

24 May 2006, 8:57 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Problem after fresh installation ion IIS6

You could have either bad or corrupted files loaded ...

Try reloading the files from a good copy of Zen Cart v1.3.0.1 that you can get from here ...

See if that doesn't help ...

NOTE: save your files from the website for:
/includes/configure.php
/admin/includes/configure.php

so as not to overwrite the ones on the website ...

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!

26 May 2006, 1:14 PM
#3
thommy avatar

thommy

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Problem after fresh installation ion IIS6

Hi,

now, I've downloaded the newest version directly from your web-site (last time I loaded the german version from your austrian site), and made a completely new installation,- but the problem still exists. The same error-message as before. :(

Thommy

26 May 2006, 6:05 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Problem after fresh installation ion IIS6

Thommy,

I suspect your configure.php files are the problem.
Can you post your /includes/configure.php file contents here, without the passwords?

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

26 May 2006, 6:12 PM
#5
thommy avatar

thommy

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Problem after fresh installation ion IIS6

Sure, here it comes:

<?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 // 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://shop.pferde-im-visier.de'); define('HTTPS_SERVER', 'http://shop.pferde-im-visier.de'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', '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_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', 'https://shop.pferde-im-visier.de/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * 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', 'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\inetpub\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\piv-online/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'xxxxxxx'); define('DB_SERVER_PASSWORD', '****************'); define('DB_DATABASE', 'pivshop'); 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', 'database'); define('DIR_FS_SQL_CACHE', 'D:/cache'); ?>
26 May 2006, 6:16 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Problem after fresh installation ion IIS6

a few things I'd recommend updating:

change these lines:```php
define('DIR_WS_HTTPS_CATALOG', 'https://shop.pferde-im-visier.de/');
define('DIR_FS_CATALOG', 'D:\\\\\\\\\\\\\\\\inetpub\\\\ \\\\\\\\\\\\piv-online/');
define('DIR_FS_SQL_CACHE', 'D:/cache');


to:```php
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', 'D:/inetpub/piv-online/');
define('DIR_FS_SQL_CACHE', 'D:/cache');

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

26 May 2006, 6:39 PM
#7
thommy avatar

thommy

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Problem after fresh installation ion IIS6

unfortunately this doesn't help.
I made the changes and when I now try to open the shop-url, I am redirected to the admin-URL. When I use the link "Online Catalog" in the admin-area, I get the following error-message:

Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.require]: failed to open stream: No such file or directory in D:\Inetpub\piv-online\index.php on line 43

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.;c:\program files\php5\includes') in D:\Inetpub\piv-online\index.php on line 43

Thommy

6 Jun 2006, 10:08 PM
#8
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Problem after fresh installation ion IIS6

define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', 'D:/inetpub/piv-online/');
define('DIR_FS_SQL_CACHE', 'D:/cache');

change to:

define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', 'D:\\inetpub\\piv-online\\');
define('DIR_FS_SQL_CACHE', 'D:\\cache'); 

it usually takes two ' \ ' from the web under Microsoft Windows Server access (no matter which edition or build it might be). :wink2:

In the mean time, I have also found two other errors from your file's readings above.

If this line is set to a secured protocol (HTTPS):

define('DIR_WS_HTTPS_CATALOG', 'https://shop.pferde-im-visier.de/');

then, I assume this one should also be set under SSL as well:

define('HTTPS_SERVER', 'https://shop.pferde-im-visier.de');

:thumbsup:

As for this one:

Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.require]: failed to open stream: No such file or directory in D:\Inetpub\piv-online\index.php on line 43

There's a missing front-slash according to this error message.

If you change:

define('DIR_WS_INCLUDES', 'includes/');

into:

define('DIR_WS_INCLUDES', '/includes/');

(as a test only) - will the error message appear again ?