Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    red flag New Install - admin.php will not load properly

    Hello,

    I am new to Zen Cart, I just installed it today and after completing the installation I clicked to go log in to the Admin page and the page will not load and I receive the errors below:

    I am using version: 1.3.8
    Host: iPower
    OS: Debian
    PHP5 (as CGI under Apache)
    all file and dir chmod's are correct
    all files exist

    Warning: require(./includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/web090/b909/ipw.rollingr/public_html/cdmp/store/admin/admin.php on line 23

    Fatal error: require() [function.require]: Failed opening required './includes/application_top.php' (include_path='.:/usr/local/lib/php-5.2.4/lib/php') in /hermes/bosweb/web090/b909/ipw.rollingr/public_html/cdmp/store/admin/admin.php on line 23

    I am very knowledgeable regarding PHP, MySQL and web hosting om general, I have searched the posts and scratching my head, no one else seems to have had this problem... Can anyone help me?

    Thanks in advance!

    Gary777

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: New Install - admin.php will not load properly

    The error msg. is telling you that the "/includes/application_top.php" file is not there.

    If your FTP program shows it is there, delete it and upload it again.

  3. #3
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: New Install - admin.php will not load properly

    Sorry, forgot to mention this...

    The store is working just fine, I can't find any issues.

    There is no index.php under the admin directory, I saw a reference to it in another post, I checked the zip file and there was no index.php in the admin dir of it as well. Should there be?

    Also, I am assuming that I log into the admin panel via:
    /mystore/admin/admin.php

    I can't seem to find any info on how to log in to the admin panel

    Gary777

  4. #4
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: New Install - admin.php will not load properly

    Quote Originally Posted by Website Rob View Post
    The error msg. is telling you that the "/includes/application_top.php" file is not there.

    If your FTP program shows it is there, delete it and upload it again.
    Thanks for the quick reply Rob, it was there (I checked again just in case) and tried what you suggested but no luck, still getting the same error... Something tells me that this is a path problem but I can't figure it out...

    I am using the directory "/store" instead of "catalog" is it possible that a file is out of whack because I used my own dir name instead of the default?

    Gary777

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: New Install - admin.php will not load properly

    You would have to check the paths used in both your config files:
    includes/configure.php -and- admin/includes/configure.php


    I did notice this oddity in your first post:

    require(./includes/application_top.php)

    Not sure where the dot in front of the forward slash is coming or why, but it should not be there.

  6. #6
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: New Install - admin.php will not load properly

    Quote Originally Posted by Website Rob View Post
    I did notice this oddity in your first post:

    require(./includes/application_top.php)

    Not sure where the dot in front of the forward slash is coming or why, but it should not be there.
    Hi again Rob,

    The dot came from me trying to adjust the path to the file that is being reported as missing. I tried ../ and ./ to no avail.

    Any other ideas?

    Here is line 23 from admin.php via the warning
    require('includes/application_top.php');

    Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/webxxx/bxxx/ipw.rollingr/public_html/cdmp/store/admin/admin.php on line 23



    What is interesting about this is that the include path in the error is reporting the include path for PHP and not Zen Cart I.E.

    Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php-5.2.4/lib/php') in /hermes/bosweb/webxxx/bxxx/ipw.rollingr/public_html/cdmp/store/admin/admin.php on line 23

    Shouldn't a Zencart variable set in configure.php (shown below) set up the app include path? And if so why is reporting the PHP path?

    From configure.php
    define('DIR_WS_INCLUDES', 'includes/');

    I'm stumped...

    Gary777

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: New Install - admin.php will not load properly

    If you are using Document Root for your site then you should have this in your config files.

    includes/configure.php

    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');


    admin/includes/configure.php

    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');


    Edit: just re-read an earlier your post of yours.

    "The store is working just fine, I can't find any issues.

    There is no index.php under the admin directory, I saw a reference to it in another post, I checked the zip file and there was no index.php in the admin dir of it as well. Should there be?

    Also, I am assuming that I log into the admin panel via:
    /mystore/admin/admin.php"

    If the front-end is working and only having trouble logging into Admin, use this URL:

    yoursite.com/admin/

    And yes, there is or should be, an 'admin/index.php' file but it redirects to 'admin/login.php'.
    Last edited by Website Rob; 3 Oct 2008 at 05:29 AM.

  8. #8
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: New Install - admin.php will not load properly

    Rob,

    Thanks once again but still no luck... The settings all seem to be in order... And the store is working with the demo files, but does take forever to load (which isn't a good thing!)

    I did a complete reinstall making sure all the files made it to the server this time and I still get exactly the same warning and error messages...

    What is confusing the heck out of me is that the store seems to run fine, I can go all the way to checkout without error (obviously I don't check out since I can't change anything because I can't get into the admin panel.) If the include path is working for the front end why doesn't the back end work as well? Could this be a permissions issue? I have chmod'ed the dirs as directed.

    I ran across this thread: http://www.zen-cart.com/forum/showth...t=include+path

    And the issue is very similar and apparently related to iPower, I am really starting to question the PHP include path settings on the server.

    I have pm'd the author of the above thread to see if he was able to get a resolution... I am just lost on what more to do...

    Thanks again,

    Gary777

  9. #9
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: New Install - admin.php will not load properly

    Success at last!

    After several re-installs I was finally able to log into the admin panel,
    the only thing I did different on this last try was to turn off the "Check for updates" when logging into the admin panel.

    That may have been the issue however it may have been a corrupt install package (several corrupt install packages actually)

    At some point I'll turn the check for updates back on and see if that was the cause however at this point I don't want to risk it, I've spent over 12 hours screwing with this now...

    Thanks again Rob for trying to help.

    Gary777

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: New Install - admin.php will not load properly

    Nice bit of troubleshooting and glad to hear you got things sorted.

 

 

Similar Threads

  1. Host forced php upgrade to 5.3 Now site will not load
    By sperdie in forum Upgrading to 1.5.x
    Replies: 7
    Last Post: 17 Dec 2015, 04:15 AM
  2. Admin login page will not load
    By shaz915 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 26 Feb 2010, 10:02 AM
  3. Admin page will not load
    By ericw in forum General Questions
    Replies: 1
    Last Post: 20 Nov 2009, 06:14 AM
  4. Admin Page will not load
    By zoomchic in forum General Questions
    Replies: 9
    Last Post: 18 Jun 2007, 08:59 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR