Azure Wordpress Site Returns 500 Errors After Plugin Update - php

I have a Wordpress site which is hosted on Microsoft Azure, and the site is located at http://bitcoinpricelive.com
I recently updated a plugin called W3 Total Cache. After doing this the site was returning errors and going to wp-admin told me there was a problem with that plugin and i needed to delete: advanced-cache.php and object-cache.php
I deleted those two files but then the wp-admin page showed no information at all. I documented this aspect a bit more on Wordpress forums: https://wordpress.org/support/topic/w3-total-cache-error-after-updating-plugin/
Additionally, I tried googling for many fixes to this problem from modifying the .htaccess file to deleting W3 Total Cache components.
On the Azure side of things I get errors from source: W3SVC-WP, event id: 2289, and from source: W3SVC-WP, event id: 2284. I have been looking at documentation on the Microsoft site as well here: https://technet.microsoft.com/en-us/library/cc734951(v=ws.10).aspx
I can still login to the server via FileVilla and make changes if needed.
How can I debug this?

I would try to uninstall the extension via Azure's web portal, restart the app. Delete the extensions dir using SCM (https://my_app_subdomain.scm.azurewebsites.net/DebugConsole). Restart the app again. And maybe redeploy your app. It's possible the plugin messed with .htaaccess or something.
From Willian: Try delete the w3-cache directory in wp-content.

Related

Plugin in Wordpress is automatically installed and activated

I have a quite strange problem with a Wordpress site. I manage a few Wordpress sites but I never experienced this problem. A plugin gets automatically installed after few days. In addition it is a maintenance plugin, called Maintenance from Webfactoryltd. But every time I delete or just deactivate this plugin, it gets reactivated / installed again and switches to maintenance mode.
This is a premium site buyed on themeforest (flatsome), but I don't think it has something to do with the premium template.
I tried following things:
Delete / Deactivate the plugin
Deactivate all plugins and reactivate only needed ones (Woocommerce)
Deactivate all caching plugins (Redis, WP Optimize)
Deactivate the automatic updater in config.php
Deactivate all automatic updates on the plugins itself
Installed Crontrol (plugin) to maybe get a cronjob which is responsible for that
Nothing worked. Has someone an idea what I can try now? Thanks in advance!
You can set limit file permission for .htaccess, wp-config.php for 444. Also, set recommended folder permissions.
You can install Wordfence & scan to see results where the file is affected & fixed it.
You can run also, virus scanner from the Cpanel account.
My site was compromised. Thanks to the link of Justinas I could take further steps to deal with this issue.
I could pinpoint the problem to a user (client) which I think run some scripts from it. The Wordfence Plugin helped with that a lot. I restricted the user and reset the password.
I also used Wordpress FAQ - My Site was hacked for orientation in this case.
Especially thanks to #Justinas for the report.

WordPress Manual Install Theme/Display Issue

My Problem
I manually installed WordPress on a Debian 9 VM in Virtual Box on a Windows 10 machine. When I pull up the website, this is what I get:
A WordPress site with just HTML, no formatting
The point of this install was to learn how to make a custom WordPress theme. I have built child themes before, but never a theme from scratch, so it may be I don't have everything set up yet. But there is a second issue is WordPress does not give me an option to select my second theme either.
What I did
To set up the site, I followed this tutorial on setting up WP on a Debian system. I sort of touched up on this, but I am new to WP development. I thought this was a quick and dirty route to set up a WP install. I don't have the knowledge of WordPress to know if there is an error in this setup guide.
Again, I checked the themes folder. I could not find the custom theme I started to build as an option. I can't currently download themes straight from WP because I don't have an FTP server/client currently installed on my machine. If it were just the inability to choose a WordPress theme from the WordPress theme repository, I'd suspect it's the FTP setup. But, I also can't choose my custom theme. So is there something wrong with the install?
Summary
I can't get any formatting to work on my WP development site. I suspect it's some problem with themes, but I don't know enough about the internals WordPress to know how to diagnose the problem.
Thank you for your time
It's tough to say without seeing your setup exactly, but this is often caused by URL problems.
Are you able to access wp-admin? If so, try logging in and visiting the settings > permalinks page, then just hitting the save button.
Try reloading your site. It might be fixed.. If not, a little more to try. First, I'd open your browser's Console / Inspect mode, and see if there are any console errors (showing CSS files not loading, etc). If so, post them here.
Additionally, I found a helpful article that details some other things to try when this problem pops up:
http://wphelp24.com/how-to-fix-wordpress/how-to-fix-wordpress-css-not-loading/

