Bị lỗi the theme directory wpflexishoptwo-child does not exist năm 2024

55015 new defect (bug)

Reported by: Owned by: Milestone: Future Release Priority: normal Severity: normal Version: 5.9 Component: Themes Keywords: needs-patch Focuses: Cc:

It shows a blank screen when loading the Site Editor

/wp-admin/site-editor.php?postId=twentytwentytwochild%2F%2Findex&postType=wp_template

core-data.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2721 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'stylesheet')

at Object.reducer_currentTheme [as currentTheme] (core-data.js:2721:34)
at eval (eval at <anonymous> (data.js:117:10), <anonymous>:3:107)
at Object.combinedReducer [as root] (data.js:128:15)
at eval (eval at <anonymous> (data.js:117:10), <anonymous>:3:67)
at combinedReducer (data.js:128:15)
at dispatch (data.js:980:22)
at data.js:1706:12
at redux-routine.js:247:16
at data.js:1636:10
at Object.dispatch (data.js:1694:10)
My name is Ahmad Affan, and I've been on a unique path, navigating through the labyrinth of the digital marketing world for over 8+ years. My career started in computer science and web development, before branching out into the broader, dynamic landscape of digital marketing and media buying. Passionate about computer science from the start, I earned my Bachelor's degree and cultivated skills to become an accomplished web developer. Years of creating efficient web solutions for diverse businesses enhanced my proficiency. However, I discovered that stellar website development was just half the battle; attracting and engaging the right audience was equally vital. This insight led me to delve into digital marketing. Embracing SEO, SEM, social media strategies, and content marketing, I combined my technical aptitude with a newfound creative and strategic approach. This field required a new form of problem-solving, intertwining human psychology, market trends, and business strategies. Today, I am well-versed in both web development and digital marketing. I believe my unique blend of skills empowers me to provide businesses with holistic solutions, uniting technical prowess with marketing acumen.

Yes. At the bottom of your original message I see “refer the link below”. If you can’t share a URL that’s fine, it just makes it a little more challenging for the Kadence folks to troubleshoot.

@mchildress Actually I wanted to share the link of the error image instead of the website. I have attached below is the error image

https://ibb.co/ySrJhcL

@spanizhfly Ok I understand. So the child theme has worked for the last two months and now it doesn’t. Prior to the child theme not working, did you apply updates to the Kadence parent theme? Can you provide the version numbers of the Kadence theme?

@mchildress yes, It was working few weeks back and all of suddenly it’s trying to switch to the default WP theme, I have removed the default theme for the moment. It is set as auto update as for themes. The current Kadence is Version: 1.0.23

  • This reply was modified 2 years, 10 months ago by spanizhfly.
  • This reply was modified 2 years, 10 months ago by spanizhfly.

@spanizhfly Ok gotcha. On my test install I also have Kadence Theme 1.0.23 and have loaded the child theme from the child theme downloads (version 1) and then activated it with no issues. I’ve seen this kind of issue if the child theme or directory was renamed inadvertently. If you haven’t renamed it, you may want to check for console log errors to see what you can see.

Yes, I have renamed it from kadence_child to company_x on the folder and on the css Thats the only changes I have done.

@spanizhfly I believe that is your problem. Change the name back just to see. If you do rename, use the same name for the Theme Name in the style.css file as well as the directory. For example, the directory for the default child theme is called kadence-child. If you look at its style.css file you will see the child theme name is Kadence Child. Let me know how it goes. If I remember correctly, you want to leave the setting for Text Domain: kadence-child in the style.css.

  • This reply was modified 2 years, 10 months ago by mchildress.

@mchildress below is the codes that i used for the child theme. as for the folder i named it as hron

/*!
Theme Name: Hron
Template: kadence
Author: Hron
Description: A simple theme helping an electrical company
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hron
*/
/* Theme customization starts here
-------------------------------------------------------------- */

@spanizhfly I think if you change the Text Domain back to kadence-child, it will reconnect the child theme. Text Domain: kadence-child. Everything else looks good.

@mchildress I changed the Text Domain: kadence-child. but it didn’t work. Then I changed the the theme folder name and it worked. This is my first time having issues with child theme and a unique scenario but resolved.

Thank you so much @mchildress for your contribution

@spanizhfly Sure thing. Good to hear you are back in business.

@mchildress Thank you so much but still curious about the issue because other themes with the same earlier setting worked well

@spanizhfly – I understand the concern. I’m not affiliated with Kadence, just a user. It might prove useful if you posted a short summary about what your experience has been. The Kadence staff might be able to offer some further insight.

When I went looking I came across the Kadence knowledge base post on child themes but it didn’t seem to address renaming of child themes. I also came across the official child theme documentation at WordPress.org which you might find helpful as well.