Wordpress error when installing parent theme - wordpress

I'm new to web dev: trying to install a custom theme to Wordpress. Running Windows 10 and working on a local server with MAMP.
When I went to see my theme, I get the following message:
Broken Themes
The following themes are installed but incomplete.
Name Description
mywebsite The parent theme is missing. Please install the "mywebsite;" parent theme.
Error I get when trying to install:
An unexpected error occurred. Something may be wrong with WordPress.org or this
server’s configuration. If you continue to have problems, please try the support
forums.
Does anyone know how I fix this?
Thanks

check if in your theme-child style.css has:
/*
Theme Name: yourtheme-child
Template: yourtheme
Text Domain: yourtheme-child
*/
and in theme style.css:
/*
Theme Name: yourtheme
*/

Related

Elementor Not Loading On WordPress Subdirectory Installation With Composer

WordPress in its own directory using Composer
Troubleshooting Elementor Infinite Loading Screen
Inspired by roots/bedrock, I started a project to install WordPress to its own subdirectory using Composer. Plugins and Themes are installed from WPackagist, separately from the core WordPress files, also using Composer.
I ran into an issue with Elementor, which was stupid simple to fix. However, when I was in the process of fixing it, my Stack Overflow query, 'wordpress composer “elementor” -visual', returned nothing interesting. So I set out to write a quick troubleshooting guide for my own oversight. I have been obsessed with using Composer for WordPress dependencies lately, so I'm excited to write about it.
Anyway, after setting up the WordPress core and plugins using Composer, and setting up my database credentials in wp-config, I can login to the dashboard just fine.
Here's the Issue
In the dashboard, I see an issue immediately; the Elementor icon is missing, showing a generic gear instead. Here is the first clue that Elementor cannot find its own assets.
Furthermore, when I try to create a new page in Elementor, I see only an infinite, white Loading screen. Additionally, the "Edit with Elementor" button is missing when creating new posts and pages.
Initial Debugging Methods
Turn on PHP debugging in wp-config.php -> Revealed nothing enlightening.
Remove all other plugins besides Elementor -> No changes.
Turn on Safe Mode in Elementor > Tools -> Revealed nothing enlightening.
What next?
I will tell you how I fixed this issue.
Developer Console Insights
To finally resolve this issue, I opened the developer console (CTRL+SHIFT+I) and inspected some of the 404 links in the Network tab. An issue was immediately apparent: the filepath was incorrect. My project's folder is called "subdir-wp-elementor", not "subdir-wordpress".
Here is what Elementor was trying (and failing) to load:
http://localhost/subdir-wordpress/app/plugins/elementor/assets/js/editor-modules.min.js?ver=2.9.12
Resolution: Update CONTENT_URL in wp-config
I realized that I had forgotten to update the CONTENT_URL definition in wp-config.php
My SITE_URL was http://localhost/subdir-wp-elementor/, but here was my CONTENT_URL:
// ========================
// Custom Content Directory
// ========================
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/subdir-wordpress/app' );
Setting the correct CONTENT_URL to the below allowed Elementor to properly load.
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/subdir-wp-elementor/app' );

How can I find out what Wordpress theme was used on a site, which is only available via waybackmachine aka web archive?

I've looked in the code, where one would normally find a mention of theme used, but no luck. Any ideas?
Open your developer tools on the actual wayback machine archive page and search for the style.css file. At the top you should see details of the theme in the format:
/*
Theme Name: Ma.tt
Theme URI: http://ma.tt
Description: A tribute to Mark Rothko.
Author: Joen Asmussen
Author URI: http://ma.tt
Template: twentythirteen
Version: 1.0.1
*/

how to install my theme using wp quick install script?

i am using WP Quick Install Script to install WordPress and it works fine. but it's not installing my custom theme. i also placed theme as theme.zip in WP-quick-install folder but it shows a white blank screen on front-end.
what is wrong there?
Any reason why you are using WP Quick Install in the first place?
I would simply suggest setting up the site as normal and adding your theme into the /themes/ directory.
If this is daunting, just shout, but first read the Wordpress Codex - Installing Wordpress

Wordpress permalink settings broken

When I choose /%postname%/ permalink it adds a base directory (home-2) to the link like
Before:
site.com/?p=123
After:
site.com/home-2/page
I want it to just be site.com/page.
Update: I see now that all permalink options give me the same link site.com/home-2/page even if I choose Month and name or any other setting.
If I type in site.com/page it redirects to site.com/home-2/page
Select Custom structure, and then put /%postname%/ in the input box. Also make sure you don't have anything in the category or tag base input boxes under "Optional". Click save and see if that fixes your issue.
I solved this issue for myself: I was running MAMP locally for wordpress. However, I had NGINX in the Procfile (not apache clearly; that's the A in MAMP). I also was running HHVM on heroku and PHP (the P in MAMP) locally. once i changed my composer.json to:
{ "require": { "php": "^5.5.12" } }
and my Procfile to:
web: vendor/bin/heroku-php-apache2
and redeployed, /%postname%/ permalinks worked!
In hindsight, if I was paying attention to this: http://12factor.net/dev-prod-parity, I would have resolved this a lot sooner.

Wordpress New Post Edit Toolbar is Missing

Symptom:
When I start a new post on my Wordpress (example: http://website.com/wp-admin/post-new.php), I have the following problems:
The tinyMCE editing toolbar is missing, and
Text does not appear when typed in the body of the new post
Attempts:
Following Wordpress' guidelines, I tried the following without success:
Deactivate all plugins -- still no edit toolbar.
Use other browsers -- same error in Chrome, Firefox, and IE on multiple machines.
Enable SCRIPT_DEBUG in wp-config.php -- same error.
Viewing browser errors in Chrome -- see below.
I opened Developer Tools ("F12") in Chrome on the new post page and found the following 3 errors:
Failed to load resource: the server responded with a status of 404 (Not Found) -- [wordpress-website]/wp-includes/js/tinymce/tiny_mce.js?ver=349-20805
Uncaught ReferenceError: tinyMCE is not defined -- wp-langs-en.js:1
Uncaught ReferenceError: tinyMCE is not defined -- post-new.php:760
Question:
What must I do to get the edit toolbar back?
404 errors are an indication files may be missing. Have you verified the files haven't accidentally been moved or deleted?
You can replace the contents of the wp-includes/ directory where TinyMCE is located. You can either do this via the admin area updater, or you can do it manually.
Automatic way
Log into your WordPress admin area
Navigate to Home > Updates
Click the Re-install Now button
Manual way
Download a copy of the version of WordPress you are currently
running (if you are not running the current version you can find a copy in the release archive)
FTP into your site
Make a backup of your wp-content/ directory
Delete the wp-includes/ directory from the server
Upload the entire wp-includes/ directory from the new copy of WordPress you downloaded
You should now have a completely replaced wp-content/ directory and all of the TinyMCE files will be on your server.

Resources