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.
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 recently decided to host my new wordpress site on the same shared hosting account as my other site, so i created an addon domain and installed wordpress on it. I also used all-in-1 wordpress migration plugin to export my wordpress site from my the wordpress installation on my local server. I used the same plugin to import my wordpress site into the wordpress on my shared hosting account. Now the challenge is, when i try to visit the address of the addon domain, the server serves up a page showing a directory of all the files in the addon domain directory. I have tried solving the issue myself and asking people but what i hear is that i should add an index.php file, but the file is already there. Please if you have experienced this problem before, how were you able to resolve it?
the wordpress version for both the the local and live installation is 5.0.4. the all-in-one wordpress migration version for both cases is the latest version.
here is a link to the a screenshot of the page. maybe there is a file i need to manually add.
https://drive.google.com/open?id=1A-xYnI3bZVlqeF_vlWQgj7mnRxQ-8lch
UPDATE
i was going through error logs on the cpanel error metric and found that a new error log is created everytime i reload the site.
the error always says:
[Mon Jun 17 03:31:06.939849 2019] [authz_core:error] [pid 4513:tid 47727821616896] [client 197.210.53.253:9715] AH01630: client denied by server configuration: /home/commehub/public_html/my_addon_domain.com.ng/error_log
maybe this could help
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
I just recently started by creating a EC2 instance on AWS. I used the Amazon Linux package. I changed the PHP settings to include the ability to upload files larger than 200MB. Got phpinfo.php working. Installed phpMyAdmin. Everything looked good.
Next, I installed Wordpress. It worked great. Then I tried installing a theme. Worked great. Then I started installing some plugins for that theme. Something made the site crash. I tried a few things, but since I couldn't go to the sites Wordpress Admin panel, it seemed hopeless. So I decided to start from scratch. I deleted the html directory (including wp-content) and dropped all the wordpress tables. I moved a fresh copy of Wordpress into the html directory, reconfigured the config.php file, and it recreated the Wordpress tables in the database. Seems to work great. When I try to upload a theme, it says:
Connection Information
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
I noticed that wp-content didn't have a uploads directory, so I created one. That seemed to let me upload the theme, but it showed up as a media file. I moved it to the theme directory and that worked. But when I tried to upload a plugin, I got the same message as a above.
What happened when I deleted everything? Or rather, where was information stored that when I reinstalled Wordpress, it didn't create a uploads directory? I am fine with reinstalling Wordpress from scratch, but I don't want to reinstall the whole LAMP stack or redo the AWS instance. Any thoughts?
The issue is that your web server doesn't have the proper permissions to write to your content directory.
The WordPress Codex has some good info for proper file and directory permissions. Ideally, all files should have 644 permissions, and all directories should be 755 (no higher).
If you're still running into issues adding plugins and updating WordPress, you should heed the advice of the following (so that you don't have to enter FTP details into WordPress each time):
Any file that needs write access from WordPress should be writable by the web server. If your hosting set up requires it, that may mean those files need to be group-owned by the user account used by the web server process.
I have Drupal 6 installed on a server with phpmyadmin. I didn't do the install of both so i'm not familiar with what was done (although I have installed drupal on another website host... they already had phpmyadmin set up). Some of the files got deleted and now I'd like to completely over-hall everything. There is a core php fatal error. I'd like to re-install the phpmyadmin and drupal and for some reason when i replace the files I get locked out of phpmyadmin and I can't reinstall the Drupal.
I would greatly appreciate direction with this problem. It's a big roadblock for me and I've worked pretty hard on developing modules for this portal site.
thanks
ingrid
About PMA:
You can download the latest PhpMyAdmin version from here:
http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.0.5/phpMyAdmin-4.0.5-all-languages.zip/download#!md5!a01d5b0552f90d6cc1c848c66ca07c2f
Extract it to a new directory in your web hosting root (for example 'pma').
Now point your browser to http://mywebsite.com/pma (your website /pma) and log in with your known details.
You can now access your databases and ignore the errors/warnings for now.
Drupal:
Download the latest drupal version from http://ftp.drupal.org/files/projects/drupal-6.28.tar.gz
Extract it and copy the files over your 'old' drupal files.
You have just repaired your Drupal installation.
In case there were updates go to http://yoursite.com/?q=user and log in.
Do not do anything else until you run http://yoursite.com/update.php