If this is your first visit, check our documentation. To post, register or login.

install.php is blank

Locked

Started by doodlebee on 11 May 2006, 8:27 PM · Views: 7,244

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
11 May 2006, 8:27 PM
#1
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

install.php is blank

Hey all -

Hoping I'm posting in the right forum - I'm running Windows XP, but I'm using Apache and PHP4 on my localhost - so I'm always at a loss as to how to refer to my localhost setup, since technically it's a Windows machine but not a Windows server.

Anyway, my issue is this: when I go to install Zencart on my localhost, the install.php page is nothing but blank. Just a blank ol' white page staring at me. I have no idea why it's doing this - all of my configurations are fine - all other programs I have installed on my machine works just fine. But this "install.php" file is just coming up blank every time - and I can't do anything to proceed with the installation.

Anyone have any ideas as to why it's doing this? If you need more info, just let me know.

11 May 2006, 8:33 PM
#2
tykies avatar

tykies

New Zenner

Join Date:
Feb 2006
Posts:
95
Plugin Contributions:
0

Re: install.php is blank

I'm a newb, but have you tried downloading a fresh copy of the install.php and trying it instead?

12 May 2006, 12:32 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: install.php is blank

doodlebee:

hen I go to install Zencart on my localhost, the install.php page is nothing but blank.

I don't think that there is an install.php file. There's a zc_install directory that contains an index.php and should run automatically if you try to access Zen Cart without the configuration files being set up.

Could you provide some more specifics about the problem that you are having.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 May 2006, 1:18 PM
#4
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: install.php is blank

kuroi:

I don't think that there is an install.php file. There's a zc_install directory that contains an index.php and should run automatically if you try to access Zen Cart without the configuration files being set up.

Could you provide some more specifics about the problem that you are having.

That's the file I'm having an issue with (sorry for the wrong name!). When I load up the /zencart/index.php file, it immediately redirects to /zencart/zc_install/index.php. The page comes up blank. I've tried calling it in directly with no go. Always a blank page.

And to the other poster - yes, i did download and reinstall a fresh copy, in case the old one was corrupted. Same thing happens - a blank page every time.

As stated before, I know my Apache setup is fine - i also have Wordpress and Expression Engine setup on my localhost, both run on PHP files. Both work fine. test PHP pages also work fine. I also have a MySQL database setup for zencart, with a username and password - but no matter what I do, when i try to open it up and actually install it, I get nothing but a blank page.

If there's anything else you need me to look for, please let me know!

12 May 2006, 9:11 PM
#5
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: install.php is blank

Okay - I found out why the blank page is coming up. Duh. I had the PHP error reporting turned off. I turned it back on, and now I'm seeing errors. Two, to be exact:

Warning: main(version.php): failed to open stream: No such file or directory in c:\websites\zencart\zc_install\includes\application_top.php on line 25

Fatal error: main(): Failed opening required 'version.php' (include_path='c:\php\includes;c:\php\PEAR') in c:\websites\zencart\zc_install\includes\application_top.php on line 25

Now, I've seen other troubles like this mentioned elsewhere in the forum - but none of the solutions apply to me, as it required speaking ot my webhost. Well, my webhost is me, as I'm running this on my computer - localhost.

By the way, "application_top.php" line 25 refers to including "version.php" (again, as in other posts), and "version.php" is up one level from the "application_top.php" file.

Anyone have any ideas? Seems the path includes are wrong, somehow.

12 May 2006, 9:20 PM
#6
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: install.php is blank

More info: found my error log, and here's what it says:

[Fri May 12 17:17:29 2006] [error] PHP Warning: main(version.php): failed to open stream: No such file or directory in c:\websites\zencart\zc_install\includes\application_top.php on line 25
[Fri May 12 17:17:29 2006] [error] PHP Fatal error: main(): Failed opening required 'version.php' (include_path='c:\php\includes;c:\php\PEAR') in c:\websites\zencart\zc_install\includes\application_top.php on line 25

