Beginner mistake, but I've created all my new pages for my Wordpress site in a subdirectory to my original site, and now I wish to move all the pages I've made to my root directory in order to sort the URL to my website.
At the moment my new pages are stood in
www.mysite.com/wordpress-4.6.1/wordpress/
when I enter my site via browser. I've looked around here for advice and tried all that I can find, but nothing seems to solve my problem for some reason. I've tried to change the URL explicitly under the Wordpress general settings but that just crashed my website somehow, so I had to redefine WP_HOME and WP_SITEURL in wp-config.php in order to get it up and running again. I've since tried downloading .htaccess and index.php and changing a few lines in index.php and then placing them in the database root.
The problem I'm left with now is that when I set the URL explicitly in wp-config.php I can't change it under 'General Settings' in Wordpress anymore, and if I state the URL that I want explicitly in wp-config.php the site stops working.
What would you guys suspect is the culprit here? Why is it that I can't change the URL explicitly and get it to work, are there some database-stuff that's still pointing at my wordpress folders or do you think it's something else?
Sorry for the wall of text, but couldn't seem to formulate it any shorter. Immensely thankful for any help!
This is covered in the Wordpress documentation: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
You will need to change the URL on option table of database.
I managed to work it out! Since I couldn’t edit the Wordpress URL and Site URL directly in Wordpress I had to add this code to wp-config:
define('WP_HOME','http://mydomain.se/wordpress-4.6.1/wordpress');
define('WP_SITEURL','http://mydomain.se/wordpress-4.6.1/wordpress');
I assumed that I had to remove the /wordpress-4.6.1/wordpress from the WP_SITEURL since the “Site Address (URL)” is what I would have changed in Wordpress if it had been possible. Since that didn’t work I removed the subfolders from WP_HOME URL instead and left them on WP_SITEURL and that solved the problem!
Nobody has had this problem yet it seems.
I just migrated a small WordPress website from my test server-space on iPage over to a client's server on HostGator and while I am logged into WordPress on the new server - the website shows up fine, but if I clear my cache and come on as a new user (as my boss did) they find the silly 2014 theme with no content. But if they go to a specific link it loads fine and then so does the homepage.
I have searched this topic extensively but found nothing. I have tried other migration problems' fixes such as:
adding a new php.ini
uploading new indexes to the root dir and theme dir
saving permalink settings again, and then changing and saving again
updating WP version
deactivating plug-ins
changing .htaccess lines
Why was it working perfectly on the old server location but not the new?
Y'all are my last resort. Is there some sort of cache error (or normal activity that needs overriding) going on? .htaccess? index.php? Is it HostGator's servers maybe?
Please help!
UPDATE: A combination of changing the site/home url in WP_Options and re-saving the permalinks fixed this issue for me.
One of the reasons why wordpress urls contained in the BD pointing to the url old, running this script in phpmyadmin can solve:
UPDATE wp_options SET option_value = REPLACE(option_value,'old_site','new_site');
UPDATE wp_posts SET post_content = REPLACE(post_content,'old_site','new_site');
UPDATE wp_posts SET guid = REPLACE(guid,'old_site','new_site');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,'old_site','new_site');
Also exist the possibility that your hosting account contains a folder with your username, in the wp_options table may be included, for example upload_path: /home/[folder_old_id]/public_html/wp-content/uploads
UPDATE wp_options SET option_value = REPLACE(option_value,'folder_old_id','folder_new_id');
The behaviour you describe is not what I am seeing "But if they go to a specific link it loads fine and then so does the homepage.":
I get the same result following a home link as typing the URL so this is simply a configuration issue
Try this:
rename any .htaccess files .htaccess.temp
look directly in the wp_options table in the database to make sure all entries are correct
review the $site_url in php.ini
taking your test environment offline
This will eliminate most (all?) of the possible reasons your site is not behaving.
Good luck!
Hey I faced the same issue.
If you have just copied the Wordpress files for the mogration, check if you have copied the index.html file from your local site to your production site and delete it. This should fix the issue.
I actually ran into the same/ a similar problem. Homepage didn't work but subpages did. I solved it by looking through my files on the server (FTP) and renaming a mysterious "index.htm" to "index.htm.temp". Turns out wp took this index.htm as the default file for my landing page. Renaming and later deleting it solved the issue.
My website was migrated using the WP Duplicator PlugIn.
Well, if you consider your problem something someone "wants" to do, then you'll find a lot of resources... for example:
https://wordpress.org/support/topic/using-a-different-wordpress-theme-for-a-single-page
Apparently you can create a page template and have the template load a different theme then all the other pages on the site. You can theoretically have every page on your WordPress install run a different theme.
Check things like home.php, front-page.php and what not to see if the homepage is running a template.
I am working with WordPress 3.5.8. Yesterday I made some changes into it to a friend. I don't know what happened, but after some time when I try to log in at wp-admin side and execute URL www.mysite.com/wp-admin it shows me a blank page. How do I solve this? I have searched over the internet and blogs. I found it could be related to hosting problems or brute force-attack, but I don't think that that's what happened to my site.
Links I visited:
http://wordpress.org/support/topic/wp-admin-wont-load-shows-blank-page
http://wordpress.org/support/topic/brute-force-attacks-and-wordpress?replies=1
http://wordpress.org/support/topic/wp-admin-wont-load-shows-blank-page
http://wordpress.org/support/topic/wp-admin-blank-page
http://wordpress.org/support/topic/blank-page-on-wp-admin
After dozens of times trying to fix this problem reading forums and posts, reinstalling WordPress, removing white spaces, putting lines of code in wp-config.php, index.php, admin.php, I fixed the issue just by renaming the plugins folder to "pluginss" in FTP. So wordpress asked me to update the database. I updated and I could enter at /wp-admin. A plugin was causing some conflict, so when I rename the plugins folder, all plugins automatically has been disabled.
As I was inside the /wp-admin dashboard, I could rename the "pluginss" folder to the regular name and start to activate all the plugins one by one and see what plugin was broken.
Now is 100% fine.
Try turning on WP Debug. If this is happening due to a PHP error (which I bet that it is), you will be able to see what's going on and fix the error.
Go to your functions.php page and delete any spaces immediately above or below your PHP tags.
I faced the same problem and I tried many things such as trying to login through wp-login.php instead of /wp-admin and adding ob_start() in /wp-admin/index.php (if you hit the url /wp-admin it goes for /wp-admin). It showed login page but entering the username and password shows an error like "cookies are blocked due to unexpected output".
I finally got the solution: it happens because the theme or plugins that you installed are not supported.
How to check and fix:
Rename the plugin folder name and theme folder name. If opening /wp-admin and entering a valid username and password the dashboard is shown, then it worked.
Revert the folder name of plugin and theme, then activate the themes and plugins one by one, cross-checking with /wp-admin. You will find out the unsupported plugin or theme.
I also had a blank screen for my blog. The solution was to copy up a backup copy of wp-config,php somehow the 'live' wp-config.php had been replaced with a file size of zero.
In my case I had the same problem. Helped remove the wp-config.php file.
Wordpress created new wp-config.php file and wp-admin is working flawlessly now.
Rename plugins, themes folder does not help.
[6] was spot on. I had the same problem
ie a blank screen where wp-admin should have been
Renaming plugins to pluginss let me get back in.
I also had a blank screen for my blog.
The solution was to copy up a backup copy of wp-config,php
somehow the 'live' wp-config.php had been replaced with a file size of zero.
It seems that it is very important to have an off-line backup
The easy way to copy of the files is Filezilla (freeware)
You need a wordpress plugin for database backup - ie to back up all your pages and posts.
But the pros will tell you that you need to get a
Peter
All your problem is solved right now just follow this instruction:
go to your themes then de activate your current theme, just put "x" in the the first letter of your theme name.
for example this is your theme folder name: "mytheme" just put "x" in the first letter like this "xmytheme" tho di activate.
Then after that go back to your wp-admin panel then BOOM! wp-admin accessable.
When you access your wp-admin panel or you are on your dashboard, again activate your theme again, but before that. REMOVE THE "X" letter you putted in your theme name.
example: "xmytheme" just remove "x", output like this: "mytheme"
then activate it in your dashboard.
hope this help!.
In my case, I was able to see the backend, but in my front I was getting a blank page...
Nothing about debugging and disabling themes/plugins was useful...
After some research, I've realized that my index.php (located at the root directory, not the theme's one) was empty!
The only content was a message saying Silence is golden.
Using a backup I had, I could get back my original index.php and get the site working again.
It might be because of a few reasons:
Problems in your web host.
Theme related errors(You can change it by renaming theme folder).
Plugin related errors(You can change it by renaming plugin folder).
An Empty line in your wp-config file.
Code errors that can be seen by enabling Debug mode.
"define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
#ini_set( 'display_errors', 0 );"
Remove blank space in functions.php or you can also remove the last "?>"
I ran into the same problem a few minutes ago, the problem was when I uploaded my local theme I had a bunch of tags separating each function I had in there I solved this by putting all the functions in one php tag... Hope this helps.
I had this problem (not showing /wp-admin/), when I moved my site to new host. i solve this problem by:
1. Re mane activated theme's folder
2. Install that them again and active it
3. copy and re place some customized file like .css .js from backup
Now problem solved.
I just had this and it was a file / directory ownership issue.
Fixed via SSH and changing the ownership recursively (-R):
chown -R ownerID:groupID /home/mydirectory/website
Change ownerID, groupID and filepath to be relevant to your own situation.
Just reset the password, this will work.
I was also facing same problem but i renamed contact-form-7 plugin from /wp-content/plugins directory to contact-form-7-rename and problem solved.
So this is due to unsupportable plugins or theme.
That white screen of death happened to my blog, and what I did was that I renamed the theme and plugin, and everything was back to normal.
In my case, wp-admin/post.php blank screen was fixed by removing the " ?> " at the end of my function.php in my child theme. I don't know how the end tag ended in there, but removing it solved my problems.
Just visit the plugins folder and delete the last plugin you uploaded and should do the trick.
I found following solution working as I was using older version of wordpress.
Open file blog/wp-admin/includes/screen.php in your favorite text
editor.
on line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?>
Replace it with the statement: <?php echo $this->_help_sidebar; ?>
Save your changes.
i have wasted a lot of time to solve it , But the only solution i find is to rename your word press plugins folder and active theme , and your wp-admin will be visible , so then you can change and check for suspected plugin or theme.
first of all check your internet its connect!
second is turn on WP_DEBUG and write this codes in wp-config.php
define('WP_DEBUG',true);
error_reporting('E_ALL');
ini_set('display_errors',1);
third is rename themes and plugins folder that in wp-content folder to other name sush as
pluginss , themess
S F my english!
Had this same issue after changing the PHP version from 5.6 to 7.3 (eaphp73). So what I did was I simply changed the version to alt-php74.
So what's the problem? Probably a plugin that relied on a certain PHP extension that wasn't available on eaphp73.
Before you touch any wordpress files, just try changing your site's PHP version. You can do this in the cPanel.
And if that doesn't work, go back into the cPanel and activate every PHP extension there is. And if your site starts working at this stage, then it's probably an extension it couldn't function without. Now slowly work backwards deactivating (one at a time) ONLY the extensions you just activated.
You should be able to figure out which extension was the required feature.
Can it be a plugin that's causing the issue? Certainly. Maybe the rogue plugin just wanted that extra extension.
If changing the PHP version, and juggling with the PHP extensions didn't work, then try renaming (which automatically deactivates) one plugin folder at a time.
I have experienced the same problem as well. The reason was, that the functions.php was configured wrongly.
I did the following to solve the problem:
In my child theme, I backed up all my files
Then I deleted all of them leaving only the style.css page.
I could then log in.
On reloading my functions.php I found it was the culprit. I rewrote the php and it was fine.
My case was that I had generated code for three custom content types and then just pasted all the code in functions.php without renaming the "function custom_post_type" part of each function. After renaming like e.g "function employees", it worked like a charm....it displayed.
I am creating my own Drupal theme, but I logged out to see what it looks like and I can't log back in to change the settings.
I went to /?q=user and that didn't work either. The theme I have only displays the site name and slogan so far. Can I change this in a file on the server? Or do I have to uninstall drupal and reinstall it?
My URL is aidrupal.freeiz.com
Change back to a default theme via the settings.php file. Here is a thread that explains how: http://drupal.org/node/87390
Or, as per Jonathan's comment, paste the files from the default theme over yours.
After looking into HTML source of the link you provided, it seems that your page.tpl.php or node.tpl.php files are not parsing correctly.
Please go through them and see whether there is any error in these files.
Thanks.
I've installed wordpress locally, and created a few pages, but when I try to refer them, they do now show up. Instead I get a 404 error. when I try to open http://localhost/mySite/About page, it tries to open the file D:\mySite\About, which doesn't exist. Any problem with permalinks or htaccess file?? My site is at D:\mySite and I'm creating a new theme. I've created the page.php file so that it shows my page but no luck.
If you're working on Windows you need to work with the web.config instead even with PHP because that's how IIS works.
More information here:
http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/
I'm using wamp, the problem was that, by default, mode-rewrite was not being loaded. My mistake, now it's working.