Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    Louisville, Colorado, USA
    Posts
    116
    Plugin Contributions
    0

    Default cryptic php error message foils loading of my admin dashboard

    I have a Zen Cart which successfully opens but when I attempt to open the admin dashboard I get the following error message:

    Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /homepages/16/d402074206/htdocs/Zen Cart/alpha-admin/index.php on line 10

    Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php5') in /homepages/16/d402074206/htdocs/Zen Cart/alpha-admin/index.php on line 10

    That file, application_top.php, is where it's supposed to be (includes/application_top.php) but the index.php function "require" can't see it, so to speak.

    I'm not a php programmer so I'm completely clueless about how to solve this.

  2. #2
    Join Date
    Apr 2012
    Location
    Louisville, Colorado, USA
    Posts
    116
    Plugin Contributions
    0

    Default Re: cryptic php bug foils loading of admin dashboard

    I forgot to add the information that permission on the application_top.php file is set to 777.

    cyberbaffled

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: cryptic php bug foils loading of admin dashboard

    Quote Originally Posted by cyberbaffled View Post
    I forgot to add the information that permission on the application_top.php file is set to 777.

    cyberbaffled
    This is a security risk. It means anyone can edit this file.

    Tell me, exactly WHAT instructions are you following with your installs? What with this, and your previous issues, you appear to be your own worst enemy.

    Cheers
    Rod

  4. #4
    Join Date
    Apr 2012
    Location
    Louisville, Colorado, USA
    Posts
    116
    Plugin Contributions
    0

    Default Re: cryptic php bug foils loading of admin dashboard

    I've deleted all the Zen Cart files associated with the "php bug" and uploaded completely new files, freshly unzipped. Then I've done an install from scratch. And I get the exact same previously copied error message when I attempt to open the filename/admin dashboard. Without the /admin suffix to the domain url the starter ZenCart file opens. The issue can't be the space in the folder Zen Cart because I previously opened the admin process with that file name. Then I lost the admin process when I changed the db password; my previous posts.

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: cryptic php bug foils loading of admin dashboard

    Quote Originally Posted by cyberbaffled View Post
    I've deleted all the Zen Cart files associated with the "php bug"
    Even the files that didn't apparently exist? (rhetorical question).

    Quote Originally Posted by cyberbaffled View Post
    and uploaded completely new files,
    freshly unzipped. Then I've done an install from scratch.
    This is why the previous question is rhetorical. With a new/fresh install what you did prior to this is no longer relevant.

    Quote Originally Posted by cyberbaffled View Post
    And I get the exact same previously copied error message
    Would I be wrong in assuming that you ignored my advice and still tried to install into a folder with a space character?

    Quote Originally Posted by cyberbaffled View Post
    when I attempt to open the filename/admin dashboard.
    "filename/admin dashboard" obviously has some meaning for you, but to me, it sounds like gobbledegook.

    Quote Originally Posted by cyberbaffled View Post
    Without the /admin suffix to the domain url the starter ZenCart file opens.
    More gobbledegook, but this time I think I know what you are trying to say.
    You are apparently trying to navigate to http://yourdomain.com/admin/ and you are getting a page not found error? (not to be confused with a "no such file" error).

    If this is the case, it is possibly because according to your original 'php bug' report, the admin section of your store is to be found at
    http://yourdomain.com/alpha-admin/ or perhaps
    http://yourdomain.com/Zen Cart/alpha-admin/
    The 'correct' one of these will be determined by your Apache (webserver) settings based on where it expects to find the document root folder.

    Quote Originally Posted by cyberbaffled View Post
    The issue can't be the space in the folder Zen Cart because I previously opened the admin process with that file name.
    You DO realise that I'm actually trying to help you, don't you?
    OK, so my original suspicion may be incorrect according to your experience, but that doesn't in any way change the fact that filenames and folders that contain space characters *will* cause all sorts of unexpected problems.

    If you are unwilling to take advice and suggestions then what is the point of us given them to you?

    Quote Originally Posted by cyberbaffled View Post
    Then I lost the admin process when I changed the db password; my previous posts.
    Regardless of what has gone wrong in the past, when we recommend/suggest a 'fresh install' we actually mean, completely start from scratch. This means 'forgetting' about what has gone before because those mistakes/errors are in the past and would be no longer relevant to the current situation.

    I could be way off the mark in regards to the space in the folder name being the immediate cause of the current problem, but as long as you insist that this isn't going to cause an issue (either now, or with some future function/feature) then you are building your store on a shaky foundation, and I feel I won't be doing you any favours by accepting your own observation that this isn't the cause and trying to help you move past it because it'll only come back and 'bite' you in some other way.

    So *please* do a *fresh* install into a folder with no spaces in the names. Also use a *newly* created database so that there is no connection between the old installs and the fresh install.

    Chances are that you'll not have any further problems. Very few people actually have difficulties with a fresh installation (unlike upgrades, which are significantly more complex)

    Oh, and before I forget (again) do be careful with file permissions, because although I previously stated that
    application-top.php with file permissions of 777 is a security risk, there are many servers that are setup in such a way that the server itself will produce a "500 error" (or similar) when they encounter such files, this could also be part of your 'php bug' (I originally discounted this under the assumption that you set the permissions this way in an attempt to fix the failure to open the file in the 1st place).

    We both know the problems with making assumptions though.

    Cheers
    Rod

    ps. Further in regards to space characters in folder names... as an example, check out the two links I entered earlier in this message.. Now note how the one with the space character in the name is a badly formed (incomplete) link? Do you still think spaces are a good idea?
    Last edited by RodG; 13 Apr 2012 at 02:14 AM.

  6. #6
    Join Date
    Apr 2012
    Location
    Louisville, Colorado, USA
    Posts
    116
    Plugin Contributions
    0

    Default Re: cryptic php error message foils loading of my admin dashboard

    RodG, thank you for your thorough analysis. I'm going to repeat the install using a new domain and folder named without a space. It will take awhile for the DNS to recognize the new folder as the domain destination. You were right, I repeated the new install without removing the space from the folder name because I had earlier achieved a complete installation using the folder with the space in the name; Zen Cart.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: cryptic php bug foils loading of admin dashboard

    Quote Originally Posted by cyberbaffled View Post
    Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /homepages/16/d402074206/htdocs/Zen Cart/alpha-admin/index.php on line 10

    I'm not a php programmer so I'm completely clueless about how to solve this.
    Get rid of the space from the "Zen Cart" part of the file path.. In other words, you'll need to rename this folder.

    Even if this isn't the immediate cause of your problem (although I suspect it is) folder names should never contain space characters because these are seen as 'delimiters' and *will* cause all sorts of unexpected problems.

    You may find it easier to do yet another fresh install because simply renaming this folder isn't enough, you'll also need to edit any references to it.

    Cheers
    Rod

    Cheers
    Rod

 

 

Similar Threads

  1. Replies: 6
    Last Post: 28 Dec 2012, 09:38 PM
  2. Error on page when loading index.php
    By ebaobao in forum General Questions
    Replies: 5
    Last Post: 7 Oct 2010, 08:19 PM
  3. admin error message require(includes/application_top.php)
    By mitdrissia in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Nov 2009, 10:06 AM
  4. admin error message - functions_prices.php
    By scrapgabbie in forum General Questions
    Replies: 1
    Last Post: 1 May 2008, 09:38 AM
  5. error when loading create_account.php
    By lenertolson in forum General Questions
    Replies: 1
    Last Post: 24 Jun 2007, 06:21 AM

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