My WordPress site got updated and also few plugins. site is not loading any more. What i can do it to win it back

I have WordPress site and it is updated new version. I don't know how. Few plugins also got updated. Now sites page is not loading. Server is working fine but pages are loading.
I don't have back up. How should I get back the things.
This is a good time to learn your lesson about backups. Always have a backup.
It's most likely that one plugin is breaking your site. You can copy the /wp-content folder of your site to your computer using FTP and then (after copying it locally!), one by one, delete the plugin folders in wp-content/plugins themselves on your site over FTP. After deleting each plugin folder, check if your site is back up.
If you find the offending plugin, try reinstalling it through the WordPress admin panel. Because you deleted the plugin folder and not the database entries, the settings should still be there, but your local copy is in case of further emergency anyway.
You can try renaming your plugin folders via FTP connection. Do that one-by-one and reload the site each time. They will be deactivated after you do this, and you will find the plugin which is causing the problem.

Fresh Wordpress install not reflecting changes on files instantly

I have a fresh wordpress 4.0 install on my server for a specific domain and when I make changes to any of the theme files it won't show up in the browser for a few reloads. I just add "asdf" to the theme file to test changes. I can refresh 20 times but no changes show up until like 20 seconds later.
What I have tried:
Turned off firefox's cache.
Turned off wordpress cache.
Tested other domains on my server with wordpress and they work properly.
Installed wordpress with "server installer apps"(3 times) and also with manual installation.
I refresh with ctrl+f5
Tried with firefox and with chrome, same results.
Its a fresh install so no plugins, no settings changes. There is no caching and my other domains work properly. No errors show up in the console.
I have no idea what the problem could be. My server company, mediatemple, said it could be my ISP, but other domains on my site work properly from the same computer/network. For some reason the problem is specific to this domain and the problem persists through all the themes.
I don't know what to do next. Any suggestions would be greatly appreciated. :)
Update:
Have tried manual install of wordpress 3.9 and that does nothing.
I added a new folder to the root and in that folder I added a file called index.html to test if this file, which is unaffected by wordpress, would show instant changes and IT DOES. So the problem seems to be based within wordpress and specific to this domain.
I spoke to Mediatemple for the 3rd time now and this guy was much more helpful and he actually solved the problem.
When you add a domain to mediatemple it automatically sets the PHP version to "FastCGI", which normally is fine, but it caused problems specifically on this one domain's wordpress install for unknown reasons. So he switched the PHP version to "CGI (Stable)" and that fixed every problem.
I hope this will be helpful to someone in the future. :]

Google Appengine 1.9.3/4 and WordPress 3.9 Admin User not Fully Functional on Localhost

I am getting several errors at different moments when using my local copy of wordpress on appengine.
It happens when clicking on "Posts", which shows error "Invalid post type", or when trying to create a new post, there is no save box/button.
It also happens when trying to change options in one of my themes in other places with plugins.
I get a lot of "You do not have sufficient permissions to access this page."
For the most part, the back-end is functional, the front-end is fully functional.
I am using appengine 1.9.3 and wordpress 3.9, python 2.7.6.
I have uninstalled 1.9.3 and updated to 1.9.4, I have also accepted Wordpress' request to install 3.9.1, the problem persists.
I have installed the 1.9.3, 3.9, 2.7.6 configuration on a different machine where app engine was never installed before and the same problem occurs.
I had appengine 1.9.0 and 1.9.3 working with WordPress 3.8.1.
The problem started a few days ago after a number of upgrades (from 1.9.3 to 1.9.4, and into wordpress 3.9.1).
Could this be related to additional layer on WPDB added in 3.9? http://make.wordpress.org/core/2014/04/07/mysql-in-wordpress-3-9/
Questions:
Anybody else experiencing similar behavior?
Will this propagate to google cloud if I update the version with launcher?
How do I solve this on my local copy?
Please, help!
This has something to do with the fact that Windows uses backslashes ("\") instead of forward slashes ("/") for its directory structure.
Try adding this in your wp-config.php just before require_once(ABSPATH . 'wp-settings.php'); for a quick fix.
$_SERVER['PHP_SELF'] = str_replace('\', '/', $_SERVER['PHP_SELF']);

Categories