WordPress Manual Install Theme/Display Issue - php

My Problem
I manually installed WordPress on a Debian 9 VM in Virtual Box on a Windows 10 machine. When I pull up the website, this is what I get:
A WordPress site with just HTML, no formatting
The point of this install was to learn how to make a custom WordPress theme. I have built child themes before, but never a theme from scratch, so it may be I don't have everything set up yet. But there is a second issue is WordPress does not give me an option to select my second theme either.
What I did
To set up the site, I followed this tutorial on setting up WP on a Debian system. I sort of touched up on this, but I am new to WP development. I thought this was a quick and dirty route to set up a WP install. I don't have the knowledge of WordPress to know if there is an error in this setup guide.
Again, I checked the themes folder. I could not find the custom theme I started to build as an option. I can't currently download themes straight from WP because I don't have an FTP server/client currently installed on my machine. If it were just the inability to choose a WordPress theme from the WordPress theme repository, I'd suspect it's the FTP setup. But, I also can't choose my custom theme. So is there something wrong with the install?
Summary
I can't get any formatting to work on my WP development site. I suspect it's some problem with themes, but I don't know enough about the internals WordPress to know how to diagnose the problem.
Thank you for your time

It's tough to say without seeing your setup exactly, but this is often caused by URL problems.
Are you able to access wp-admin? If so, try logging in and visiting the settings > permalinks page, then just hitting the save button.
Try reloading your site. It might be fixed.. If not, a little more to try. First, I'd open your browser's Console / Inspect mode, and see if there are any console errors (showing CSS files not loading, etc). If so, post them here.
Additionally, I found a helpful article that details some other things to try when this problem pops up:
http://wphelp24.com/how-to-fix-wordpress/how-to-fix-wordpress-css-not-loading/

Related

Plugin in Wordpress is automatically installed and activated

I have a quite strange problem with a Wordpress site. I manage a few Wordpress sites but I never experienced this problem. A plugin gets automatically installed after few days. In addition it is a maintenance plugin, called Maintenance from Webfactoryltd. But every time I delete or just deactivate this plugin, it gets reactivated / installed again and switches to maintenance mode.
This is a premium site buyed on themeforest (flatsome), but I don't think it has something to do with the premium template.
I tried following things:
Delete / Deactivate the plugin
Deactivate all plugins and reactivate only needed ones (Woocommerce)
Deactivate all caching plugins (Redis, WP Optimize)
Deactivate the automatic updater in config.php
Deactivate all automatic updates on the plugins itself
Installed Crontrol (plugin) to maybe get a cronjob which is responsible for that
Nothing worked. Has someone an idea what I can try now? Thanks in advance!
You can set limit file permission for .htaccess, wp-config.php for 444. Also, set recommended folder permissions.
You can install Wordfence & scan to see results where the file is affected & fixed it.
You can run also, virus scanner from the Cpanel account.
My site was compromised. Thanks to the link of Justinas I could take further steps to deal with this issue.
I could pinpoint the problem to a user (client) which I think run some scripts from it. The Wordfence Plugin helped with that a lot. I restricted the user and reset the password.
I also used Wordpress FAQ - My Site was hacked for orientation in this case.
Especially thanks to #Justinas for the report.

PhpStorm and WordPress plugin development - cant get it working

I'm new to PHP and WordPress development. I have PhpStorm correctly setup and tested to run and debug simple PHP pages - sorted.
I want to development WordPress plugins, so have created a new WordPress plugin project in PhpStorm.
However, I cannot see how this works. The plugin is outside the WordPress install, and I believe it needs to be inside WordPress - in the plugins directory.
I have read all of the JetBrains instructions in fine detail for doing this MANY, MANY times, and nothing tells me how to make the plugin work within WordPress when it exists externally, so that it can be debugged.
I'm obviously missing some vital information or principal, as every article or YouTube video skips this. If I put some code in the plugin php file and set a debugger breakpoint in the hope that it 'magically' just works - nothing happens. Yet I can successfully hit a breakpoint set in the WordPress source files themselves - so something is definitely wrong.
Can someone tell me what I'm missing. I'm completely out of ideas, and massively frustrated.
Should I just abandon the standard PhpStorm project setup and just create a php file inside the WordPress plugins directory directly and just do things there. Seems a shame as I want to keep the plugin separate - as PhpStorm seems to recommend.

