Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: failed to open stream / headers already sent

    Warning: main(includes/languages/english/):
    looks like this might be a configure.php issue,

    notice there is no file name after the folder
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    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.

  4. #4
    Join Date
    Jul 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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

    Quote Originally Posted by DrByte View Post
    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

    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.
    Everything seems to be there, and there are no 0 byte files

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: failed to open stream after setup on live server

    Quote Originally Posted by titton View Post
    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.
    .

    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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 13 Dec 2007, 07:56 AM
  2. failed to open stream: Too many open files in ???
    By IllusionGuy in forum General Questions
    Replies: 4
    Last Post: 28 Aug 2007, 09:31 PM
  3. Error after installing only in store - admin works fine - failed to open stream
    By JoeSchell in forum Installing on a Windows Server
    Replies: 11
    Last Post: 30 Nov 2006, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg