Broken wordpress site, non-working links and no access to wp-admin page

I was just handed a broken Wordpress site that I am now in charge of Administering (administrating?).

EDIT: Since posting this, I have made some new discoveries about my issues.

When trying to access the Wordpress Administration page (by clicking the link from logging into the dashboard), I get a 404-not found page. This 404 error page is branded (has same background and styling) as all the other pages on the website being hosted.

I'm guessing my links are broken. The authentication page on the website doesn't work and I can't access the admin portal as stated previously.

I have access to the root directory and wp-content folder. The page is hosted by wordpress and I access root by enabling sftp. I also have access to phpMyAdmin, but I'm not sure what tables need to be there (or if any are missing). Having a look at the wp-config.php file, it looks oddly empty.

I had a look at an example wp-config.php file, and contained in the example are options for database name, database user, database password, mysql hostname, etc. My wp-config.php has none of these. Also when browsing my root folder, I don't see any 'sql' subfolder or any database related stuff at all. phpmyadmin looks to have all the tables, but nothing in the wp-config file pointing to the database or with any user/authentication.

Commented out in the wp-config.php file, it says: Database connection information is automatically provided. There is no need to set of change the following config options: DB_HOST, DB_NAME, DB_USER, DB_PASSWORD, DB_CHARSET, DB_COLLATE. HOWEVER- that's it. there are no uncommented configuration options for the above.

When viewing the table wp_admin_columns in phpmyadmin, nothing is returned. (SELECT * from wp_admin_columns returns 0 results. No entries.)

The guy who used to manage this website left and he was disgruntled. Trying to pick up the pieces and figure out whether or not he intentionally deleted/removed stuff.

Thanks

Topic phpmyadmin mysql wordpress.com-hosting permalinks wp-admin Wordpress

Category Web


In case somebody stumbles upon this in the future and finds any relevance to their issue.

My situation was unique in that the site itself was hosted by wordpress as a managed service. I had no access to most of the source files for the wordpress framework itself (the managed service provider managed most of the core files, only the wp-content folder and files were unique for each customer)- so none of those solutions applied to my situation.

The site I was handed was running ~35+ third party plugins and was left untouched for almost a year. During that time many of the plugins fell out-of-update and needed updates. It turns out the theme we were using was the specific thing breaking the wordpress installation (causing 404-loops and disallowing access to wp-admin page, lots of links on the left nav-bar, etc).

Setting the theme back to a default/supported/non-third-party theme and disabling all third party plugins allowed the site to function enough to update and re-apply each of the plugins 1-by-1 until the site was in a functional state. We had to choose a new theme, as the one we were using originally continued to break the site and I didn't care enough to contact the support people for the theme.

Of course, I'm sure most of you know to begin troubleshooting by disabling all third party plugins. However I am not a web-dev and all of my website management experience thus far has been either IIS or LAMP based- new to wordpress.


https://wordpress.stackexchange.com/ is the stackexchange website that deals with wordpress.

It seems like your website is hosted by Automattic so you can get their help by communicating with their support staff. Go to https://wordpress.com/support/contact/ and click on "I need customer service for a paid site hosted at wordpress.com"

https://wordpress.com/support/com-vs-org/

Wordpress is a free and open-source Content Management System (CMS). Its URL is wordpress.org It can be hosted by anyone, anywhere.

Wordpress.com offers a commercial service, the hosting of that CMS.

Automattic is the company behind Wordpress (both .com and .org).

https://wordpress.com/support/phpmyadmin-and-mysql/

I am not sure how broken the site is but you can give this a try. If it doesn't work let us know which step fails:

Try logging in at https://wordpress.com/log-in

Click on My Sites (top-left corner)

Click Switch Site (if available)

Click the domain name

Click WP Admin (you may need to enter your username & password)

Go to Settings -> Permalinks

Click the save button (at the bottom of the page)

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.