Drupal troubleshooting

  • 2,102 views
Uploaded on

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

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

More in: Technology , Design
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Thanks for sharing.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
2,102
On Slideshare
0
From Embeds
0
Number of Embeds
5

Actions

Shares
Downloads
8
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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