Wordpress related Error: Could not determine user from environment - php

I've hit the wall on a Wordpress 4.3 error: "Could not determine user from environment." and need a help on how to fix it.
A little background: there are two websites on one Hostmonster account (no sub-domains). When upgrading Website 1 to Wordpress 4.3, the installation was botched and caused Website 2 (which was NOT being upgraded) to be disconnected from its database and to be linked to Website 1's database. So both Website 1 and 2 were reading from the same database. I got Website 2 re-routed back to the right database, but the error "Could not determine user from environment" persists. The error is visible on the front end of the site as well as the backend Wordpress dashboard. There seems to be a lot of sites with this error on the web, but no one seems to know the cause or solution for fixing it.
Things I've ruled out and other things I've tried:
It's not a plugin conflict because I deleted all plugins and the error persists.
It is not the theme because if you switch to any of the Wordpress default themes, the error is still there.
I've tried replacing the Core Wordpress files and reinstalling Wordpress.
Checked for malware - there is none.
Checked for errors that may have been hard coded into post/page content.
Ran the site through the W3C Validator Service - which yielded no results.
Also, the Config.php debug mode is set to false.
I've never used the Wordpress Multi-site plugin.
Looked on Wordpress Support Forum solutions with no result.
I wonder if the PHP configuration for the Apache Server got messed up, or if this is an error caused by a messed-up database. In the little bit of documentation on the error that I could find, they are linking this error to a DNS mapping issue or a cPanal error.
Any help would be much appreciated; feel free to ask questions. Thanks so much!

This was caused by several issues:
Incorrect Server Permissions
A Malicious site attack
and a wp-social plugin conflict with the theme.

Related

Theme related WSOD in backend for other users

After trying out all typical solutions for wordpress wsods, I am out of ideas.
I migrated my website from wordpress.com to a self-hosted solution using all-in-one-wp-migration, which looked to work fine, until a coworker wanted to use the backend and got wsod.
After going through all the suggestions for fixing wsods and a few of my own, namely:
checking every single plugin used
checking memory (980m should be enough?)
deleting and reinstating all saved accounts
scrubbing the database off of old wordpress.com entries or deprecated urls
running debug mode and not getting any logs from the wsod
I of course landed on my self made theme as the issue. I went over the functions.php file to remove and clean up all custom additions that are not necessary for functionality. I used a theme check plugin to help me weed out most of the issues that come from being a beginner at this, but nothing looks to be related at all to backend.
Especially irritating is the part where it works fine for me while using my pc, but any other device, like smartphone, tablet or other pcs can't seem to get into the wp-admin version of the site while my theme is activated.
P.S.: while the theme is active, backend functionalities like searching for new plugins or changing settings seem to not work right or lead to wsod even for me.
For anyone running into a simillar issue, the solution given by online guides always mentions making sure the END of the functions.php file does not have any empty space there, but they neglect to mention that there can't be any empty line anywhere in the whole file, even within the code.

Wordpress Fatal error: Call to undefined function wpum_get_option()

So i was asked to help some people out who didn't have any experience with Wordpress. First thing that they needed help with was updating wordpress.
I was able to update wordpress to the latest version, however when updating the plug ins it crashed at the last one.
I can't get into the dashboard anymore at all and the website Isn't working anymore either.
Of course this has to happen when you're trying to help someone and not when doing it for your own website.
Anyway, i'm at a loss, so many people saying so many fixes but i'm not sure which one i need because a lot of people get different fatal errors it seems.
Above i posted a picture of the error i got in my screen after trying to update it. I'm checking to see if i can get the account for the hosting so i can get into the host files. As of now i don't have acces to them.
I hope someone can help me out, thanks in advance!
You definitely need access to the hosting provider. If that's the only error that you have, the easiest thing you can do is to access the plugins folder via FTP (or via the hosting provider's file manager) and change the name of the wpum-recaptcha folder temporarily. This will prevent WP from loading that plugin, and should allow you to get in the dashboard at least.
At that point, you will have to either find an updated, working version of that plugin or remove it entirely.

opencart 3.0 dashboard error 500 after refreshing cache

