Contact your Hoster. There could be a server problem you are not aware of and even if not, they can help solve this problem as well.
Contact your Hoster. There could be a server problem you are not aware of and even if not, they can help solve this problem as well.
It just dawned on me that the front-end can connect to the database so it stands the reason the back-end cannot because of something in your Admin configure.php file. Double check to make sure single quotes are where they should be and any changes are correctly done.
Also, change the Admin dir. name to use only a-z A-Z 0-9 characters, no spaces or special characters, and post back what msg. if any, you get in the Browser when you try to login.
if your text editor is putting in the wrong kind of quotes, then it might also be mangling other edits.
Recommend switching to Sublime Text https://www.sublimetext.com (can be used free indefinitely) or Visual Studio Code https://code.visualstudio.com (is free)
.
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.
yes, that makes sense. But it WAS working just fine, until I changed the name of the admin folder...
I'm going to go back in and look at that file again as you suggest though, thank you!
BTW, I'm sorry if I've sent you 4 private messages, but not one is showing up in my sent folder, I may be doing something wrong. But I have no idea what... If you're getting them, let me know pls LOL
more info from the log file, honestly I don't know what it means.
[25-Jul-2017 13:53:18 America/Phoenix] PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED :: select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' in <edited for privacy>rosswells/includes/classes/db/mysql/query_factory.php on line 120
Should I post the query_factory.php file? I don't see anything private in there, but I'm not 100% sure.
Last edited by cindygordon; 25 Jul 2017 at 10:17 PM.
wild guess, cindy is making a bunch of changes, the site gets a bit broken, i highly doubt there is a server problem at this exact moment.... i could be wrong....
cindy,
when you see the error:
DB_ERROR_NOT_CONNECTED
that means there is a problem in one of the configures files. both files require credentials to access your database. without your database, zencart will not function.
when you changed your DB credentials using the cpanel, those credentials are what you need in the configures files. if you can login to phpMyAdmin and see the database then you have the necessary credentials for ZC. phpMyAdmin is a tool to look at and/or manipulate data in your database. it needs the same credentials as ZC needs.
i believe there is a database username, database password, and database server constant as well as a database prefix in both those files.
try changing those to what you use to get onto phpMyAdmin. it may sound a little confusing, but i think we all have had trouble logging into something at some point in our on-line lives.
good luck!
Also, note that somewhat unfortunately the tool used to modify the files (ie. includes/configure.php and admin/includes/configure.php) may also be holding "old" versions of the files. What does that mean? Well, it may seem like you are seeing that they have each been updated, but in fact one or the other has not been.
Much like a web browser, refreshing the files (F5 or ctrl-F5 or Cmnd-F5, etc...) should refresh the list and contents within the file(s) as seen on your computer. Also, it is possible that changes were made to your admin file and not to your store file and through that all, the phpmyadmin database information was not committed. Why could it be possible to change one and not the other? The store includes/configure.php is typically made read only (permissions of 444) by the ZC software to prevent inadvertent modification. Without making it writeable (644) "changes" made would not be stored. Depending on your editing software, you may not have been alerted to that... also, because it hasn't been stated to you to modify the file permissions, I have a feeling that the includes/configure.php file was not actually updated with new database credentials. :/
Sorry I missed all the chaos that followed. Haven't really checked back to the site much today and after I received notification of the success, any further posts to this thread were not forwarded.
As to the foldername renaming, I expect RodG to chime in saying that this is possibly one reason not to worry about changing the name, though the entire situation does seem unusual. Really do hope that you have/had a backup of your database.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Bookmarks