If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Mac Server / Failed to Open Stream - Function

Failed to Open Stream - Function

Locked

Started by yellowdaises on 30 Nov 2006, 8:21 PM · Views: 4,921

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Nov 2006, 8:21 PM
#1
yellowdaises avatar

yellowdaises

New Zenner

Join Date:
Nov 2006
Location:
Los Angeles
Posts:
91
Plugin Contributions:
0

Failed to Open Stream - Function

Database Type Invalid. Did your configure.php file get written correctly?
Warning: main(../includes/classes/db/DB_TYPE/query_factory.php) [function.main]: failed to open stream: No such file or directory in /home/dotli3/public_html/zen-cart-v1.3.6-full-fileset-10272006/zc_install/includes/modules/pages/store_setup/header_php.php on line 32

Warning: main(../includes/classes/db/DB_TYPE/query_factory.php) [function.main]: failed to open stream: No such file or directory in /home/dotli3/public_html/zen-cart-v1.3.6-full-fileset-10272006/zc_install/includes/modules/pages/store_setup/header_php.php on line 32

Fatal error: main() [function.require]: Failed opening required '../includes/classes/db/DB_TYPE/query_factory.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dotli3/public_html/zen-cart-v1.3.6-full-fileset-10272006/zc_install/includes/modules/pages/store_setup/header_php.php on line 32

Ok, so I change "mysql" to "DB_TYPE" and then i get the same error but substitute /db/mysql/... in for the other. i'm going in circles! any help would be great. thanks

30 Nov 2006, 8:29 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Failed to Open Stream - Function

Both the files
includes/configure.php and
admin/includes/configure.php should have
define('DB_TYPE', 'mysql');

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

30 Nov 2006, 8:35 PM
#3
yellowdaises avatar

yellowdaises

New Zenner

Join Date:
Nov 2006
Location:
Los Angeles
Posts:
91
Plugin Contributions:
0

Re: Failed to Open Stream - Function

that might be my prob... where should that be?

30 Nov 2006, 8:41 PM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Failed to Open Stream - Function

In the files
includes/configure.php and
admin/includes/configure.php

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

3 Dec 2006, 9:52 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Failed to Open Stream - Function

The problem is described in the first line of your post:> yellowdaises:

Database Type Invalid. Did your configure.php file get written correctly?

What version of Apache are you running?
What version of PHP?
How much disk space is available to Apache?
Are the configure.php files "world writable" at the point of doing installation?

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