Zen Cart Logo
Forums / Installing on a Linux/Unix Server / failed to open stream after setup on live server

failed to open stream after setup on live server

Locked

Views: 2,260

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Jul 2007, 8:39 PM
#1
titton avatar

titton

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

failed to open stream after setup on live server

Hi all, I have a problem well documented in the knowledge base but having followed all the advice, I still have the issue. I have just installed ZenCart on my live hosted server having succesfully had a test-bed running on a local linux server.

Installation was fine and I can get to the front-end ok. However, when I try to access the admin section I get the follwing errors:
__

Warning: main(includes/languages/english/): failed to open stream: No such file or directory in /var/Sites/com/maxbeautiful/www/cart/admin/includes/init_includes/init_languages.php on line 29

Warning: main(): Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/share/pear') in /var/Sites/com/maxbeautiful/www/cart/admin/includes/init_includes/init_languages.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /var/Sites/com/maxbeautiful/www/cart/admin/includes/init_includes/init_languages.php:29) in /var/Sites/com/maxbeautiful/www/cart/admin/includes/init_includes/init_templates.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /var/Sites/com/maxbeautiful/www/cart/admin/includes/init_includes/init_languages.php:29) in /var/Sites/com/maxbeautiful/www/cart/admin/includes/functions/general.php on line 34
__

Now, having read the FAQs I know that the problem lies in init_languages.php on line 29 - but I can't determine the problem. I have checked for additional spaces but no issues there. Line 29 is:

include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page);

which gives me absolutely no clue whatsoever, my very helpful ISP is guessing that the file is looping there. FYI, I have checked the config.php and the DIR_WS_LANGUAGES is pointing at the right place.

Please could someone assist.

Many thanks

Daniel

18 Jul 2007, 8:42 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: failed to open stream after setup on live server

Warning: main(includes/languages/english/):

looks like this might be a configure.php issue,

notice there is no file name after the folder

18 Jul 2007, 8:46 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: failed to open stream after setup on live server

  1. Is this happening only for admin logins?

  2. What happens if you add** ?language=en **to the URL in the browser?

  3. When you ran zc_install, what warnings did it give you about the server?
    Were there any alerts about PHP session issues ?

  4. Did you do this as a fresh-install to the server, or did you attempt to manually copy and patch everything directly from the test environment?

  5. Did your upload happen to miss any files mistakenly? Or leave some as 0-bytes instead of doing a full transfer of the files? Sometimes timeouts mess things up.

19 Jul 2007, 8:58 AM
#4
titton avatar

titton

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

Re: failed to open stream after setup on live server

Hi thanks for your response, I have interleaved my answers to questions below.

Problem is still there causing me pain!!!

Regards

Daniel

DrByte:

  1. Is this happening only for admin logins?
    The front-end works fine, so yes.

  2. What happens if you add** ?language=en **to the URL in the browser?
    I get the same error

  3. When you ran zc_install, what warnings did it give you about the server?
    Were there any alerts about PHP session issues ?
    Yes I got a 'PHP Session.use_trans_sid should be disabled.' and I can't use a .htaccess, as the web server throws a fit, so I've passed this one to my ISP

  4. Did you do this as a fresh-install to the server, or did you attempt to manually copy and patch everything directly from the test environment?

A fresh install

  1. Did your upload happen to miss any files mistakenly? Or leave some as 0-bytes instead of doing a full transfer of the files? Sometimes timeouts mess things up.
    Everything seems to be there, and there are no 0 byte files
19 Jul 2007, 10:21 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: failed to open stream after setup on live server

titton:

When you ran zc_install, what warnings did it give you about the server?
Were there any alerts about PHP session issues ?
Yes I got a 'PHP Session.use_trans_sid should be disabled.' and I can't use a .htaccess, as the web server throws a fit, so I've passed this one to my ISP

Let's see what they come up with. Perhaps you can use a custom php.ini file to disable the transitive SID function.