Wordpress CSS Lost After Migration - php

I am really new to Wordpress and I haven't use it before. So I have source code of Wordpress which is already installed somewhere on says www.theshop.com. I took out the source code and upload it into another server xx.xx.xx.xx/theshop. I have also set up the MySQL and the it's database is already there.
When I go to xx.xx.xx.xx/theshop in the browser, the page is successfully displayed, however the CSS is missing. The menu link also seems to hold the previous domain still like theshop.com/theshop/?pageid=1. I have changed the DB config in wp-config.php however I could not find how to solve this absolute path or domain issue maybe.
Sorry if I miss anything but please let me know if any other information required. Again this is my first involvement in Wordpress. There is no cPanel or any automated installer for Wordpress on my server. Plus the browser says my Wordpress is already installed. Any feedback is greatly appreciated.

Related

Wordpress homepage changes not works

I have a wordpress website, I created a customized php template to the homepage and loaded from the back-end in the template page settings.
During the last months everything was working perfectly when I change anything to the template code effects the homepage without any problems.
Suddenly, yesterday when I tried to upload a updated file, nothing changed on the homepage.
I remove the browser cache, and wordpress cache, used another device to check, without any luck.
The wordpress black admin tools bar appears on all sites pages so I can edit and control this page, but it's not appears on the homepage.
For sure I checked again the theme settings for the homepage and page template settings, and everything is correctly configured.
I tried to activate another theme, the surprise that I found the homepage still the same and all other pages changed to the new theme.
I am losing my mind due to this, and I don't understand what may happened.
Download your site on your computer and see whether it happens also on your own computer when simulating with XAMPP.
Are you sure that the new added files are really being uploaded to the server? did you check it up with downloading the files? Maybe the modified files could not been uploaded? Another thing would be that some new installed plugins are making those problems. Have you installed some new plugins like a plugin which are speeding up your wordpress site? There are some popular plugins which speed up your site with caching your whole site and working as a CDN.
Since i dont know which modification you do on your website it is difficult to find a solution. If those modifications are changes of articles then look into the database.
You could look into the SQL Database whether those new information are being saved. E.g. you try to post a new article. Is this article being saved in the SQL database? Do you see any errors on the page? Does this effect each page / section of your website or is it only for a specific module e.g. "image uploader"??
Did you try to replace a simple image on your site with another image ? Can you see the difference on the website? I would start with little steps to be sure whether this is a server issue, template issue or sth with unsufficient priviliges. There were also new wordpress updates, maybe they affected your template? Another thing would be to recover your complete site from a backup and see whether it works like before and be sure that your site has not been hacked.

Code changes not taking effect on Drupal site

I'm sure this has been asked a dozen times here, but nothing I've found online or on here has helped. There's something strange about the Drupal site I'm currently working on - I've worked on 10+ other sites at this company with no problem - in that none of the code changes I make seem to have any effect. Anything I do through the admin backend appears immediately, but when I try to change the text in a custom page template and push it live, nothing happens.
What I know/did:
I know I'm pushing correctly because when I go in the file manager on the live server and look at the files I pushed, the changes are present.
I am sure that I am changing the correct file because when I try it locally and on our staging server, the corresponding pages update immediately.
I cleared out the site's cache in the admin menu, in Configuration -> Development -> Performance -> Clear all caches.
I asked the hosting company if there was a cache to clear on their end, they said no.
I deleted the uploaded theme from the server completely. The theming is still present, though the images are broken links. So the site theming is still cached somewhere. (I then replaced the theme folder)
I then contemplated quitting web development and opening an orphanage in Pakistan
What I did not do:
I did not run root/update.php. I figured this would recache the database and that wouldn't affect text in a custom page template (I also searched for that original text in the database to make sure).
Does anyone have any other ideas I could try?
It could be nginx cache on the server. Or PHP opcache could prevent you from seeing PHP code changes.
But if you still see deleted Drupal theme, it is rather some proxy or maybe something right in your browser instead of the server.

Wordpress Dashboard Display error

