About › Support › Installing Church Admin › installation
- This topic is empty.
-
AuthorPosts
-
10th October 2013 at 7:10 pm #2498
brianchilders
MemberI am using Godaddy as my hosting provider.
I have version .572 installed of the software
I am using PHP Version 5.3.24Installation of the plug in works correctly.
However, when I go to activate the plug in I get the following errors..
Warning: mkdir() [function.mkdir]: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 139
Warning: chmod() [function.chmod]: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 140
Warning: fopen(/[directory removed for security purposes]/www/wp-content/uploads/sermons/index.php) [function.fopen]: failed to open stream: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 143
Warning: fwrite() expects parameter 1 to be resource, boolean given in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 144
Warning: fclose() expects parameter 1 to be resource, boolean given in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 145
Warning: mkdir() [function.mkdir]: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 150
Warning: chmod() [function.chmod]: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 151
Warning: fopen(/[directory removed for security purposes]/www/wp-content/uploads/church-admin-cache/index.php) [function.fopen]: failed to open stream: No such file or directory in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 154
Warning: fwrite() expects parameter 1 to be resource, boolean given in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 155
Warning: fclose() expects parameter 1 to be resource, boolean given in /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php on line 156
Warning: Cannot modify header information – headers already sent by (output started at /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php:139) in /[directory removed for security purposes]/www/wp-includes/option.php on line 571
Warning: Cannot modify header information – headers already sent by (output started at /[directory removed for security purposes]/www/wp-content/plugins/church-admin/index.php:139) in /[directory removed for security purposes]/www/wp-includes/option.php on line 572
Thoughts on how I could tame these problems?
Cheers!
-brian
10th October 2013 at 7:35 pm #3142Andy Moyle
KeymasterDon’t you just love GoDaddy!
You need to create a directory called church-admin-cache in the plugins directory
/[directory removed for security purposes]/www/wp-content/plugins/church-admin-cache with 0755 permissions
and then another directory called sermons in the uploads directory
/[directory removed for security purposes]/www/wp-content/uploads/sermons with 0755Those will be places to store emails and mp3s – whether or not you use those parts of the plugin, the directories need to be there!
Or find a less locked down hosting company!
Hope that helps
11th October 2013 at 5:33 pm #3143brianchilders
MemberMr. Moyle,
Thanks so much for your help and giving me a starting point to look.
I found that once I created the “uploads” folder it was able to create the sermons and the church-admin-cache folder properly underneath the uploads folder. The church-admin-cache seems to be stored in uploads and not the plugins folder as specified.
That being said – may I propose the following in index.php ?
// Proposed change to handle people installing that don’t have an uploads
// folder in WP
define(‘CHURCH_ADMIN_UPLOADS’,WP_CONTENT_URL.’/uploads/’);
if(!is_dir(CHURCH_ADMIN_UPLOADS))
{
$old = umask(0);
mkdir(CHURCH_ADMIN_UPLOADS);
chmod(CHURCH_ADMIN_UPLOADS, 0755);
umask($old);
$index=”“;
$fp = fopen(CHURCH_ADMIN_UPLOADS.’index.php’, ‘w’);
fwrite($fp, $index);
fclose($fp);
}Now that it’s working, I’m looking to see how it can be used for our youth group. Thanks for giving us an opportunity to evaluate the software!
-brian
11th October 2013 at 9:41 pm #3144Andy Moyle
KeymasterThe uploads folder is created by WordPress when you have added any media like an image to a page or post! But I’ll add a check it exists and create it if not, like you suggest.
-
AuthorPosts
- You must be logged in to reply to this topic.