Wordpress update errors - wordpress

I just went to update one of my wordpress sites. It was my first time updating a wordpress site.
When i went to update the update screen hung for 20 minutes saying "installing". The website home page was still displaying the maintenance notification. I looked this up and the consensus seemed to be to ftp to the site and delete the "maintenance" file. I did this and now the homepage displays:
Fatal error: Call to undefined function get_front_page_template()......
When i went to mysite/wp-admin it said, "wordpress has been installed, you now need to update your databases". So i pressed the "Update Databases" button upon which i'm presented with the error:
Fatal error: Class 'WP_Theme' not found in.....
I have a feeling i've done something very stupid. Can anyone help me out?

Backup your current faulty setup via FTP.
Then download the wordpress version you were using from the Release Archive and replace the files of your wp-admin and wp-include folders using FTP.
This should make your wordpress installation work again.
The problem about the database is probably because the update wasn't completed.

Related

Unable to access wordpress page after update

I'm facing an error with wordpress. I updated wordpress page by mistake and I'm getting error
The site is experiencing technical difficulties. Please check your
site admin email inbox for instructions.
When I try to access the page by admin. I can't revert the change since the unable to access the page from admin. Is there any way to fix this issue.
Kindly clarify your question, you updated one of the pages in your WordPress site or did you update WordPress to the latest version and got an error afterwards when trying to log in within the admin dashboard?
If it is a page you can't access, try disabling your plugins and see if it will be accessible. You can also try to enable WP_Debug to true from within the wp-config.php within your back-end file manager and see if the exact issue will be displayed so as to assist you with further troubleshooting.
Alternatively, if the issue arising is due to a WordPress update to the latest version, you can try renaming the plugins folder temporary from within your backend as a form of troubleshooting, if that fails, temporary rename your theme (/wp-content/themes/theme_name) to try and pinpoint the exact issue. All this can be done with the WordPress folder from cPanel, file manager.
If the above fails, go a step further and try doing stuff like PHP memory increase, post_max_size &c.
If all the above fails, refer to WordPress documentation on how to do a manual WordPress update and hopefully, the issue will be fixed.
Note: The above is just an insight of what you can look into and not a step by step guide to fixing the issue.

Getting critical error when installing Wordpress

My hoster forced me to upgrade my Wordpress site because it was fairly old. I decided to upgrade to PHP 8.1. It caused issues with the website, so I figured I'd rebuild the whole website since it's a simple website. I deleted all the existing files and uploaded the 5.8.2 WordPress install files. Then I changed all the permissions to 0755. I created a fresh database for the install.
At first, the setup would appear. I would go through the install, but when I clicked install after entering all the database info, I got "There has been a critical error on this website." I recreated the .htaccess file to the default and tried again. Now I get this error just hitting the domain, no more setup screens. The site does redirect to the /wp-admin/setup-config.php file. I don't have a wp-config.php file in the directory, just the sample one. I tried creating a wp-config.php with the correct info, but same error. I also tried adding the debug options, increasing PHP memory, etc. Same error. I don't get any error logs.
Does anyone now how to get an error log or can help with ideas on how to create a fresh WordPress site? I did change the PHP versions to older ones, but that didn't work either.
You need to take a backup of your file ,then fallow the fallowing instruction.
Rename your plugin one by one and refresh the website.
this issue due to the unsupported plugin ,that is installed in your wordpress website.
1- Make a backup copy of the files and from the old database
2- After that, download these files on your PC
3- Install WordPress again
4- Replace the wp-content file with the old one
5- Clean the new database and import the old database through phpMyAdmin
I solved that problem installing an older version of Xampp, with previous version of php, MySQL and Apache. I give up version 8.1.1
XAMPP 7.4.27 / PHP 7.4.27
https://www.apachefriends.org/download.html
There was something wrong on the hosting side. The source of the issue was indeed that WordPress could not write to the config file. Even the hoster was unable to delete the files. We ended up deleting the entire root directory and starting from scratch. Now it's all good.
The lesson learned is that one of the sources of the "There has been a critical error on this website." error is that WordPress is unable to write/edit files. It's also why it could not write an error log. WordPress could have been more descriptive here.

