Results 1 to 10 of 15

Hybrid View

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    Quote Originally Posted by lj111970 View Post
    [Warning: main(/nawinfs02/home/users/web/b839/rh.lj111970/includes/autoload_func.php): failed to open stream: No such file or directory in \\nawinfs02\home\users\web\b839\rh.lj111970\admin\includes\application_top.php on line 130
    It's telling you that a required file cannot be located on the server.

    Your DIR_FS_CATALOG settings are probably incorrect.
    You're on a Windows host that's using \\nawinfs02\home as the server/drive/share location of your webstore files.
    But PHP doesn't recognize \\nawinfs02\home the same as /nawinfos02/home

    You'd be safer using a drive letter mapped to that server/share, or else alter your DIR_FS_CATALOG (and other) setting(s) that use /nawinfs02/home to use: \\\\nawinfs02\\home ...

    (Yes, the doubled-up backslashes are required due to the way Windows works and how PHP interprets a backslash.)

    Perhaps your hosting company can instruct you on the correct path to use.
    .

    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.

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    Hello everyone,

    Thanks Dr Byte for your help, you are really helpful!!

    I have the same issue but actually what I want to do it is install on the same server a test webstore to work on it if necessary.
    I have my main webstore in the folder public_html/zen/ and my test webstore is in this folder public_html/testvm/store/

    When I want to access to the admin section in my test website, I have this error message poping up :

    Warning: require(/data/14/1/130/41/1293367/user/1384328/htdocs/zen/includes/autoload_func.php) [function.require]: failed to open stream: No such file or directory in /home/viamccom/public_html/testvm/store/admin/includes/application_top.php on line 149


    in my configure.php file I have that :
    define('DIR_WS_CATALOG', '/testvm/store/');
    define('DIR_WS_HTTPS_CATALOG', '/testvm/store/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    My main webstore and main admin section is working fine but not my test webstore. I don't know what I can do. I can code but I can't find the problem...
    Thanks a lot for your help!

    have a great day,

    F.

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    Quote Originally Posted by fcegarra View Post
    Warning: require(/data/14/1/130/41/1293367/user/1384328/htdocs/zen/includes/autoload_func.php) [function.require]: failed to open stream: No such file or directory in /home/viamccom/public_html/testvm/store/admin/includes/application_top.php
    You probably haven't updated your DIR_FS_xxxxxxx settings in your configure.php files to suit your new server's settings
    .

    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
    61
    Plugin Contributions
    0

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    Thanks for this so quick answer. I really appreciate!

    public_html/testvm/store/ is my test webstore
    public_html/zen is my main and live webstore
    I am actually on the same server but on a different folder and I have that in my configure.php :
    define('DIR_FS_CATALOG', '/home/viamccom/public_html/testvm/store/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    I have no clue where It is wrong..I got headache already at 10.30 am..arffff
    Do you know if I need to setup /edit something else. I asked my host company "camelot hosting" but they haven't got back to me yet.

    Thanks!!!!

    F.

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    You have 2 configure.php files.
    Have you updated both?

    Were they read-only before you updated them? If so, did you make them writable before uploading changes? If not, the upload likely failed.
    .

    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
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    I am dumb sometimes I had not updated the admin/includes/configure.php file. I just did it but I have the foolowinf error :
    Warning: require(/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/includes/autoload_func.php) [function.require]: failed to open stream: No such file or directory in /home/viamccom/public_html/testvm/store/admin/includes/application_top.php on line 149

    Fatal error: require() [function.require]: Failed opening required '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/viamccom/public_html/testvm/store/admin/includes/application_top.php on line 149
    It is still the same error but now I have the path of my test webstore right (/testvm/store) befire it was (/zen) which is my main webstore.

    Here is my admin/icnludes/configure.php

    define('HTTP_SERVER', 'http://****.com');
    define('HTTPS_SERVER', 'https://*****.com');
    define('HTTP_CATALOG_SERVER', 'http://*****.com');
    define('HTTPS_CATALOG_SERVER', 'https://*****.com');
    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * 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', '/testvm/store/admin/');
    define('DIR_WS_CATALOG', '/testvm/store/');
    define('DIR_WS_HTTPS_ADMIN', '/testvm/store/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/testvm/store/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/admin/');
    define('DIR_FS_CATALOG', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '****');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', '*******');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/cache');
    This file is actually my zen/admin/includes/configure.php where I changed the word "zen" but "testvm/store". I have edited my db info too.
    Do I miss something here?

    Thank again for all your help Doc, you r the best :)

    F.

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    Warning: require(/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/includes/autoload_func.php) [function.require]: failed to open stream: No such file or directory in /home/viamccom/public_html/testvm/store/admin/includes/application_top.php

    Your real DIR_FS_CATALOG setting should probably be more like: /home/viamccom/public_html/testvm/store/

    But the error message is saying that it's being told to look at:
    /data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/

    "testvm" isn't the issue ... it's the rest of the path before it that's coming from settings for another server
    .

    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.

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

    Default Re: help please? - admin says failed to open /includes/autoload_func.php

    you need to change these lines
    Code:
    define('DIR_FS_ADMIN', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/admin/');
    define('DIR_FS_CATALOG', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/');
    
    define('DIR_FS_SQL_CACHE', '/data/14/1/130/41/1293367/user/1384328/htdocs/testvm/store/cache');
    to be

    Code:
    define('DIR_FS_ADMIN', '/home/viamccom/public_html/testvm/store/admin/');
    define('DIR_FS_CATALOG', '/home/viamccom/public_html/testvm/store/');
    
    define('DIR_FS_SQL_CACHE', '/home/viamccom/public_html/testvm/store/cache');


    These are the same same edits I sent you last night,

 

 

Similar Threads

  1. Replies: 0
    Last Post: 10 Dec 2013, 05:03 AM
  2. Replies: 0
    Last Post: 10 Oct 2009, 02:38 AM
  3. Fatal error: autoload_func.php: failed to open stream: No such file or directory
    By prashanth in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 6 Jun 2009, 02:54 AM
  4. Replies: 3
    Last Post: 21 Jan 2009, 04:13 PM
  5. Replies: 1
    Last Post: 8 Jun 2006, 10:27 PM

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