Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I am currently working on a site that is hosted on GoDaddy's Wordpress-Managed hosting. I have had issues come up that I've never seen before. For example, I was working right on the FTP, saving my changes and uploading immediately, but none of the changes I made would show up on the server. I read about GoDaddy's restrictive cache so I worked locally until the theme was done. Even then, after I uploaded, the changes wouldn't show. I double-checked the style file on the server, it was updated, but I could not physically see my changes.
After a few hours, the changes showed. Now, however, I'm still struggling. The styles and JS updates will not show in Incognito or on certain computers. I'm at the end of my rope here on where to go and what to do. Is it something to do w/ my Wordpress functions file and the versioning of my CSS and JS? Does it have to do w/ GoDaddy's server? Would switching from GoDaddy's Managed Wordpress to a basic hosting and installing Wordpress myself be more efficient?
Thanks for anyone's help!
My guess is caching server side (for example some caching modules will cache all PHP files for a given period of time).
The quick and dirty solution is to add a query string to the file(s) you are trying to view to see changes immediately.
Example:
http://mywebsite.com/somefile.php?hucd8239812
You will need to change the query string every time you change the file, but it's a quick and dirty way to break cache.
Thanks everyone for helping me out! It actually all had to do with GoDaddy and their server side caching. For some reason, the files were taking roughly twenty minutes to show changes. I just started working locally and uploading only when I needed to. Don't know if that's the best solution, but it's working for this simple site.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Every 4-5 days my site gets hyper slow. About 2-3 minutes to load a page. And I can't find what it is.
I empty my source cache.
I empty my Cloudflare cache.
I check if an attack is going on (There are attaches all the time).
I shutdown the Cloudflare firewall.
I disable plugins.
I check the traffic.
I shutdown Wordpress heartbeat.
I shutdown Wordpress cron.
I ...
And then, out of the blue the site is fast again. But I don't know what triggered that. It is shared hosting and loging is poor. So I can't check all errors. Could it be processor memory? Or a SSL mismatch between source hosting, GTranslate and Cloudflare handshakes? (Translated pages doesn't seem to be affected that much).
I plan to migrate to VPS with PHP 7.4 but I have to do some re-coding for that.
I am affraid that migrating a malfunctioning website results in a migrated malfuntioning website. So I like the fix the problem before I migrate.
Any suggestions?
As #amarinediary has already noted, it can be the hosting provider. But I'd like to add few suggestions on his point.
Shared hosting, as it derives from their name, are literally sharing the resources of a server to every website that it hosts. They also have limitations per website, but it's not always controllable.
If another website on the same hosting is being attacked by DDOS, it requires additional resources from the server, henceforth there's nothing left for your website. And if this is exactly what's happening, just feel free to migrate to VPS.
But there's another important reason why this might be happening. And the funny thing is that few years ago that was exactly what happening to my website, and I broke all my brains to understand what that was. And it's very simple: Search Engines Robots. I see that you're quite proficient on that topic, so I won't explain you basic things about how they work, and why do they do that. But you see, when Google or any other SE is indexing your website, it requests every single page on it, and the effect may be exactly as if it would be DDOS. And it happens every 4 - 5 days, exactly as you described.
What'd be solution to this? Give the website more resources and migrate to VPS. Or, if you want to make sure this scenario is correct, tell Google and other SE robots to make crawl less frequent. Add this to your robots.txt:
Crawl-delay: 5
This means that robots will request every page only once per 5 seconds.
I plan to migrate to VPS with PHP 7.4 but I have to do some re-coding for that. I am affraid that migrating a malfunctioning website results in a migrated malfuntioning website. So I like the fix the problem before I migrate.
The worst thing happens is that you receive the same website as it was before. In any scenario, VPS is a win-win solution. Feel free to (you won't regret it).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I've attempted to search first for related wordpress problems with urls breaking but couldn't find much regarding a wp site wpadmin being stuck on the old host too.
I have my company's WP site hosted at webnames.ca, migration was done some months ago and not by me. It has functioned fine so far, but the wp dashboard is still linked with bluehost.
The original dev site with a different domain is up and hosted on bluehost, still.
I attempted to make a change when trying to do a backup on bluehost before updating to WP 4.9, and inadvertently changed site addresses on bluehost.. [I should have backed up via webnames]
This affected the official current webnames.ca address site, showing a Coming Soon 'Bluehost' splash page, which should not be. I reset the url changes but it did not bring the site back.
If I suspend the webpage via the webnames.ca cpanel, the address shows 503 error[no mention of bluehost]. Im not sure what broke exactly with the URl or DNS.
Am I wrong to suspect the migration to new server wasn't fully complete? because for instance I can still install wordpress app to the webnames server. Currently it has no apps or plugins installed. Could they have been duped forwarding to the old site?
I know as much that the wp-config.php file can be edited manually for the current site name, but would changes I made inadvertently on bluehost have affected the files on the new host?
I dont' currently have much php experience, so I am kind of lost. I have tried to be clear in my description, let me know if I can clarify anything about the issue or improve my question.
Thanks so much.
Alex
Your DNS is, fine in my opinion, but you are missing an MX Record.
For me, http://www.patersoncomposites.ca/ loads perfectly, but I noticed webnames.ca is a Canadian server. I had to use a VPN to go to that site, due to it blocking me. That being said, the host may be the issue if you cannot see it load.
Also, your website is not WordPress. If you backed it as WP, something definitely went wrong. It seems the real website link is http://thepatersonco.com/ and then it connects to WP feature.
In final, the website works for me. This is some information I found that may be the issue, but way too much info for a quick fix answer.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Yesterday i got a bug in my wordpress site, where hacker injected a script which can be seen by googlebot only.
That script is not read or identified on normal browsers.
This is not causing issues site availability or performance but on google search it gives advertisements instead of my site content. which is not good.
while searching on google i got this
https://aw-snap.info/articles/spam-hack-wordpress.php
I tried almost all the options given there.
Can anybody help me to identify the spam?
Thanks
Kiran Peshkar
Google offers a "view as Google" option in webmaster tools. This will help you to see what they see.
I tend to do two things if recovering one of my sites is not obvious what has caused the problem.
Upload a fresh copy of WordPress to my server. This will overwrite all the core files so if any have been hacked the malicious code will be overwritten.
It is likely that a malicious script is hidden somewhere so if it is a simple site I will delete everything and reinstall and re upload plugins. Of course anything in wp-content will need to be saved and restored. But note, a malicious script could be hidden in here.
It might just be easier to do a full restore at this point. Find a recent backup, upload the files and check with Google's tool to see if the malicious code is still active. It is always worth contacting your webhost for help, depending on how good they are they might even sort this out for you.
Remember, any attempt to restore or overwrite files could potentially impact your site or result in data loss so make sure you backup everything you need. Although it is unlikely the malicious code is in the WordPress database you should definitely back this up too.
Unfortunately there is no easy way to remove these types of hack, you never quite know what malicious code has been used. You should consider changing all passwords and reviewing your security so that the hacker doesn't do the same thing again as soon as you get the site up! Make sure all apps on the server are up to date.
Even the most secure WordPress sites get hit from time to time, this is why security is important and why daily backups are essential.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a wordpress website which is built on a LAMP stack. We have recently moved our website from Godaddy to AWS platform and since the move, my website is not functioning correctly. Here are the kind of issues we are facing after we moved to AWS.
The website custom login/sign up box has gone and users and we are getting the wordpress default login box instead.
The sign up to the website is not happening because the registration box is the showing strange fields( email, password, username, first name, last name, email again, and a message that we will mail you a password, which doesn't make sense)
The website is a crowd sourced portal so we had a customised CMS system on the website, but the CMS editor in which users create articles is not working fine as it destroys all formatting.
Other similar issues which are making the site look totally shabby and dysfunctional.
I'd be glad if someone could tell me here if we did something wrongly while moving the website. What's the fastes, best way to restore all Site functionalities now.
Thank you
It's unlikely that AWS is the issue here.
What is possible though, is that during the move a file may have become corrupt (or not fully transferred). If you're having lots of temperamental issues throughout the site, such as the ones you're describing, it sounds like it may be a JavaScript error.
If a JS file that is included on every page didn't transfer properly then this could very well cause the issues you're having. If you open your JavaScript Console (Ctrl+Shift+J in Chrome) when you're on one of the problematic pages then you should be able to identify any potential JS errors.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I was just developing a website on NetBeans 7.4, using PHP, i have saved the file a dozen times before by CTRL + S.
The millisecond i hit CTRL + S again to save my last changes on the file, a power outage happens, and my computer just went off. (Yeah, i'm so lucky.)
After a while, the power came back on, and i opened my computer to see all the file is gone.
I had hundreds of lines of code and (stupidly) didn't use git or any CVS for the project. The other files are just fine, but my computer went off while it was writing into the file i was working on (home.php).
I took a screenshot because i can't copy and paste the contents, as it's a bunch of NULL's on line 1.
home.php :
My question is, is there any way i can recover this file, or did i just lose my 3.5 hours of work?
I've tried
To look for the file in windows cache
404 : my file wasn't there.
To look for the file in netbeans' own cache directory.
404 : my file wasn't there either
To look for the output in chrome cache
404 : no chance.
System recovery
That didn't help because i don't have a restore point for 4 hours ago.
As mentioned, if the file's contents have been overwritten, then there's not much you can do.
You could try and find an earlier version of your file using data recovery software and performing a deep scan of your drive. This will look for data that is not tied to a file (i.e. an earlier version of your work).
You could try:
Recuva: small and free, feature rich, gets the job done
GetDataBack: not free, but highly effective (I've used it in the past, was quite satisfied with the results)
There's also a wikipedia article on data recovery software here, where you can check many other options
Right Click the file and check for the older version Named as Previous Version or Restore Previous version, it will restore fraction of your file but not complete.
This might guide you: http://www.techrepublic.com/blog/windows-and-office/recover-data-files-in-windows-7-with-previous-versions/4992/