‫in this lecture of the course we're going to ‫be working with a bug fix for the Mac operating
‫system so if you are using the Mac operating ‫system you have to make sure that you follow and
‫watch this video and Implement everything what is ‫being taught in this lecture let's just go ahead
‫and let's get started so now we have successfully ‫installed WordPress on our computer now let me
‫just go ahead and let me log into the WordPress ‫dashboard by by just typing in their Local Host
‫localhost:8080/wp-admin and then I will hit on ‫enter and this is going to take me to the admin
‫page if I'm not logged in it is going to ask me to ‫enter my username and my password so let's enter
‫the username and let's enter the password that ‫was a s DF G H after that I will click on log in
‫and it is going to log me in so in this lecture ‫of the course we're going to learn what is the
‫bug and how we're going to fix it but first let ‫me show you the power of WordPress so let's
‫suppose that if I open this website in a new ‫tab you can see that this is how the website
‫looks now do not worry about everything like what ‫is a post what is a page what are themes plugins
‫so many of the things right here you see we're ‫going to be touching them everything from the
‫next section so let's take a look at this amazing ‫feature of Wordpress now if I actually go into
‫appearance and then I go into the themes then you ‫can see that I've got three themes added here by
‫the default the active is the 2024 and you can ‫see that this is how the website looks like now
‫if I just chck change the theme and I just choose ‫the 2023 theme and I click on activate and now if
‫I just refresh this website you can see that the ‫look and feel of the website is changed similarly
‫if I go back to the themes and I activate the ‫2022 theme and now if I refresh this you will
‫see that the look and feel of the website will ‫be changed so this is how WordPress works and
‫WordPress backbone the main thing is actually the ‫theme but let's suppose that if we want to add a
‫new theme if we click on add new theme and we are ‫in the popular tab now let's suppose that we want
‫to install this Astra theme so I'll be clicking ‫on install and once I click on install it ask me
‫some of the information so this is actually the ‫bug that I was talking to you about and this is
‫really very important so basically when we install ‫a theme WordPress installs it directly however on
‫the Mac operating system uh Mac does not allow ‫WordPress to install a theme so what we need to
‫do is that we need to tell our Mac operating ‫system that WordPress will install the theme
‫directly so you have to allow that and how are ‫we're going to do that it's really very simple
‫let's take a look at it so the very first thing ‫that you need to do is to make sure that you
‫do have a text editor if you have any other text ‫editor it's okay for this particular course we're
‫going to be actually using Sublime Text so you can ‫write here Sublime Text you can hit on enter and
‫you can visit the first website if you do not have ‫any of the text editor you can download this one
‫it's really great so once you have actually got ‫the Sublime Text downloaded then you can drag the
‫Sublime Text and you can drop it right right here ‫on your desktop after that you can double click on
‫this Sublime Text zip file and you will be given ‫this Sublime Text application over here after that
‫what you need to do is to open up your finder and ‫then you need to go into the applications and here
‫is going to be a list of all of the applications ‫so what you can do now you can drag this and now
‫you can open up the finder by going down and in ‫the finder you can then drop this Sublime textt
‫over here all right and you can just like add it ‫anywhere over here and this is going to be added
‫here so once you're done with that Sublime Text is ‫actually added in your application that's it this
‫is how simple it is and now if you will double ‫click on it it's going to open up um it may tell
‫you that this is downloaded from the internet so ‫since we have downloaded it officially from the
‫official website there's no need to worry and you ‫can hit on open that's it once you're done with
‫that you can see that's now the sublime text is ‫open right here so once you have got the Sublime
‫Text done then what you need to do is to open up ‫your finder and then you have to go into the XAMPP
‫then HD docs and on this HD Doc Page you should ‫see this wp-config.php so what you need to do is
‫to right click on it and then you have to click ‫on open with and then you have to select Sublime
‫Text and this is going to be opened up with the ‫Sublime Text so now let me just open this uh make
‫this Sublime Text in full right here and now let's ‫just uh increase the font size you do not have to
‫do it I'm just doing it because my screen is a bit ‫more bigger and I need you to see it clearly all
‫right so now what you have to do after you have ‫opened the wp-config you need to go down at the
‫end of the file all right and here on line number ‫82 we've got this Define on line 84 or 85 this can
‫be anywhere it says add any custom values between ‫this line and the stop editing line so we need to
‫add a code over here and that's it it's uh the ‫bug is going to be gone so first of all what you
‫need to do is that uh before this line there is ‫going to be this defined WP debug fals what you
‫need to do is to copy this line so you can select ‫this text then you can press command C to copy
‫and in between over here probably on line 86 you ‫can just press command V to paste it all right
‫and once you are here instead of this WP debug ‫what you need to do you need to write here file
‫system underscore method all right FS_METHOD ‫and instead of the false, you need to select that
‫you need to press uh Delete or the backspace so ‫that uh the false is gone after that you need to
‫add a single quotation mark So once you will add a ‫single quotation mark it will also end that single
‫quotation mark right here like you can see we've ‫got one single quotation and the other single
‫quotation which is closed so in between these ‫single quotation marks what you need to do is
‫to write here Direct that's it once you're done ‫with that then you can press command s to save
‫this file you just need to write here this Define ‫fscore method direct and that's that's it and uh
‫make sure that you copy this and then change it ‫otherwise you can make any of the mistake over
‫here like the semicolon is missing the bracket is ‫missing so just copy it and then just change these
‫things once you have saved the file then you ‫can close this Sublime Text and we do not need
‫it now all right now let's just go ahead and let's ‫open up our browser and now let's refresh our this
‫page and now let's just go ahead and let's ‫click on install on the Astra and let's see
‫if this theme gets installed and there we go you ‫can now see that the theme is now successfully
‫installed so now what you can do you can ‫click on activate and this team will now
‫be activated and now let's take a look at our ‫website and let's see how it works so now you
‫can see that the look and feel of the website ‫is changed which means that now we were able
‫to successfully install the theme so now what ‫I want you to do I need you to activate the
‫default theme that was already activated and ‫then I need you to click on the theme that you
‫have downloaded so you can click on the theme ‫details and you can click on delete over here
‫and hit on okay that's it you should be having ‫the three themes 20124 should be activated and
‫now if you will visit the website you can see ‫that this team is already activated so now from
‫the next lecture of the course we're going ‫to be working with the WordPress over riew