"internal server error"

wp-content/themes/xxxxxx/inc/custom-functions.php on line 529

It's obvious that error is in custom-functions.php line 529 where you might be using file system function outside of admin, you can fix this by includin core admin file.php file like this.

require_once(ABSPATH . 'wp-admin/includes/file.php');
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.