Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Error when accessing ZC Admin

    OK, confession time, I was tinkering with the file permission settings, but I have changed them all back to what they are supposed to be. I tried to access the ZC admin for my store last night, and I am getting the following errors:

    Warning: main(includes/functions/extra_functions/un_general.php) [function.main]: failed to open stream: No such file or directory in /home/molli102/public_html/ZenCart/admin/includes/init_includes/init_general_funcs.php on line 46

    Warning: main(includes/functions/extra_functions/un_general.php) [function.main]: failed to open stream: No such file or directory in /home/molli102/public_html/ZenCart/admin/includes/init_includes/init_general_funcs.php on line 46

    Fatal error: main() [function.require]: Failed opening required 'includes/functions/extra_functions/un_general.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/molli102/public_html/ZenCart/admin/includes/init_includes/init_general_funcs.php on line 46

    Everything else seems to be working properly. Any idea on what I need to fix to get rid of these errors?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Error when accessing ZC Admin

    A standard install has no file named un_general.php at includes/functions/extra_functions/un_general.php

    Was this from a module you installed?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Error when accessing ZC Admin

    I installed image handler, and i think this was a file that was part of that installation

  4. #4
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Error when accessing ZC Admin

    I checked my files, and the un_general.php file is there. I didn't remove any files.

  5. #5
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Error when accessing ZC Admin

    What size is the file?
    I don't know of any ZC mod that has an un_general.php file.
    I'd suggest make a backup copy elsewhere e.g. to another folder or your machine and delete the file. Files in that folder are automatically loaded at run time.
    Then see if there are any complaints about missing files at startup.

  6. #6
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Error when accessing ZC Admin

    I deleted the file, and got the same error, but this time it was product_music_functions.php instead of un_general.php file. I put the un_general file back. It seems like the "admin/includes/init_includes/init_general_funcs.php" file doesn't like anything in the "includes/functions/extra_functions/"directory.

  7. #7
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Error when accessing ZC Admin

    Check the permission on the
    /includes/functions/extra_functions folder.

    init_general_funcs.php loads any files it finds in there as part of the startup process. Sounds like it is unable to open them?

  8. #8
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Error when accessing ZC Admin

    It's set to 755, does it need to be 777?

  9. #9
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Error when accessing ZC Admin

    No, 755 should be fine, and the files in the folder 644 or similar.
    Similarly init_general_funcs.php round line 46 should look like this:

    // include the list of extra functions
    if ($za_dir = @dir(DIR_WS_FUNCTIONS . 'extra_functions')) {
    while ($zv_file = $za_dir->read()) {
    if (strstr($zv_file, '.php')) {
    require(DIR_WS_FUNCTIONS . 'extra_functions/' . $zv_file);
    }
    }
    }

  10. #10
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Error when accessing ZC Admin

    That is exactly how that line reads. I have not edited any files. This whole problem started when I was trying to change the ZenCart / download folder to a password protected folder via my cPanel (I have changed that back to an unprotected folder.) For some reason that changed the permissions for a lot of my ZenCart folders, and I have gone back in and reset them to what they are supposed to be.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. error 500 when accessing admin area
    By linkerjpatrick in forum Basic Configuration
    Replies: 3
    Last Post: 16 Mar 2012, 11:46 PM
  2. Error when accessing my admin
    By alcodesigns in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 29 May 2007, 07:49 PM
  3. error message when accessing admin page
    By needslotsofhelp in forum Installing on a Windows Server
    Replies: 1
    Last Post: 5 Aug 2006, 03:09 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