« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: opendir(archives/pdf) [function.opendir]: failed to open dir: No such file or directory 
  Error type/ Nr.: Warning - 2 
  File: /homepages/1/d265849391/htdocs/assets/snippets/gallery/pdf.php 
  Line: 19 
  Line 19 source: $dimg = opendir($path_to_galleries);  
 
Parser timing
  MySQL: 0.0331 s(3 Requests)
  PHP: 0.0423 s 
  Total: 0.0754 s