Page 2 of 3
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 6:42 am
by simonmlewis
The logo is not there.
The logo is centred not on the left.
The menu is there with the categories, but the styling is messed up. And while the colours are there, the JAW menu is not working at all.
The footer is not there at all. AFter a blank white page, there is nothing below it.
Within the Admin Dashboard, The left menu is there in the dark grey vertical space. There is a white space above it, as in the screenshot I sent before.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 6:50 am
by Celauran
Could be missing files, though that seems unlikely. Check the network tab in your browser's debug tool; you may have style sheets and the like still pointing to localhost or an old server or some such, and you're getting a 404 instead of the requested resource.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 7:33 am
by simonmlewis
How would I fix a stylesheet pointing to localhost?
Where would I locate that referencing? From what you have said, that could even be in the database too!!
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 7:40 am
by Celauran
I'd start with header.php in the theme. Really, though, the offending file(s) will be listed in your network tab and you can just search the codebase for them.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 7:58 am
by simonmlewis
Sorry what do you mean "network tab"?
Also, and I don't know if this is part of the problem, but when I go to Appereance Editor, the only item shown under Goodstore is the Style.css.... which (and this could be the issue)... shows as empty! Just the comments at the top.
Why would that be?
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 8:01 am
by Celauran
Inspect element, then select 'Network', then reload the page (see attached screenshot)
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 8:02 am
by Celauran
simonmlewis wrote:Sorry what do you mean "network tab"?
Also, and I don't know if this is part of the problem, but when I go to Appereance Editor, the only item shown under Goodstore is the Style.css.... which (and this could be the issue)... shows as empty! Just the comments at the top.
Why would that be?
Check the file and directory permissions and make sure the web server can access the files in question.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 10:32 am
by simonmlewis
Mmmmm. Rather than me finding the issues, might be better if I found a better way to copy a site over, as clearly my method is flawed.
I was told about this plugin:
https://wordpress.org/plugins/duplicator/
Are you familiar with it?
I did try it, and came up with some errors but carried on with it. However, what a tutorial does not tell me is what I do about creating a Wordpress site, what I do about the database - and do I create the database on the live server with the same identity information as that on the local server?
Or is it based purely on creating the tables, and NOT looking at the database name.
IF this works, it's brilliant.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 10:49 am
by Celauran
I am not familiar with that plugin, though we did write something similar at work to help mitigate migration pains. It converts local URLs to shortcodes prior to saving them in the database, then converts them back on display.
https://wordpress.org/plugins/wp-portability/
As for deploying, I'd recommend using Git as an absolute minimum.
Capistrano is better, and integrating with something like
Bedrock is probably best.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 10:55 am
by simonmlewis
It's just something I need to be able to export the whole site's setup locally, and then put it on the Live server, as clearly dragging it via FTP and importing the database, FAILS every time for me, no matter how I perform it.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 10:58 am
by Celauran
You really need to be using version control, both because it will facilitate deploys and because of the merits of version control on its own. Check your code into GitHub, BitBucket, etc, then check it out directly from the server. Nothing gets lost, you can always roll back to earlier versions, etc. That's a separate discussion unto itself, though, and won't necessarily help you with this particular install. Have you narrowed down if any files are missing, if any of the plugins are throwing errors, etc?
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 11:05 am
by simonmlewis
Honestly, I've given up on that method. Because as I iron out one issue, another arises.
Going back to that other site I told you about, where it was an old theme, they are likely to trash it and we are going to build them a brand new one... which is also why I need to be able to "copy" a site.
http://demoshop.domain.com/wp-admin/setup-config.php
I have now cleared the database of all tables. Uploaded a fresh clean 4.3.1... and open it opening to find the new setup screen... but itself with a URL like this, I get a BLANK screen.
WP is really being a properly difficult pain. New install. Blank DB. Why do I get a blank screen?
And yes - the folder was completely empty as I did that via plesk and saw it empty in FTP.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 11:09 am
by Celauran
White Screen of Death usually means fatal error that's being hidden by WP_DEBUG being set to false.
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 11:11 am
by simonmlewis
But wp-config.php does not yet exist?!?! It's not been created. So do I need to create a tiny PHP file with that 'true' debug code it in?
Re: Wordpress site copied: wp-admin not showing anything
Posted: Tue Oct 06, 2015 11:16 am
by Celauran
You need to determine what errors are being thrown before you can go about fixing them. Have you checked your error log? Checked for a rogue .htaccess file (which may not show up in FTP since it's a hidden file)? What HTTP response are you getting? Have you checked that the directory you've installed WP in is accessible to the web server? Would it be able to write a wp-config?