I have a huge problem with my wordpress dashboard display. After I upgrade to wordpress 4.5 my dashboard gone crazy.... its seems like it is not displaying css correctly. Its really killing me cause I could not write any article ...which very bad for my website. My dashboard looks like:
This is what seems to be the problem:
I tried everything. First I thought that is might be chrome's problem. I deleted history/cache ...etc. Not working. Then I deleted chrome and reinstalled it. Not worked. Then I used firefox, opera,internet explorer ... not worked. I put one friend of mine to look... it seems also the same to him. Then, I deleted wordpress 4.5 core file (wp-admin, wp-include) from ftp and installed back wordpress 4.4.2 and it looks the same..... I'm really desperate. I sought help on wordpress official website.... nobody helped me.... its crucial for me to solve this problem I really live with site's help. I really don't have any idea to solve it. This is killing me :(.
I appreciate any help.....
Add below code in wp-config.php file of your WordPress.
define('CONCATENATE_SCRIPTS', false );
It should solve your problem, you can read more details on below link.
http://manovotny.com/fix-wordpress-admin-styles-not-loading/
jQuery is not defined errors usually indicate that jQuery hasn't been loaded at all, so then other scripts that depend on jQuery being present throw the error.
Where are you loading jQuery from? According to this issue someone had a problem where they were including jQuery from Google's CDN, and WordPress was trying to load a version of jQuery that wasn't present in Google's CDN.
A link to your site would be helpful - it's difficult to determine what all is going on from only that screenshot.
It also looks like your site isn't loading any of the CSS for the admin area. Have you doublechecked your WordPress address and Site Address options in the admin?
This might also be set in your wp-config.php file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
If your WordPress Address (which is the same as WP_HOME) setting doesn't match the URL with which you're trying to access the WP admin area, then you'll see symptoms like your site is exhibiting, where CSS doesn't load properly and some javascript may be missing.
One more suggestion: try activating a different theme temporarily (such as Twenty Fifteen) and see if that fixes up the WP admin. You may have a conflict specific to your current theme package.
Take care of adding define( 'CONCATENATE_SCRIPTS', false ); at the top of declarations, after comments.

Wordpress Admin doesn't load css files and images

I'm having a serious problem. I have wordpress 3.9 installed on my server. the problem is that my website front end loads good, but my back end just loads text :
I have updated/reinstalled wordpress but nothing has happend. What should I do?
Thanks for help.
I'm 100% sure that if you simply do the following, you'll figure out what's wrong and fix it.
Deactivate all plugins without use of your WP-Admin.
Activate them, 2 or 3 at a time, and determine which plugin is the culprit
If none of these plugins are the culprit, go to the WordPress site and download WordPress. With an FTP utility such as FileZilla or another client if you already have one, then upload the entire wp-admin folder to your server, overwriting older files.
Your WordPress admin will be fine after these steps. And of course, never alter any core WordPress files -- ever. The only files you should ever tinker with are files in your child theme, which is something you should be using.
Would be great to have a bit more information about this topic. First of all: Is this a new problem respectively did the admin run without errors before? (3.9 sounds like the page is not a new clean install).
Usually I would start debugging the page via e.g. firebug => Check the Stats of the CSS-Files.
If they load correctly (200) check if they are empty or incomplete (Incompleteness can be checked via diff against the original file ... most IDEs will handle that for you)! If they aren't you have probably just diabled CSS in your browser for the URL of the admin-panel.
If they don't load, try to check why! If the files exist its most probably an error in your .htaccess (wrong rewrite, blocked directory, etc.).

Cannot overwrite Wordpress file via FTP

I'm currently working on a wordpress website, of which I'm trying to overwrite content-extensions.php with a new version. On uploading this it appears to work, the file transfer is successful. However, there is no change in the browser even after refreshing and clearing the cache. I've also ensured that there are no plugin's caching within wordpress, and file permissions are what they should be within FileZilla.
Here's the odd bit.
If I go into theme editor, and locate content-extensions.php I can see the changes that I've made in the source code. For whatever reason they're just not appearing in the browser.
I'd be really grateful if someone could point me in the right direction for this one, as I haven't a pickle.
Many thanks.
Are you working with an extension or with a theme based function?
If it's an extension, remember to activate it, i often forget that, i upload code, see it in the extension manager but forget to activate it.
If it's in the theme, are you sure you are using the right theme and not the basic one?
I know this doesn't shed any light on why it's actually happening but I've had that before and just deleted the file and uploaded the new one rather than trying to overwrite it.

Categories