Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2007
    Posts
    31
    Plugin Contributions
    0

    Default Errors in application_top

    i am getting the following error:

    Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home/sites/meilijianshopping.com/web/store/includes/application_top.php on line 60

    Warning: main() [function.include]: Failed opening 'includes/configure.php' for inclusion (include_path='/usr/local/lib/php') in /home/sites/meilijianshopping.com/web/store/includes/application_top.php on line 60

    both appliction_top.php and configure.php are unchanged from the original installation.

    Any suggestions please

  2. #2
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: Errors in application_top

    open the configure.php and find out what line 60 says. Then tell us what it says

    nomad

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Errors in application_top

    (include_path='/usr/local/lib/php')
    Your webserver isn't configured to allow "relative" paths.
    Ask them if they'll add "." (yes, just a period) to their include_path settings.
    Or ask them if your server will allow you to do it manually via a .htaccess file change, and what to put in it.
    .

    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
    Sep 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Errors in application_top

    Thanks DrByte.

    The site ran OK for about two months and then this problem occcured two days ago. The hosting company did not change anything and won't add the period in case it affects other customers.

    is there anything within admin that could have been changed to cause this problem?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Errors in application_top

    Quote Originally Posted by cdjohn31 View Post
    The site ran OK for about two months and then this problem occcured two days ago. The hosting company did not change anything
    Well .. if you didn't change files on the server, and the hosting company didn't change any settings on the server ... then ... you wouldn't suddenly be getting errors that you weren't getting before.

    Quote Originally Posted by cdjohn31 View Post
    is there anything within admin that could have been changed to cause this problem?
    No. The admin settings have nothing to do with whether/how the configure.php file gets loaded.

    Does the /admin/includes/configure.php file exist?
    .

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Errors in application_top

    As a test, try adding this to the top of your /admin/includes/application_top.php file, just after the opening <?php line:
    Code:
    /*
     * ensure that the include_path can handle relative paths
     */
    if (!strstr(ini_get('include_path'), '.')) ini_set('include_path', '.' . PATH_SEPARATOR . ini_get('include_path'));
    .

    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.

  7. #7
    Join Date
    Sep 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Errors in application_top

    DrByte,
    I included your code in application_top in both admin/includes and includes itself. Both the site and admin now work.

    I now doubt the truthfullness of what the hosting company told me (that they had changed nothing). They only supply email support at weekends so I will have to wait until Monday to speak to a live person.

    There isn't a configure.php in admin/includes and, from my backup, don't think there has ever been one.

    Many thanks for your help!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Errors in application_top

    Quote Originally Posted by cdjohn31 View Post
    There isn't a configure.php in admin/includes and, from my backup, don't think there has ever been one.
    If the admin area is ever to work, there *must* be an /admin/includes/configure.php file. (assuming your "admin" folder is named "admin" and not renamed)
    .

    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.

  9. #9
    Join Date
    Sep 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Errors in application_top

    DrByte, There is a configure.php as you rightly say. I've spent too many hours staring at the screen, I think.

    The hosting company, Telivo, have denied changing anything on relative paths but, as if by magic, since I complained on Monday it all works OK without your additional code.

    I've put this one down to experience.

 

 

Similar Threads

  1. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM
  2. application_top.php
    By teranet in forum Installing on a Windows Server
    Replies: 1
    Last Post: 28 Oct 2006, 04:09 PM
  3. application_top
    By bobrushworth in forum General Questions
    Replies: 3
    Last Post: 6 Oct 2006, 02:40 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