New Zenner
- Join Date:
- Apr 2012
- Posts:
- 31
- Plugin Contributions:
- 0
Password problems
Yes, everything is exact.
New Zenner
Yes, everything is exact.
Sensei
Okay. Earlier you said you're getting this message: > WARNING: An Error occurred, please refresh the page and try again.
That means an error is occurring. And it's most likely recorded in the logs.
What's showing in the logs now?
.
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.
New Zenner
I haven't gotten anything in the logs since Sunday and this is what it showed:
[07-Oct-2012 18:34:23 UTC] PHP Fatal error: 0: DB_ERROR_NOT_CONNECTED :: select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' in /home/content/88/9174688/html/zencart/includes/classes/db/mysql/query_factory.php on line 101
Sensei
Well that sort of thing would show up if the DB_PASSWORD (or other DB_XXXXX settings) were invalid in the configure.php files.
But if that's been fixed, then the issue is something else.
.
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.
New Zenner
Well, isn't my face red...I've been on with GoDaddy and a very helpful employee who guided me to the CORRECT configure.php file. I was not going into the admin/includes/config, I was just going into admin/config. I now have my admin login screen again, however, it is still not accepting my login info.
New Zenner
Sooooo, I guess now my question is--if now that all the DB passwords match in all the config.php files, if I were to run that code in the tutorial that I posted, will it work???
Getting sweaty palms just thinking about trying it again.
Sensei
What are the new symptoms since fixing the correct configure.php file?
blank screen?
"invalid password" message?
no message, but just refreshes the login boxes to empty again after submitting?
or still the old "WARNING: An Error occurred, please refresh the page and try again." message?
.
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.
New Zenner
I'm actually getting the login screen now. :D It's just not accepting username/PW combo. Tried username with PW that is in the php files. Tried 'Admin/admin' combo also.
New Zenner
"You entered the wrong username or password", that's what I get.
Sensei
Okay, then yes the SQL query shown in the FAQ article should take care of resetting it to Admin/admin
http://www.zen-cart.com/content.php?44-how-do-i-change-or-reset-my-admin-password-%28i-lost-it%29
.
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.
New Zenner
Okay, tried that...didn't work. My site is still up and I'm still able to connect to my login page.
I cut and pasted that code and got an error, saying "Table xyz.admin doesn't exist". But, at least I didn't lost everything again! Its a step...
Sensei
What are all your table names like? In phpMyAdmin, do you see a table named "admin"? or do all your tables have some sort of prefix on them? like "fred_" or "zen_" or "sunny_" ?
If so, that's what the FAQ text is talking about in the small print under the SQL code where it talks about prefixes.
So, if your table name is actually zen_admin then change the DELETE FROM admin and INSERT INTO admin to read DELETE FROM zen_admin and INSERT INTO zen_admin
.
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.
New Zenner
Okay, saw that I do have a prefix, so I tried that also. Still got that error. Grrrrrr. Seems like something so simple!!
Sensei
What's the exact new error message?
What's the DB_PREFIX in your configure.php file? Is that the prefix you added in the SQL code?
What's the DB_DATABASE in your configure.php file? Is that the database you selected in phpMyAdmin from the pulldown on the left side of the screen? (there may not be a pulldown if you have only one database in your hosting account)
.
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.
New Zenner
Same error.
Prefix is zen_, and I did use that. Only one database.
Sensei
With respect, it's not going to say "Table xyz.admin doesn't exist" if you used "zen_admin". It would instead say "Table xyz.zen_admin doesn't exist".
So if the actual error is really still saying just "admin", then it means you didn't put the prefix in correctly.
.
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.
New Zenner
Wait, should I actually be using the ID I use when I log in with the prefix? Or zen_admin? I don't use 'Admin' to log in.
My brain is fried. I really appreciate all your time with me.
New Zenner
SQL query:
DELETE FROM admin WHERE admin_name = 'zen_admin';
MySQL said: Documentation
#1146 - Table 'tig1210604264656.admin' doesn't exist
New Zenner
That's the error message. Cut and pasted.
Sensei
No.
The FAQ article says:
Open your phpMyAdmin (supplied by your hosting company), select your store's database, then click the "SQL" tab and run this query:
DELETE FROM [B]admin[/B] WHERE admin_name = 'Admin';
INSERT INTO [B]admin[/B] (admin_name, admin_email, admin_pass, admin_profile)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
``` If you are using a prefix for your database tables, you'll naturally need to add that prefix to the table name above.
ie. "DELETE FROM **prefix_**admin ... " and "INSERT INTO **prefix_**admin ..." ... replacing "prefix_" with your actual tablename prefix.
.
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.
Tell staff why this post should be reviewed.