Zen Cart Logo
Forums / Upgrading from 1.2 to 1.3.x / help can't get into admin after changing some /includes/languages/english.php!!

help can't get into admin after changing some /includes/languages/english.php!!

Locked

Views: 18,169

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
11 May 2006, 16:12
#1
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

help can't get into admin after changing some /includes/languages/english.php!!

All I did was add some elnglish.php that apparently was missing when I upgraded (I've added several of these without issue...) and now I get this error when trying to access my admin:

Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

Fatal error: main(): Failed opening required 'includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

HELP!!! Thanks!

11 May 2006, 16:48
#2
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

ok update: I uploaded a fresh, clean copy of includes/languages/english.php hoping that would fix the problem and it did not. I will now upload a fresh copy of admin/includes/languages/english.php too because I may have changed that, i'm not sure.

11 May 2006, 16:50
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help can't get into admin after changing some /includes/languages/english.php!!

Delete the file on the server for:

includes/functions/database.php

And then reload it ...

11 May 2006, 16:52
#4
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

the file includes/functions/database.php does not exist on my server. I'm so confused and don't understand how I could have broken it LOL Should I delete it's instance on line 28 of the file it refers to?

11 May 2006, 16:53
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: help can't get into admin after changing some /includes/languages/english.php!!

Have you tried re-uploading includes/functions/database.php?

11 May 2006, 16:54
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: help can't get into admin after changing some /includes/languages/english.php!!

No. Re-upload it.

11 May 2006, 16:56
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help can't get into admin after changing some /includes/languages/english.php!!

If the file is not there to delete ... and the error says cannot find the file ... I would surmise that the file never got loaded or got accidentally deleted ... :blink:

11 May 2006, 16:58
#8
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

LOL I had a duh moment just before you posted that..but..I reuploaded a clean database.php onto my server, clean cache and try to load admin again and get:
Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

Fatal error: main(): Failed opening required 'includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/misty/public_html/admin/includes/init_includes/init_general_funcs.php on line 28

still

scratches head what am I doing wrong?

Misty

11 May 2006, 17:00
#9
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

oh wait, I just noticed that on my CLEAN version of zencart there is no includes/functions/database.php there is only admin/includes/functions/database.php which isn't what it's looking for... oh my what did I do

Misty

11 May 2006, 17:02
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help can't get into admin after changing some /includes/languages/english.php!!

Could you post from the server without your username and password the file:

/admin/includes/configure.php

11 May 2006, 17:08
#11
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

yes here it is:
//

// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
define('HTTP_SERVER', 'http://bobearsbabybums.com');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://bobearsbabybums.com');
define('HTTP_CATALOG_SERVER', 'http://bobearsbabybums.com');
define('HTTPS_CATALOG_SERVER', 'https://bobearsbabybums.com');

// 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', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

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/');
define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');

// * 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', '/home/misty/public_html/admin/');
define('DIR_FS_CATALOG', '/home/misty/public_html/');

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_CATALOG_BLOCKS', DIR_FS_CATALOG . 'includes/blocks/');
define('DIR_FS_CATALOG_BOXES', DIR_FS_CATALOG . 'includes/boxes/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_FILE_MANAGER_ROOT', '/home/misty/public_html/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// 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', '/home/misty/public_html/cache');

?>

11 May 2006, 17:30
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help can't get into admin after changing some /includes/languages/english.php!!

You don't happen to have Beyond Compare from scootersoftware.com where you can compare a clean Zen Cart structure to your structure on your site do you?

It would also let you see if you may have overwritten something from the catalog vs the admin side of the code ...

11 May 2006, 17:34
#13
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

no, I don't have anything like that...I'll look into it..unfortunatley if it costs money it'll be out of the question right now though :/ I do have a back up from a few weeks ago should I just reload it?

Thanks
Misty

11 May 2006, 17:39
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help can't get into admin after changing some /includes/languages/english.php!!

Backup your current site ...

I am not sure how out of date your backup is ...

It sounds like a file is in the wrong place or missing but you would need to compare your site to a clean release for missing files then check to see if any files are loaded wrong such as the:

/admin/includes/application_top.php

vs the file

/includes/application_top.php

Mixing up files can have some really strange results ...

11 May 2006, 17:44
#15
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

I uploaded a free trial of beyond compare and i am currently uploading my whole site onto my computer so I can do a comparison of the two...luckily the actual SHOP is working fine (other than the paypal issue LOL) but I just can't get into the admin right now. I will update after I run beyond compare.

11 May 2006, 18:39
#16
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

i'm just getting error after error. I had found that a folder was moved accidentally and though moving it back would fix the pr oblem but now I have a new error,seemily related to the original error. If I just reinstall zencart 1.3.0.1 as an upgrade, will it keep all of my stuff or will I have to go and fix it all again? (like the pages names etc)?

I'm desperate here to get it fixed, it will take me weeks to go thorugh this even with the compare tool sigh

Misty

11 May 2006, 18:51
#17
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

this is the new error Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in /home/misty/public_html/admin/includes/functions/general.php:2495) in /home/misty/public_html/admin/includes/functions/functions_prices.php on line 1300

11 May 2006, 19:12
#18
bobearsbabybums avatar

bobearsbabybums

New Zenner

Join Date:
Dec 2005
Posts:
44
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

and I have fixed it! (I think!) now to tackle the paypal issue. What happened you might ask? in dreamweaver it is terribly easy to move your file folders on accident. apparently my "functions" folder was moved from admin/includes to admin/includs/init_includes which caused a slew of problems. with the help of the comparison tool (thanks ajeh) I figured out it had been moved (it was out of placed, and moved today) so I moved it back. Once moving it back I still had issues, but once I reloaded the whole clean /functions folder from my clean zencart on my computer, onto my sever, it now works.

THANKS SO MUCH!!!

Misty
(now to tackle the paypal issue...)

04 Nov 2010, 14:41
#19
eject08 avatar

eject08

New Zenner

Join Date:
Nov 2010
Posts:
1
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

Ajeh:

Could you post from the server without your username and password the file:

/admin/includes/configure.php

Hello

I'm a student and for school project i need to make a website.
I found a template but i don't know how to upload it.
I have a domain and a hosting service
x10hosting

Can somebody help me please to upload it?

05 Nov 2010, 15:48
#20
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: help can't get into admin after changing some /includes/languages/english.php!!

eject08:

Hello

I'm a student and for school project i need to make a website.
I found a template but i don't know how to upload it.
I have a domain and a hosting service
x10hosting

Can somebody help me please to upload it?

This is not your forum thread, and it's nothing to do with what you have posted.

Vger