Good evening people.
Im having trouble fixing my opencart dashboard and searching around is proving futile.
Im faurly new to hosting and the opencart framework so please bear with.
I had been using opencart 3 for my webstore and was happy editing it through the dashboard. however, as I was dealing with an ssl issue, I read advice to clear my opencart cache. I did this by clicking on th refresh buttons for Theme and sass
inside the dashboard. Now I can open my dash board! when I want to access it I get a white screen or error 500.
I allowed errors in the admin php file and it tells me this;
Fatal error: Uncaught Error: Class 'Scssc' not found in /home/cluster-sites/6/…
so I'm guessing I'm missing the Scssc class that's used for sass on the dashboard and without it my dashboard cannot open,
My question is, can I reinstall or repair whatever file I need to reinstate my dashboard or rewrite the info (the Scssc class) that has gone missing since clearing the cache? any help would be appreciated as I'm on a deadline to get tons of products uploaded and the thought of starting again chills me to my core!
The same here. I googled and found related issue on github:
About your issue: please double check your paths. Double check config.php in root and in admin.
Check you config.php and admin/config.php files. Make sure your paths are correct.

Wordpress Plugin Broke My Site & Cant Figure Out How To Resolve?

Ok so long and short of this is, I built a custom plugin for a Wordpress site and was working on a small update. Think perhaps I have a small typo error in the code but after saving the update my site is now showing a 500 error.
I have already attempted the following usual methods without success:
1: renamed the plugin and plugins directories to attempt to both disable individual/all plugins.
2: disabled all plugins via db.
Now the change itself was made via the wp back end, which updated the file. However I cannot see this change via FTP. This baffles me. I would assume somehow the database updated the file somewhere within itself which is perhaps overriding the original file? I haven't seen Wordpress do this before.
I'm not sure but would like to be able to figure out why this happened and if it's fixable.
For now I am just going to do a rollback. Any thoughts on this would be most welcome.
I suggest you try:
restoring the database. If you can’t see which file changed probably means that the database was changed and not a specific file. A popular plug-in for back up and restoration is updraft plus which enables you to select files, the database, or themes. Assuming you don’t have a restore plugin installed you could contact your hosting provider who may be able to restore the database to an earlier version. This functionality may also be available through the control panel on the Domain and Hosting. If this works then at least you know where the trouble lies with your dog and development.

Identify pages which refreshes automatically in my site

I have a site which uses wordpress. For some reason, some of my pages keep refreshing continuously. I am not able to replicate the issue continuously. However, in random I have seen some pages keep refreshing automatically. When I retry the same pages after few mins, it is working fine. My users also experiencing the same problem. When they report me the issue with a url and if I check that page it is working fine. So, I am sure the issue is there but unable to replicate the problem or troubleshoot the issue.
This is not a browser or system issue. The issue occurs with registered and unregistered users.
So, I need your help on this to troubleshoot this problem. Is there anyway to find out whether the page is keep refreshing by adding some code in wordpress theme php files like writing some sort of logs, etc.? So that I can try to troubleshoot the problem.
The same theme with plugins works fine in another site with other hosting provider. I have also checked with my hosting provider. They replied back and said they are not able to find any issues on their side and cannot help further, as the issue occurs in random.
Thanks in advance :)
This sounds like your site may have been hacked. Check the page source (View Source or Ctrl + u) for <script> tags that you don't recognize. If you are unsure, try disabling all of your plugins and use the default theme. If the issue persists, then it is most likely an issue with your site being hacked, and you should reinstall WordPress from scratch, and do fresh installs of all plugins and themes. If you are using a custom theme, upload a version that you know was working. Also, be sure to change passwords for your dashboard and hosting account.
If disabling a plugin or using the default theme makes the issue go away, then it's a bug with that particular theme/plugin. In this case, report the bug to the appropriate party (person/company responsible for the particular plugin/theme that's causing the issue).
How to Debug
Try to find a way that you can consistently test for the problem. For example, if you can refresh 20 times, and it happens twice every time, then you have your test to use. It sounds like it won't be as simple as this, but that's the basic idea... find the minimum number of times it takes to come across the issue on a regular basis, and test for it 3 times for each plugin you disable (and when you turn the main theme back on).

Categories