i've found a topic related to this question but i haven't found a solution.
I've installed mamp, and installed wordpress. Home page is working great, but i get error 500 in localhost/theme/wp-admin and wp-login.
I've found siteurl and home in database, and I have this two paremeters with correct url. ( I have no home in any of this parameters )
I have neither .htaccess.
Thank you in advance.
First try to create .htaccess file from WordPress Codex page.
Next, try to reupload the wp-admin and wp-includes folders.
Update:
You mentioned in the comments you get the following error:
cannot create references to/from string offsets in /wp-includes/user.php
It looks to me that you are using PHP 7 on an older WordPress version.
Try using the fix below:
https://core.trac.wordpress.org/attachment/ticket/37071/fix-wp-login-error.patch
You can access Wordpress admin page
localhost/wp-admin
or
localhost/admin
Related
I am getting 404 error, after migrated wordpress site from one PC wamp to another PC wamp?
Edit wp-config.php
Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Update permalink
Step 1 : Goto wp-admin->setting->permalinks
Steps 2 : After save changes
This could be that your WordPress site on your new local environment need some changes, and there are some steps to follow: Moving WordPress
2 obvious changes:
Have you updated your wp_options table?
Have you updated your wp-config.php file with the new database credentials?
Try going to Settings > Permalinks and changing the permalink structure to Plain. If the pages work after that, you can change the permalink structure back to whatever you wish.
I've had it before where just re-saving the same permalink setting doesn't resolve the 404's, but changing it to Plain does.
So I've been trying to get into the admin dashboard for a WordPress website that I'm supposed to be working on and for some reason my XAMPP/phpMyAdmin & Avada theme does not seem to be working properly.
When I configured XAMPP it worked fine and could reach the admin dashboard without any issues. But when I replaced the WordPress directory downloaded from the network admin and the .sql database table uploaded into phpMyAdmin I am now noticing that when I access localhost/wp/ it loads a broken page, appears to be missing the CSS (styles/images)
I've tried to navigate to locahost/wp/wp-admin/admin.php and /wp-admin/login.php and I am not able to load the files I continue to receive a "File not found" redir error.
In my own opinion it seems as though the user isn't entirely authenticated and is causing me to redir based on failed authentications OR the system is having difficulties with the folder structure to determine the areas for the "missing" wp-admin files, although I have confirmed they are physically residing within that expected location which only further confuses me.
I can upload and attach any type of document, just let me know what type of information you are looking for to assist in troubleshooting.
THANKS FOR ANY AND ALL HELP!
1) Ask wp questions at wordpress.stackexchange.com
2) you may have problems with .htaccess and .sql file permalinks. Ask people at the mentioned forum.
Step 1 : Remove htaccess file from your root folder
Step 2 : check wp_option table and change site_url and home_url
Step 3 : Login into wp-admin using
http://localhost:8080/mysite/wp-admin/
Step 4 Goto setting ->paramlink and update using custom structure.
That's it.Problem solve.
I'm trying to use the Simple:Press forum plugin for WordPress. If i go into my sites Settings/Permalinks and select anything other than Default, I get a 404 error whenever I try to access any of the forums or user profile.
Does anyone have a workaround for this?
Edit: I should add this is on a Windows machine and I have added the Web.config file which seems to work fine for other pages
Is the proper .htaccess file being created when permalinks are enabled? Could be a directory not writable issue.
Depending on which version of Wordpress you have, this might be the fix. It's a mod rewrite error.
Right click on the Bookmarklet, and change
u=’+e(l.href)+’
to
u=’+e(l.href.replace(///g,’\/’))+’
A quick work around is to delete part of the URL in the pop. Delete after
http%3A%2F%2F
after the u=, up through the beginning of the domain for the website.
Few months ago, I developed two template pages on wordpress 3.1 and they were working fine. Now, I installed latest wordpress software. I created a new page with the same name and selected the template. But the link is showing a "404 Not Found" error.
My site URL goes like this: http://localhost/myBlog/about
where "about page" has to use a template. The same permalink is shown when creating the page but viewing page is showing 404 error. It's weird. May be some permalink issue?
Well assuming this is a new installation and not an upgrade, I am guessing that your permalink structure is messed up. There are a couple ways to fix this. In general, Wordpress tries to modify your .htaccess file itself.
Go to your old installation and look under Settings -> Permalinks. If it is different from your new install, then change them to be the same and save. If they are the same, then change it to something else and then change it back. This should force Wordpress to resave the settings to your .htaccess file. If it can't write to the file it should tell you.
Alternatively you could look at the .htaccess file of your old installation and copy the values there over to your new installation. Although I think letting WP do it for you is probably the safer route.
If you can access your database, You need to go to the wp-options table and change the url there. The other options there. Were you working on a local server?
I have just setup wordpress and create a page.
When I click on preview, I get a 404 saying that the resource was not available on the server.
I am using Apache2.2 on windows.
Cheers,
Earlence
Try adjusting your permalink structure - set it to default and try again. Has this worked before on this server, or is this your first time trying?
Your problem is the permalinks. If you have changed them, it's either you are missing the .htaccess file or you don't have mod_rewrite enabled for Apache2. You can search how to do that on Windows on your own! Cheers! :)