Wordpress first run show a 404 error - wordpress

I downloaded the lates wordpress version then uncompressed it.
Because I had already an old version of wordpress, I have wp tables on my local server.
Anyway, I don't think it comes from the old content.
After that, I set up the right server and database values in the "wp-config.php" file.
Then, when I wanted to run WordPress (myblog/index.php), nothing happens and, worse, a 404 error.
I thought it was my easyphp server, so I uploaded the whole database and wordpress on my website.
Nothing but a 404 error page again even if the file does exist!
Can you help me please? should I activate something to enable the first run?
Thank you very much.
Regards.

Did you
1) Upload the files to the correct location on the server?
2) Upload the correct files? (e.g are the actual WordPress files contained in a sub folder?
3) Ensure the correct privileges are set on the folder and files?
4) Follow the instructions in the downloaded package (e.g. run install.php)?

Did you run the install script? After copying the files to the server, you must run the install script at myblog/wp-admin/install.php

try and go to Dashboard > Settings > Permalinks and just click "Save Changes" and see if that helps

Related

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.

update failed during plugin installation of wordpress

I'm trying to install a woocommerce plugin on my wordpress website(locally) it is giving such error 'update failed' as you can see in picture,
how to fix this?
Go to wp-content/upgrade directory and change folder permission to 777 (chmod) or in windows make sure that the read only box is uncheck.
That only means you allow that directory to read write and execute without any restrictions.
You can also solve this error by increasing the execution time.
Just go to your Xampp Control Panel, Stop Apache server, click on config (Apache), then select PHP(php.ini) option, Press Ctrl+F type "execution" and hit enter, then just increase the size of execution time from 30 to 300, save the file and then start Apache again.
It Works for Me!
see sometimes there is compatibility problem of site effects. If you can not fix, you can install another similar plugin
or
install a plugin that stop the updates of plugins ot theme according to what you want, to stop only the update of this specific plugin, like
https://wordpress.org/plugins/block-specific-plugin-updates/
after when you fixed or come new version you restart the update procedure
An alternative that works for the installation of plugin is to upload the plugin via cPanel's File Manager or the FTP client (e.g FileZilla).
Download the WooCommerce Plugin from https://wordpress.org/plugins/woocommerce/. This will download a zipped file which can be uploaded onto the server.
After download, navigate your way to the wp-content/plugins folder on the cPanel. Upload the downloaded file, and extract the file to folder.
NOTE: remember to remove the version number from the name of the plugin after downloading e.g change woocommerce.4.0.1.zip to woocommerce.zip
It sounds like the files might have been corrupted during the update.
You’d need to access your site FILES, so that you can delete the WooCommerce plugin folder.
Locate the plugins folder, and remove the woocommerce folder from there. Once deleted, you should be able to go back to your site’s Dashboard and install the plugin again.
If you install any plugins/themes, this could be the reason for continuously fails. Add the below line of code in wp-config.php
define('FS_METHOD','direct');
Download .zip From wordpress org/plugins/woocommerce/

Not Acceptable?

My site is running but I could not log in to admin dashboard, got this error
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
After googling I found out it has to do with mod_security. I tried every approach to fix it: changed my plugin folder name, tried disabling mod_security with .htaccess but the error remains the same.
Are there other alternatives that I could take?
Difficult question! To be honest, I wouldn't try to fix it. I would suggest copying files and database to a local WordPress. If everything is running on you local machine, I would delete the WordPress server version and install a new WordPress and copy the database and all the files.
If you think of the hours, you try to fix it instead of copy the whole WordPress and install a new one.
please delete you .htaccess file from the root directory and try to login into wp-admin. Once login gets successfully then regenerate the .htaccess file.
For regenerate the .htaccess file you need to follow the below steps:
Go to setting -> permalink -> change permalink into default.
And save the setting.
After save setting then change permalink into the post.
Now you can see that the .htaccess file gets generated successfully.

Could not create Directory wordpress local host error

Folks!
I am having problem uploading "ShopKeeper" theme on WordPress which is running on my own computer. I am a newbie and learning WordPress but whenever I upload theme it says (the error in the image)
enter image description here
I am using Xampp
I cannot comment yet, so this will be as an answer.
From what I see, it looks like you are trying to unpack the wrong zip file.
Please open the Archive you downloaded, you should then see a folder named Theme Files, or something similar, and you will find inside a .zip file.
Try to install the archive located here, and it should work.
Also, if it's not working yet, it might be due to permissions, which I don't believe. You should check your error logs. You will find them under the folder Applications of Xampp.

WordPress Local Install Error (XAMPP) - Page 2 is Blank

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.

Resources