Zen Cart Logo
Forums / General Questions / Error when accessing ZC Admin

Error when accessing ZC Admin

Locked

Views: 2,598

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
14 Aug 2007, 12:22 PM
#1
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

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?

14 Aug 2007, 1:05 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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?

14 Aug 2007, 1:14 PM
#3
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Error when accessing ZC Admin

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

14 Aug 2007, 1:42 PM
#4
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Error when accessing ZC Admin

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

14 Aug 2007, 1:55 PM
#5
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

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.

14 Aug 2007, 2:34 PM
#6
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

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.

14 Aug 2007, 2:52 PM
#7
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

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?

14 Aug 2007, 2:56 PM
#8
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Error when accessing ZC Admin

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

14 Aug 2007, 3:13 PM
#9
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

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);
}
}
}

14 Aug 2007, 3:34 PM
#10
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

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.

14 Aug 2007, 3:42 PM
#11
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Error when accessing ZC Admin

OK, not sure what changed, but here is the error I am getting now:
Warning: main(includes/languages/english/email_extras.php) [function.main]: failed to open stream: No such file or directory in /home/molli102/public_html/ZenCart/admin/includes/languages/english.php on line 669

Warning: main(includes/languages/english/email_extras.php) [function.main]: failed to open stream: No such file or directory in /home/molli102/public_html/ZenCart/admin/includes/languages/english.php on line 669

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/email_extras.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/molli102/public_html/ZenCart/admin/includes/languages/english.php on line 669

I don't know what is going on! I have contacted my host to see if he can retore his most recent backup.

14 Aug 2007, 3:58 PM
#12
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Error when accessing ZC Admin

Just a thought, have you checked the permissions in the /includes folder and subfolders off the admin as well as the shop /includes folder?
i.e. there's an admin path as well as the shop folder path

14 Aug 2007, 4:00 PM
#13
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Error when accessing ZC Admin

OK, after following the trail of new errors that would come up when I'd reset the permissions for folders, I FINALLY was able to get to my login screen for Admin! Thanks for your help!