Tips & Tricks For Debugging WordPress PHP

Поділитися
Вставка
  • Опубліковано 9 лип 2019
  • In this tutorial, I go over how to get started with debugging WordPress PHP. I'll show you how to turn on debug mode, turn on error logging and a special trick you can use to debug PHP when you're making an AJAX call.
    Contents:
    1:09 - Turning on WordPress's Debug Mode and Logging
    4:28 - Debugging PHP when making an AJAX call
    Sign up for the newsletter to notified about the free 2020 WordPress Development Course: wpcasts.tv
    *Don't forget to subscribe!*
    *SOCIAL*
    Twitter: / alexanderbyoung
    Instagram: / the_alex_young
    #WordPressDevelopment #PHP #WordPressBeginners

КОМЕНТАРІ • 44

  • @WPCasts
    @WPCasts  5 років тому +14

    Even though we are just scratching the surface to debugging WordPress PHP. I hope you learned something!

    • @nicolasmenescardi4077
      @nicolasmenescardi4077 4 роки тому

      Thanks for sharing. Xdebug is very helpful as well: www.codewall.co.uk/debug-php-in-vscode-with-xdebug/

  • @abenjamin13
    @abenjamin13 4 роки тому +4

    Thank you for the debugging tips, extremely helpful.

  • @melissahernandez2139
    @melissahernandez2139 3 роки тому

    ok such a newbie here!! THANK U! helped me so much!

  • @danimordecai7611
    @danimordecai7611 3 роки тому

    So good to find this today. Fixed my hiccups. Awesome 👍😎

  • @ta9sas
    @ta9sas 2 роки тому

    Exactly what I was looking for, Thank you

  • @kaveengoonawardane9651
    @kaveengoonawardane9651 2 роки тому

    Great video mate. Thanks!

  • @heyimamaker
    @heyimamaker 5 років тому

    Awesome tips, At work we use Sentry, and I do really like it. The ability to plop everything into one location and delegate issues to team members is amazing.
    For personal use through the logging method that you talked about its wicked.
    The only thing I do differently is using the logging in MAMP with my Apache V-hosts, this lets me use all of my virtual hosts and log each local site to its own file.
    Basically the same thing though.

  • @angelorigo
    @angelorigo 4 роки тому

    Very helpful!

  • @kerimtim
    @kerimtim Рік тому

    Thank you for the video

  • @vildanmorina2499
    @vildanmorina2499 3 роки тому

    Very Helpful!

    • @WPCasts
      @WPCasts  3 роки тому

      Glad you think so!

  • @user-ji4mi1gi3z
    @user-ji4mi1gi3z Рік тому

    cooooooooooooooool!
    thanks info php wordpress custom development environment and tips!

  • @catafest
    @catafest 3 роки тому

    Good tutorial! Can you make a video tutorial about you to custom the post for a default WordPress theme? For example, I want to add a custom source code area in the post. Thank you for share.

  • @rizaanjappie
    @rizaanjappie 3 роки тому

    Can you do a course on unit testing.,

  • @husenmultani6707
    @husenmultani6707 4 роки тому

    Good video

  • @victormendoza3295
    @victormendoza3295 3 роки тому

    I'm going to have a local env for elk stack and feeding php error logs into elk stack to see stats, etc.

  • @rangabharath4253
    @rangabharath4253 3 роки тому

    awesome

  •  4 роки тому

    Hi, it is possible to have querymonitor on frontend ? And thank you for your videos - top quality content, I bow to you ! I hope you continue the good work.

  • @yukasung
    @yukasung 4 роки тому

    how can i debug in save_post?

  • @user-ji4mi1gi3z
    @user-ji4mi1gi3z Рік тому

    There are very few of wordpress custom develop data in south korea.
    Is there wordpress custom development going on in your career or software market of software developers a lot?

  • @najimuddin9474
    @najimuddin9474 3 роки тому

    I've set wp-debug to true and then refresh the website, but no error warnings or notices appear at the top of the website. How do I get it to show at the top?

  • @palishloko
    @palishloko 3 роки тому

    I can't update my php version of Wordpress. Can you help me with this? Also, if I do this do I need to be hosting my website locally? Someone please help.

  • @elisabethbrowning5040
    @elisabethbrowning5040 3 роки тому +4

    So sorry, but I have another question. How do you get to wp-config.php to edit?

    • @anag8828
      @anag8828 3 роки тому +1

      I have the same question. This is all new to me...

    • @alex14pall
      @alex14pall 3 роки тому

      You need to access your server files. So let's say your site name is example-site[.com] , then your main file should have the same name so you browse example-site[.com] and you should see wp-config.php inside that direcrtory

    • @spr1ng586
      @spr1ng586 3 роки тому

      FTP mb

  • @whboggs
    @whboggs 4 роки тому +1

    What are you using to edit the site live? Looks much easier than uploading new files every time.

    • @WPCasts
      @WPCasts  4 роки тому

      I'll be creating a tutorial about how my workflow in WordPress in the coming weeks. Keep an eye out for it :)

    • @vanguardianacional1844
      @vanguardianacional1844 4 роки тому

      @@WPCasts let us know please! thanks

  • @foundational
    @foundational 4 роки тому

    what program are u using to access php code?

    • @WPCasts
      @WPCasts  4 роки тому

      Visual Studio Code

  • @jenithajeyakumar105
    @jenithajeyakumar105 3 роки тому

    gooooodddddddddddddddddddd

  • @elisabethbrowning5040
    @elisabethbrowning5040 3 роки тому

    How do this if you cannot login now to WordPress after debug error?

    • @WPCasts
      @WPCasts  3 роки тому

      If you have access to the DB you can change the active theme to twentytwenty and deactivate the plugins. That will make it so you can login again

  • @sfsf285
    @sfsf285 2 роки тому

    where the fuck do i find that fucking front.php file?