MyBB Community Forums

Full Version: Getting errors when installing a plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello sir,

Recently i downloaded mod_email_new_member1.1 plugin and i uploaded into inc folder. When i click Activate / Deactivate getting following errors.


Warning: fopen(./inc/settings.php): failed to open stream: No such file or directory in /home/postread/public_html/forums/inc/plugins/email_new_member.php on line 114

Warning: fwrite(): supplied argument is not a valid stream resource in /home/postread/public_html/forums/inc/plugins/email_new_member.php on line 115

Warning: fclose(): supplied argument is not a valid stream resource in /home/postread/public_html/forums/inc/plugins/email_new_member.php on line 116

Postnread.com Control Panel
Plugin Manager
Did you upload it into your inc folder or your inc/plugins folder? Doesn't seem it sees that file where it needs to be! Big Grin
What is inc/settings.php's chmod?

[Wiki: CHMOD_Files] (Broken link, head over to docs.mybb.com instead)
[Wiki: HowTo_Chmod] (Broken link, head over to docs.mybb.com instead)
Hello,

Sorry... I uploaded file into /inc/plugins folder. 666 is the chmod for settings.php file....
Hello Sir,

U change chmod for settings.php to 777 then it works fine. I dont know is there any danger for settings.php, because i set chmod 777 for settings.php.
Well, my settings.php has always been 777. I think that's what it's supposed to be!
Try this: Open the plugin file and search for:
$file = fopen("./inc/settings.php", "w");
Replace with:
$file = fopen(MYBB_ROOT."inc/settings.php", "w");