Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Drupal troubleshooting
Peter Arato (Pronovix)Twitter: @itaratoModules: Graphmind,Bubbletimer, Webcam trigger,Faceted ajax search, Block tab
White screen
Error message
Unexpected behavior
Low performance
Design issues
Bad/old content
What to do?
Prevention
TestsSimpletest, Unittest, Selenium
Quality AssuranceCoder module, PHP Code Sniffer,     PHPmd, PHP Depend
Performance toolsab, JMeter, httperf, Siege
Debugging / performance         tools xDebug, *cachegrind, MacGDBp           Wireshark
Modules
Devel module dpm(), dvm(), dpr(), dvr(), kpr(),dargs(), dd(), ddebug_backtrace(),           db_queryd()       node access ...
from https://ratatosk.backpackit.com/pub/
from https://ratatosk.backpackit.com/pub/
from https://ratatosk.backpackit.com/pub/
Drupal for FirebugFirefox and Chrome extension            firep()
from https://ratatosk.backpackit.com/pub/
Browser toolsFirebug, DOM inspector, HTML       validator, YSlow
Journal
Tips
configurationini_set() (index.php, ...)       .htaccess         php.ini
maximum reporting level           php.ini (E_ALL)          display all errorsdatabase logging and syslog modules
debug_backtrace()
check your limits   execution time limit      memory limit       upload limit        post limitphp (apc, suhosin), mysql
be universal        no short php tagscoding standards (vars and refs)           standard sql    test in multiple browsers ...
use tools (IDE) that helps you          syntax highlight        function reference         safer refactoring            de...
read code
er
quick checkssite and module settings       permissions environment variables       clear cache            ...
quick checkssite and module settings       permissions environment variables       clear cache            ...
disable modules 1 by 1
try it on a clean Drupal install
sql hacks    disable modulesfix encoding problemsset weight of a module       clear cache
turn off cachingDrupal caches, JS, CSS,memcache, APC, proxy
go harddump variables   debug
ask         googleirc (#drupal-contribute)         forum      issue queue     Drupal events ;)
contribute back
Drupal troubleshooting
Drupal troubleshooting
Drupal troubleshooting
Drupal troubleshooting
Drupal troubleshooting
Drupal troubleshooting
Upcoming SlideShare
Loading in …5
×

Drupal troubleshooting

2,685 views

Published on

How to find bugs in Drupal? This presentation will list a lot of tips to make your life easier.

Published in: Technology, Design
  • Thanks for sharing.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Drupal troubleshooting

  1. 1. Drupal troubleshooting
  2. 2. Peter Arato (Pronovix)Twitter: @itaratoModules: Graphmind,Bubbletimer, Webcam trigger,Faceted ajax search, Block tab
  3. 3. White screen
  4. 4. Error message
  5. 5. Unexpected behavior
  6. 6. Low performance
  7. 7. Design issues
  8. 8. Bad/old content
  9. 9. What to do?
  10. 10. Prevention
  11. 11. TestsSimpletest, Unittest, Selenium
  12. 12. Quality AssuranceCoder module, PHP Code Sniffer, PHPmd, PHP Depend
  13. 13. Performance toolsab, JMeter, httperf, Siege
  14. 14. Debugging / performance tools xDebug, *cachegrind, MacGDBp Wireshark
  15. 15. Modules
  16. 16. Devel module dpm(), dvm(), dpr(), dvr(), kpr(),dargs(), dd(), ddebug_backtrace(), db_queryd() node access blocks
  17. 17. from https://ratatosk.backpackit.com/pub/
  18. 18. from https://ratatosk.backpackit.com/pub/
  19. 19. from https://ratatosk.backpackit.com/pub/
  20. 20. Drupal for FirebugFirefox and Chrome extension firep()
  21. 21. from https://ratatosk.backpackit.com/pub/
  22. 22. Browser toolsFirebug, DOM inspector, HTML validator, YSlow
  23. 23. Journal
  24. 24. Tips
  25. 25. configurationini_set() (index.php, ...) .htaccess php.ini
  26. 26. maximum reporting level php.ini (E_ALL) display all errorsdatabase logging and syslog modules
  27. 27. debug_backtrace()
  28. 28. check your limits execution time limit memory limit upload limit post limitphp (apc, suhosin), mysql
  29. 29. be universal no short php tagscoding standards (vars and refs) standard sql test in multiple browsers php 5.2 (yet) use Drupal and the API
  30. 30. use tools (IDE) that helps you syntax highlight function reference safer refactoring debugging code completion
  31. 31. read code
  32. 32. er
  33. 33. quick checkssite and module settings permissions environment variables clear cache ...
  34. 34. quick checkssite and module settings permissions environment variables clear cache ...
  35. 35. disable modules 1 by 1
  36. 36. try it on a clean Drupal install
  37. 37. sql hacks disable modulesfix encoding problemsset weight of a module clear cache
  38. 38. turn off cachingDrupal caches, JS, CSS,memcache, APC, proxy
  39. 39. go harddump variables debug
  40. 40. ask googleirc (#drupal-contribute) forum issue queue Drupal events ;)
  41. 41. contribute back

×