Wordpress wp-admin Could not retrieve data error

If I go to my Wordpress website everything is fine but if I want to login in wp-admin. I get an error saying "Could not retrieve data" in a blank page.
I already tried to delete any recently installed plugins but nothing worked.
Try removing plugins step by step, this might be caused by an update of on older plugin you already had installed before.
This seems to be a error message provided from a plugin. What I would do I would checkout this project locally and search trough the plugins directory for this error message. The file that provides the error message will be in the plugin directory that is causing the problem. After that I would disable or remove the plugin.
Try to rename the wp-content/plugins directory to something like wp-content/plugins2 using FTP or CPanel File Manager. Then access your admin dashboard wp-admin/index.php. If you can access the admin dashboard, then you can rename plugins directory back and check your plugins that causing the problem.

Unable to install wordpress theme

i've downloaded a wordpress theme(clubber) but when i try to install it on my wordpress 3.9, it shows the error message while unzipping which is
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
i have no idea whats the problem. please help
That has often been my expression of late as a result of my frequent WordPress troubleshooting.
Due to my busy schedule, I haven’t had time to login to my blog. On one of my spare time, I took it as an opportunity to update my plugins, as usual with WP automatic update via my dashboard. One of such plugins that desperately needed an update was WpOptimix, a premium WordPress security plugin. While the update was going on, suddenly it came to a halt and below is the error message I got
An error occurred while updating wpOptimix: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
I knew this has to be a server configuration, since I have got no time to spare, rather than spending countless number of hours troubleshooting this error, I decided to take the shortest way out – deactivated and deleted the problematic plugin, re-downloaded, uploaded and activated the updated plugin Archive file (.zip) via WordPress plugin dashboard (http://yoursite.com/wp-admin/plugin-install.php?tab=upload).
A known solution to this problem is simply commenting out mbstring.func_overload php.ini directive (subject to your host granting you access to php.ini) as signified below
;mbstring.func_overload=7
You must unzip the downloaded theme zip file after then you should open unzipped folder and see another zip file overthere. that zip file you have to upload on WordPress > Add New theme page. I'm sure you'll not get that error again on your computer screen.

How to resolve a bad plugin server 500 error wordpress

I was just working on a Wordpress site and after updating a plug-in (which had not yet been activated, only installed) I activated it. Instead of the activation working, it gave me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete >your request.
Please contact the server administrator, webmaster#ibsmithmedia.com and inform them of >the time the error occurred, and anything you might have done that may have caused the >error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an >ErrorDocument to handle the request.
I am getting this error on every page of my wordpress site, not just the plugin page or my user admin area.
How can I fix this? Is there a way to undo this plugin activation (I'm pretty sure it's what's causing the issue).
I don't have access to the actual FTP files of the site, I'm working on it for a friend. But I can get access if that's the only way to fix this. Thanks!
I would get access and delete the plugin.
That would be the fastest solution.
I ended up having to delete the folder for the plugin and then going to my htaccess file and remove extra lines that the plugin had added there as well. That resolved the issue.
First you need to connect to your website using FTP client, or File Manager in cPanel. Once connected, you need to navigate to the /wp-content/ folder.
Inside wp-content folder, you will see a folder called plugins. This is where WordPress stores all plugins installed on your website.
Right click on the plugins folder and select Rename. Change the name of the plugins folder to anything that you like. In our example, we will call it “plugins.deactivate”. Once you do this, all of your plugins will be deactivated.
Usually, this method is used when you are locked out of your admin area. If the issue was with your plugins, then you should be able login to your WordPress admin area.
Once you do that, go back to your /wp-content/ folder and rename “plugins.deactivate” back to plugins.
Now you can activate one plugin at a time until your site breaks again. At which point, you will know exactly which plugin caused the issue.

Resources