magento Unable to login to admin - after domain change on new server - magento

After I have moved my website to the new Domain and server . I cant log into admin.
The admin Url Gets updated but I can't login . The front end home page appears but cant go to categories and products pages.
In the error logs it always show one table or the other missing like this time it shows
a:5:{i:0;s:101:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxxx_table.sales_flat_order' doesn't exist";i:1;s:3451:"#0 /var/www/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
Some how if I get over this table it shows another table missing next time .
I have done all the basic troubleshooting:
changed core config URL.
Deleted cache and session and also core cache session path from core_config_data
Followed These:
Magento Admin Not Logging In (after domain transfer)
http://www.magentocommerce.com/wiki/how_to_fix_login_for_admin_on_local_install#dokuwiki__top
No Luck after all this any Guesses, Tips or advice
Procedure of Backup:
Yes I have taken the backup of files and a entire database backup from PhpMyAdmin. Uploaded the file on the Root and then uploaded the database. Infact created the new database with same database name and username as previous .Using same encryption key etc. One things I would like to mention I am modifying the host file to see this current development website via Ip address because on the actual domain we have the live website ? Can this be a issue ?

Related

Access Denied Magento Admin after domain change: correct password

After migrating from an amazon instance to GoDaddy hosting, I am unable to login to Magento backend when using the same username and password,
Adding a new user with a new password gives the same error: access denied
web/unsecure/base_url are set correctly in the database table core_config_table
My cookies are setup as follows
web/cookie/cookie_lifetime 3600
web/cookie/cookie_path NULL
web/cookie/cookie_domain NULL
web/cookie/cookie_httponly 1
web/cookie/cookie_restriction 0
Please let me know any thoughts you may have as I have searched google many times and none of the guides help, and I am starting to feel like I am the only one with this specific issue.
Thanks in advance!
Found the Solution myself after many weeks,
Save this file as newadmin.php in your magento root, then uncomment and replace the credentials with the ones you want, then go to example.com/newadmin.php
Voila!!!
The reason is because administrator permissions were contravened, as far as I know this is the only way to add a working user.
Unfortunately one problem led to the next and I started getting index.php inserted into all of my links when I go into admin panel ex:
example.com/index.php/admin/********
I would be fine with this if it didn't send it to a 404 page, the correct page is:
example.com/admin/********
when I remove index.php from the url it works, but if I click on any link or try to save chages in admin panel, it reinserts the index.php in the url and doesn't POST anything to the page, because it gets sent to a 404 page
Click This Link if you want to follow my bug-fixing adventures:
try after delete var/* folder for remove cache
if not worked then change password from db admin_user table then try it.
Did you name your database and users exactly the same as before?
Some CPanels will automatically choose the first part of the MSQL database for you...
check app/etc/local.xml and see if it's all correct

Magento front end links not working

I am trying to create a test environment for a Magento site. I downloaded all the files and the database and restored to XAMPP. I changed the two base urls in the core_config_data table to http://magento.local/magento/ and modified the Magento config file to connect to the local database. I also added magento.local in the hosts file. I'm using magento.local as I read Magento must have a . in the domain name. The site almost works except on the front end when on http://magento.local/magento/ and try and go to a different page it tries to access http://magento.local/pagename/ and gives a 404 error, i can access through http://magento.local/magento/index.php/pagename. I have also disabled Web Server Rewrites in the backend as I read that is supposed to fix this problem. Any suggestions much appreciated.
Thanks
Alex

Magento redirect /work160.com/

I bought after the installation of magento template, uploading demo database and a few time later, the site URL / work160.com / domain name is directed. I delete and re-install again I have to. Magento is in line with our demo pages bring our own? This problem can be solved with a regulation or in?
If your magento is redirected on another website (that is how i understand your question), you can do those steps:
check your basic secure and unsecure URL configuration, there should be your server adress
if you cant not login to admin during redirect, fo to the database to table named core_config_data and make sure there is right set up web/unsecure/base_url and web/secure/base_url both will have to value http://www.something.ok/ the last "/" is important
Reindex / fush cached data (delete magento/var folder if you cannot pass admin)
Refresh data in your browser (or use another one / anonymous mode)
and ... thats all

phpMyAdmin has two database tables under one heading

I am in the process of moving my local website onto a live webhost and am having some confusion while exporting my database tables from phpMyAdmin.
I attached a screenshot for reference.
It seems as if there are two database tables that are being used for my website, I'm not sure how this happened though. What I am trying to figure out is which database table is the one that I need to export along with all my Joomla files?
I went into my htdocs to check the configuration.php file and it says that the database prefix is xxx (i made this up) BUT when I go look into that database table (on phpMyAdmin) the dates of creation don't match up but are current in the "other database table."
Thank you for your help.
Screenshot for reference
To ascertain which is the correct database, create a new user via the Joomla interface, then have a look at the users Joomla table via phpMyAdmin, in both databases, to see in which database the user got created.
This information can be found in your site's admin at Site => Global Configuration => Server

Magento secret key admin login

I turned off the option to use the secret key in the Magento (1.7) admin URLs yesterday. Today when I try to log in it tries to use the secret key, but fails because I disabled it. The effect is that I can't get into the admin now because every login request fails. Can anyone give me the location of the setting in the database or give me another way out of the hole I dug for myself?
In case you don't have access to Magento admin area, but you like to turn on the option to use the secret key in Magento you can try to execute SQL query over the DB of your Magento installation or to use web interface ( e.g. phpmyadmin ).
Basically you have to find a record where column path = admin/security/use_form_key in table core_config_data and to set it's value to 1
In case you use phpmyadmin or similar software, just navigate to the table core_config_data find the desired record and change the value. It also will work if you delete the record, because if the record doesn't exist Magento will fetch the value of the xml configuration files and the value there is set to 1
Also keep in mind, that some Magento installation use DB table prefixes and the table core_config_data may have different name e.g. prefix_core_config_data

Resources