Wordpress Site not logging-in - php

So I'm completely new to working with WordPress and I've had to figure this out by watching YouTube videos and reading articles. I'm not a programmer, all I really understand is HTML & CSS.
So I finished the site on the localhost and I tried to upload it to my hosting service. I created a database and my hosting provider walked me through on creating a subdomain. After that was completed I logged into the admin side of to redirect the URLs. Once I clicked 'save' it logged me out and when I tried to log back in it gave me this error "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." However, the cookies are enabled and the site is live in its subdomain. When I go to test.mydomain.com it works, there's a few things broken but it's showing up. For example, when I click a link it takes me to a localhost url but if i click on the link again it takes me back to the test.mydomain.com url. Plus, when i go to the admin site it's still giving me the error. I have no idea how to go about fixing this. I tried to figure it out but I don't really understand since I'm not familiar with WordPress. Please help!

Related

Can't access my wordpress site after making a change to the Functions.php

I was editing the function.php in my site when my whole site went down. I can't even get into the dashboard or login. Any attempt to go to the site results in this message:
"There has been a critical error on this website. Please check your site admin email inbox for instructions."
I have not gotten any email. I looked online and all the solutions say to go to the dashboard to do something but I can't access the dashboard. One solution said to use FileZilla to access the site but researching more it seems that that had to be set up in the dashboard previously to get the username to access it, something I can't do.
Is there any solutions or way to load into the site in a safe mode?

Wordpress site doesn't work properly

The problem is that I have made a wordpress site on localhost, than I have copied everything to a 000webhost.com domain, changed every post and page IDs, but the site doesn't work on the domain after I log off my wordpress account.
The site has language change option which is works with a languageID cookie (value is 0 if english, and 1 if hungarian). I click on the flag of the language, the cookie value is change properly and the site language too, but when I load another page, the language stays the old. The page sees the cookies (I watched it in the Application->Cookies menu), and after a hard reload, the language changes. The path is / and I gave an expiration date too.
The other strange things is that if I overwrite the header.php file, the header won't change its contant on the pages exept the front page.
I can't upload the site's files cause they are very huge, but I can tell more things that could help you to solve my problem:
The pages have their own .php files with their slug (like page-some-slug.php)
The permalinks are like www.mysite.com/pagename
Everything works fine on localhost with or without logged in with my wordpress account
I have changed only the page and post ID-s in the code
I have changed the header.php files, but the header on the pages didn't changed even after hard reload the browser
If you could help, please help me!
As you mentioned that the WordPress script worked in your localhost and now it's not working on 000webhost.com a free web hosting services? right?
The issue is the free web host, They have restrict free users access for limited feature.
Maybe they don't allow .htaccess and session creation.
Most things are restricted, if your script works on localhost sure it will work live server. You need to get a paid hosting to unlock all the features.
You can confirm with the 000webhost.com, what are they restricted with free hosting users.

My domain is being used to serve a phishing site. They have used used Apache redirection I think. Could somebody rescue me?

I received email from Google search console saying my website contains social engineering contents. Sample URL is,
http://www.sanenthusiast.com/~stechies/Blessin/ba/index.php
Safety tip For your own safety do not type anything in the page.
Somebody hosted a mockup site of Google drive login page on these links. How to get rid of this? I have thoroughly checked my webserver an I dont see any of these folders or files. Looks likes ~stechies/ could be some other webserver and I guess using Apache they have pointed ~stechies/Blessin/ba/index.php and ~stechies/Blessin/ba/ to my webserver sanenthusiast.com/?
Is this correct? It will be of great help if someone could help to stop this redirection.
I checked who owns stechies and found https://www.stechies.com/ Are they behind this phishing scam? Or possibly someone else has hacked them?
Edit:
Another user in stackoverflow posted similar issue on his site - Someone put malicious code with "~" on my website
Tried all possible ways to mitigate the issue. But it was very hard to get rid of the URL redirect. My site runs on WordPress. I can confirm that WordPress was intact and not compromised. The possible issue is with the hosting account or the hosting provider itself.
Checked hidden file in the hosting account root directory, no where ~stechies/Blessin/ba/ to be seen. Finally I ended up migrating to a new hosting provider. Copied only mail and WordPress backup. Once done, the URL redirect is not working now. Submitted my site again for review and Google cleared the error and no more warning comes up.
This still not a effective solution but Google reporting Social engineering content on the site caused panic and I had very less time to respond.

LightOpenID forbidden when redirecting back [duplicate]

I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works.
When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server."
if I delete the attributes including ?login in the url, then I get the "Login with Google button" so clearly I do have file permissions correct.
If I click that button from now on it redirects me to the forbidden page right away, so clearly Google is remembering I'm logged in and happy with my site using the login.
I've rattled my brain over this, tried searching for help and all sorts. Any help is appreciated but I'm near the point of abandoning openid (because the other libs seemed more trouble to implement).
After a lot of searching on this very issue, I got it to work. The issue is likely that your apache server or hosting provider's apache server has mod_security configured to block URLs in querystrings. My hosting provider is Hostgator, and all I did was ask them to whitelist my domains, and it stopped giving me the 403.
Use openid.php file. I have tried it, it redirects back successfully. You must be doing something wrong. Please state the problem in detail. Also, I can't access the link you have given here !

LightOpenID forbidden when redirecting back

I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works.
When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server."
if I delete the attributes including ?login in the url, then I get the "Login with Google button" so clearly I do have file permissions correct.
If I click that button from now on it redirects me to the forbidden page right away, so clearly Google is remembering I'm logged in and happy with my site using the login.
I've rattled my brain over this, tried searching for help and all sorts. Any help is appreciated but I'm near the point of abandoning openid (because the other libs seemed more trouble to implement).
After a lot of searching on this very issue, I got it to work. The issue is likely that your apache server or hosting provider's apache server has mod_security configured to block URLs in querystrings. My hosting provider is Hostgator, and all I did was ask them to whitelist my domains, and it stopped giving me the 403.
Use openid.php file. I have tried it, it redirects back successfully. You must be doing something wrong. Please state the problem in detail. Also, I can't access the link you have given here !

Categories