wordpress update_core.php, themes.php and plugins.php error

Initially i thought it might be a plugin conflict, so i renamed the plugins directory to plugins-temp and created a new empty directory "plugins" to reinstall them one by one to see which one caused the problem. However, the error still occurred even with an empty plugins directory. After that I thought that it might be a theme issue, so i tried to change the theme from wp-admin, and i noticed that that page also returns an error so I changed the custom theme to "twentysixteen" in the database. However, the themes page still returns an error and the plugins page wasn't working either. Poking around the wp-admin page i also found that the updates page on the dashboard was returning an error. I assume it is a database conflict but i cannot reset the entire database. What values could i reset in the database that would reset the settings on those pages? In addition, I also updated to the latest version of wordpress(4.8.2).
Any advice is greatly appreciated!
In your situation it is very hard to pinpoint what's wrong with your website but you can try narrow down the source of the error.
Possible causes:
There might be a corrupted file somewhere in your WordPress core or broken theme or badly coded plugin that mess up your database.
Backup first:
Nevertheless try backing up all your WordPress files including the database before doing anything else.
Reinstall:
Once you have your backup delete whatever files you have and reinstall your site bit by bit to troubleshoot the issue. This will also ensure you have a clean WordPress core files.
Install a fresh copy of WordPress with default theme and database installed.
Once done upload your theme and activate it and make sure the site is showing up just fine.
Followed by upload folders and plugins. Reactivate the plugins and check the site again.
Lastly replace your database file and check the site, if there is no error that means the error should be somewhere in your core or the templates. If there are errors then the errors most likely originated from your database.

My WordPress site got updated and also few plugins. site is not loading any more. What i can do it to win it back

I have WordPress site and it is updated new version. I don't know how. Few plugins also got updated. Now sites page is not loading. Server is working fine but pages are loading.
I don't have back up. How should I get back the things.
This is a good time to learn your lesson about backups. Always have a backup.
It's most likely that one plugin is breaking your site. You can copy the /wp-content folder of your site to your computer using FTP and then (after copying it locally!), one by one, delete the plugin folders in wp-content/plugins themselves on your site over FTP. After deleting each plugin folder, check if your site is back up.
If you find the offending plugin, try reinstalling it through the WordPress admin panel. Because you deleted the plugin folder and not the database entries, the settings should still be there, but your local copy is in case of further emergency anyway.
You can try renaming your plugin folders via FTP connection. Do that one-by-one and reload the site each time. They will be deactivated after you do this, and you will find the plugin which is causing the problem.

Fresh Wordpress install not reflecting changes on files instantly

I have a fresh wordpress 4.0 install on my server for a specific domain and when I make changes to any of the theme files it won't show up in the browser for a few reloads. I just add "asdf" to the theme file to test changes. I can refresh 20 times but no changes show up until like 20 seconds later.
What I have tried:
Turned off firefox's cache.
Turned off wordpress cache.
Tested other domains on my server with wordpress and they work properly.
Installed wordpress with "server installer apps"(3 times) and also with manual installation.
I refresh with ctrl+f5
Tried with firefox and with chrome, same results.
Its a fresh install so no plugins, no settings changes. There is no caching and my other domains work properly. No errors show up in the console.
I have no idea what the problem could be. My server company, mediatemple, said it could be my ISP, but other domains on my site work properly from the same computer/network. For some reason the problem is specific to this domain and the problem persists through all the themes.
I don't know what to do next. Any suggestions would be greatly appreciated. :)
Update:
Have tried manual install of wordpress 3.9 and that does nothing.
I added a new folder to the root and in that folder I added a file called index.html to test if this file, which is unaffected by wordpress, would show instant changes and IT DOES. So the problem seems to be based within wordpress and specific to this domain.
I spoke to Mediatemple for the 3rd time now and this guy was much more helpful and he actually solved the problem.
When you add a domain to mediatemple it automatically sets the PHP version to "FastCGI", which normally is fine, but it caused problems specifically on this one domain's wordpress install for unknown reasons. So he switched the PHP version to "CGI (Stable)" and that fixed every problem.
I hope this will be helpful to someone in the future. :]

Categories