(don't ask me why there's a space showing up in the post between the "i" and "c" of "application" - it's really not there - some formatting on this forum is putting it there)

12 May 2006, 11:05 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: install.php is blank

This one is puzzling me too. I have created a v1.3.0.1 site from scratch this evening running an Apache server on Windows XP with not even a hint of problems. I have also checked the Zen Cart code and everything up to the point of your error (which is very early indeed in the installation process) is exactly where it should be and working perfectly.

You too have confirmed that the application_top.php and version.php files are where they should be.

As you said this must be about the paths. I wonder if the reversal and doubling of the slashes in the error log gives any clue to somebody with more experience in this area.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 May 2006, 1:50 AM
#8
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: install.php is blank

Got it! Thanks to Google finding the Wiki on this :)

In my php.ini file, the include_path was wrong. Orginally, it was "c:\php\includes;c:\php\PEAR" (under the Windows setup) - and it should have been ".;c:\php\includes;c:\php\PEAR"

Note the addition of the ".;" right before the include path. I'm now at the installation page.

Thanks for trying to help, though! (Hope it helps someone else!)

13 May 2006, 8:49 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: install.php is blank

doodlebee:

In my php.ini file, the include_path was wrong. Orginally, it was "c:\php\includes;c:\php\PEAR" (under the Windows setup) - and it should have been ".;c:\php\includes;c:\php\PEAR"
Ouch. This one of those "daah" moments as the blindingly obvious hits you in the face so hard, you really can't ignore it any longer. Great persistence on your part over what must have been a frustrating time, and thanks for posting the solution so that I (and others) will spot this if it happens to somebody else (or us personally!).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2006, 5:33 PM
#10
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: install.php is blank

Hi,

I have an exactly the same problem as you had before. when i put in the http://www.mydomain.com/catalog/zc_install, the screen just went to blank.

How you fix this problem?
How you open the PHP error reporting?

lina

2 Jun 2006, 5:42 PM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: install.php is blank

lina0962:

Hi,

I have an exactly the same problem as you had before. when i put in the http://www.mydomain.com/catalog/zc_install, the screen just went to blank.

How you fix this problem?
How you open the PHP error reporting?

linaPHP error reporting is controlled through the php.ini file. Here's the relevant section with rhe two vital lines highlighted in red> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatability of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices and coding standards warnings
;
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = OnHowever, in a shared hosting environment your ISP may not give you direct access to this. If so,you would need to talk to them about how to achieve this as there are several possibilities according to the way the ISP configures their servers.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2006, 5:53 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: install.php is blank

Did you try this?

doodlebee:

Got it! Thanks to Google finding the Wiki on this :)

In my php.ini file, the include_path was wrong. Orginally, it was "c:\php\includes;c:\php\PEAR" (under the Windows setup) - and it should have been ```
".;c:\php\includes;c:\php\PEAR"

> Note the addition of the **".;"** right before the include path.  I'm now at the installation page.

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

2 Jun 2006, 6:28 PM
#13
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: install.php is blank

and thanks for posting the solution so that I (and others) will spot this if it happens to somebody else (or us personally!).

Glad to do so. There's nothing that irritates me quite as much as when I'm searching for an answer, find the answer (or think I have) only to find a "nevermind. figured it out!" - and nothing more - response. I want to track people like that down and throttle them! ;) (Does it really never occur to them that they wouldn't be the only one with the same issue?) I make it a definite point to share my answers if I've discovered one. I guess it's a "pet peeve" of mine!

Lina -

How you fix this problem?
How you open the PHP error reporting?

My issue was on a localhost server - which means I had set up PHP, MySQL and all my programs locally, on my own computer to run as a server that's not really on the internet. No daimn names or anything - I just access my own files and databases from my office and no one else really has access to it.

That being said, it's the same setup as your webhost - except your host has a server that you can access from the internet. So the way to solve your problem would require you to contact your webhost, as kuroi mentioned.

First you need to contact them and ask them to turn PHP's error reporting "on". Once it's been turned on, you'll be able to see the error messages that come up when you try to run things. If it's the same error, then you'll need to contact your webhost again amd ask them to change the PHP.ini file to the stuff I mentioned before in my previous post, and referenced to by DrByte: they need to add the ".;" at the beginning of the line for the include path.

Again, this is 1) for a Windows-based server running Apache and PHP. if your server is Windows and doesn't run Apache and PHP, you're in a whole new ballgame. If you're running a *nix server, then the include_path line I mentioned doesn't apply - that line is the next one down. And you must be sure that the error message youre recieving is the same one I came up with - if it's not, then you've got some other error that this solution won't fix.

Hope that gets you started!