Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32
  1. #21
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Renamed folder and site links are broken

    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.

  2. #22
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Renamed folder and site links are broken

    Quote Originally Posted by Website Rob View Post
    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.
    what a bummer. Wish I had not tried to change the name of the admin folder. They are typically not very helpful by phone.

  3. #23
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Renamed folder and site links are broken

    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.

  4. #24
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Renamed folder and site links are broken

    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.

  5. #25
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Renamed folder and site links are broken

    Quote Originally Posted by Website Rob View Post
    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.
    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

  6. #26
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Renamed folder and site links are broken

    Quote Originally Posted by DrByte View Post
    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)
    Great suggestion, thank you DrByte!

  7. #27
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Renamed folder and site links are broken

    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.

  8. #28
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: Renamed folder and site links are broken

    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!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #29
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Renamed folder and site links are broken

    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...

  10. #30
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Renamed folder and site links are broken

    Quote Originally Posted by Website Rob View Post
    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.
    OK That was it!! Apparently I messed something up. So I reuploaded the good config files to both places, and it works perfectly. THANK YOU THANK YOU!!!

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v139h confused about renamed admin folder and new admin files for upgrade
    By Pazaz in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 4 Jan 2015, 07:44 PM
  2. All the links are broken
    By Chubacheroo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Aug 2008, 10:54 PM
  3. Renamed my admin folder and cant login now
    By workaholic in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Jul 2008, 04:31 PM
  4. Renamed admin folder and lost SSL
    By wvasconcelos in forum Basic Configuration
    Replies: 2
    Last Post: 10 Jul 2008, 03:57 PM
  5. PLEASE help--Renamed folder now there's no site
    By Robbyn7 in forum Installing on a Windows Server
    Replies: 5
    Last Post: 7 Apr 2007, 01:06 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