Title: Trouble with Theme
Last modified: August 20, 2016

---

# Trouble with Theme

 *  [dnorkiew](https://wordpress.org/support/users/dnorkiew/)
 * (@dnorkiew)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-theme/)
 * I get this error message. How do I find line 978 or fix this?
 * Warning: scandir(/home/gpmdeveloper/hank-konigsberg/wp-content/themes/konig/log)[
   function.scandir]: failed to open dir: Permission denied in /home/gpmdeveloper/
   hank-konigsberg/wp-includes/class-wp-theme.php on line 978
 * Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/
   gpmdeveloper/hank-konigsberg/wp-includes/class-wp-theme.php on line 978
 * Warning: Invalid argument supplied for foreach() in /home/gpmdeveloper/hank-konigsberg/
   wp-includes/class-wp-theme.php on line 981

Viewing 1 replies (of 1 total)

 *  [360](https://wordpress.org/support/users/360gradfoto/)
 * (@360gradfoto)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-theme/#post-3208269)
 * I think the scandir requests is fired from the functions.php calling the class-
   wp-theme.php
    Please do not edit core files.
 * random guess: make this log folder writeable (chmod 777) wp-content/themes/konig/
   log

Viewing 1 replies (of 1 total)

The topic ‘Trouble with Theme’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [scandir()](https://wordpress.org/support/topic-tag/scandir/)

 * 1 reply
 * 2 participants
 * Last reply from: [360](https://wordpress.org/support/users/360gradfoto/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-theme/#post-3208269)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
