Hi I am a newbie in WP and I got the following error:
This happens when I tried to update plugins, go to plugin page, update wordpress etc.
Why this is happening?
My php is 7.0.
There can be many reasons for such problems, here are possible cases you can check:
Are you running in Localhost environment? Sometimes, when WordPress is not able to connect to wordpress.org server. It can show errors.
Some plugin/themes in your site in not compatible with php7, make sure all your plugins are compatible.
You can try disabling all plugins and switching to the default theme to see if the problem still persists.
Downgrade to lower PHP version ( PHP 5.6 ), to see if the problem still there.
Try updating WordPress manually- Delete all files in your website except wp-contents folder and wp-config file.
Get a fresh copy of deleted files from wordpress.org
Related
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.
I am trying to add a plugin to my divi theme, but it is giving me the error: The minimum PHP version required for this plugin is 5.6.0. You are running 5.3.29.
What does that mean? Where would I go to update the PHP? I am using Stable host, Wordpress, Divi theme and Strip is the plugin that I am trying to install
enter image description here
PHP 5.3 reached end of life awhile ago and should not be used in production environment.
http://php.net/supported-versions.php
If your host does not provide PHP updates, I would re-consider your hosting options as this is a major red flag. You're site is not secure and could be easily compromised.
Outdated PHP and Wordpress sites are one of the most common hacks.
As of writing, PHP 5.6 is the only 5.x release still receiving security patches and will do until the end of 2018. (Note, that PHP 7.0 also ends on this, so I am advising that you move from 5.6 and by the end of next year, to 7.1 or 7.2)
I would suggest the following.
FTP into your site,
take a backup of wp-content - This is your site, the other directories are Wordpress Core.
take a backup of wp-config.php - This is your configuration to the DB.
Login to your hosts cPanel and navigate to phpMyadmin /Database panel and then export the the database to your machine along with the wp-content and wp-config.php. You now have your Wordpress backed up, so if something happens after this point, you can put these files back in place.
Upgrade your Wordpress Plugins 1 by 1. - do this and check if the site crashes/ gives errors on pages where a plugin is being used. (CF7 on Contact Us page, etc).
All good? great, now update Wordpress if you have any, latest is 4.7.3 with 4.7.4 coming soon. Keep your wordpress up to date!
Finally, if this is all good. Demand that your host gets their act together and to upgrade the PHP version to 5.6. And that you are ready to test it. (if they refuse, then take your 3 main files we backedup and move to another host, there is no excuse for no updating PHP from such a old version).
Once this is done, check through the site to see if there is any more issues. If any, let the host know that X plugin is no longer working, and let the plugin developer know by the Support forms on Wordpress Plugins repo (where you downloaded it). If the plugin is over a year without an update, consider getting rid of it/replace, the developer has abandoned it.
Have a beer
Hope this was helpful, Cheers
My WordPress website hosted on Azure stopped working which I noticed only yesterday. It might have been down for a while. Looking at the log, I found this error:
[30-Jun-2015 06:05:17 America/Los_Angeles] PHP Fatal error: require_once(): Failed opening required 'D:\home\site\wwwroot/wp-settings.php' (include_path='.;C:\php\pear') in D:\home\site\wwwroot\wp-config.php on line 90
Looking at all the files in the server, I see that there is no wp-settings.php file. I have no idea who deleted this file except the Azure anytime recently tried to upgrade the site because of the WordPress security vulnerability.
I tried to access the admin page by typing http://.azurewebsites.net/wp-login.php which does not work. I can't access any page. I always see the above error.
Should I manually upgrade the site to the latest WordPress version 4.2.2? I have already a custom theme and a lot of data, so little scared to do the upgrade and stop working.
Any advise?
Azure does not have an option of re-install the Wordpress.
I had to do the following:
Move the subscription to Standard, open a storage account and backup
the code as well as the database.
Download the latest WordPress and unzip in a separate folder locally.
Follow the WordPress instructions on this page to upgrade to the latest version.
Try to login to the admin site. If it is a problem, change the theme
being used in the table wp-options. Use MySQL Workbench to access
the database. Upgrade all the plugins and themes.
I'm trying to install WordPress for local use with XAMPP. I started off by installing and unzipping both the XAMPP and WordPress folders. I placed the XAMPP folder in my C:/ drive and my WordPress folder within the "htdocs" folder. After that, I made a new "config" file for my local server based on the "config-sample" file.
Here's where things get tricky: when I try to use the "install.php" file, I am brought to a screen that asks for credentials. I give it some generic credentials and then I submit it in order to install WordPress. However, when I submit the form, the loaded page is completely blank and the URL appears as "localhost/wordpress/wp-admin/install.php?step=2".
When I go into the database, it shows me that WordPress created all of the necessary tables, but didn't create any log-in credentials for me. I was doing some research and there were a couple pages that mentioned the need for increased PHP RAM, but I'm unsure of how to increase the RAM for local use or if it's even a problem. If anyone had an error like this happen to them, I would really appreciate some feedback as to what could be causing this problem.
I had the same exact problem, with an almost blank screen on step-2 passage.
Adding in wp-config.php these lines solved everything:
define('WP_MEMORY_LIMIT', '128M');
set_time_limit(60);
I've installed Wordpress 4.0 from a zip file on XAMPP 1.8.3 on my Win7-32bit PC.
Setting up the DB and all, I got the same "blank screen" at the step 2.
So, I went in to phpMyAdmin, and edited the "wp_users" table on my entry. I modified the user_login and the user_password (using an MD5 converter). Saved the entry and got into the localhost url for wordpress. Got into the log in, and everything seems to be working without any issues.
As a note: I installed a fresh/clean install so there were no custom themes nor plugins.
Hope that helps.
I have a local install of WP running on MAMP.
It is the latest 3.8.
I have installed a theme called Dante which is a pro theme and recommends various plugins (some of which are essential).
One of the plugins in called Revolution slider, and this is giving me grief.
I can install the plugin fine, however when I try and create new slider (from within the plugin) I get a message saying Ajax Error!!! parsererror
I have contacted the plugin supplier who have asked me to check the permissions of the plugin folder - I did (even made them 777) but no joy.
Can anyone help me as to where I should start debugging?
Many thanks
The problem lay with there not being enough memory allocated.
Adding
define('WP_MEMORY_LIMIT', '240M');
to wp-config fixed it.