MyBB Community Forums
inc/functions.php line-7187 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: inc/functions.php line-7187 (/thread-166020.html)

Pages: 1 2


inc/functions.php line-7187 - cjmwid - 2015-01-23

So after fixing the attachment CHMOD settings. i have came come to 185+ emails saying the exact same thing...

Quote:Type: 2

File: inc/functions.php (Line no. 7187)
Message
fread() expects parameter 1 to be resource, boolean given
Nothing has been changed. All i did was set the uploads dir to 777



RE: inc/functions.php line-7187 - .m. - 2015-01-23

see replies here


RE: inc/functions.php line-7187 - cjmwid - 2015-01-23

None of those are helping...

Ive tried the following.

Rebuild & Reload all cache
Rebuild Attachment Thumbnails

Still getting the email spams that are up to like 400


RE: inc/functions.php line-7187 - .m. - 2015-01-23

^ does your forum has any plugins which affect attachments / uploaded files ?
if so, can you temporarily disable such plugins and check if the issue persists


RE: inc/functions.php line-7187 - cjmwid - 2015-01-23

Well the problems not with attachment.php but with functions.php and no i dont

Edit: Disabled all plugins on my board, still getting the error


RE: inc/functions.php line-7187 - .m. - 2015-01-23

^ the error is related to uploaded files (attachments, avatars, plugin files ..)
basically it looks like opened process at server is not closing in correct manner.


RE: inc/functions.php line-7187 - cjmwid - 2015-01-23

So should i ask my provider to kill all the tasks for my website? or will suspending my hosting account via WHM and re-enabling it do the samthing?


RE: inc/functions.php line-7187 - .m. - 2015-01-23

^ you can try restarting the server.


RE: inc/functions.php line-7187 - cjmwid - 2015-01-23

Hmm ill put in the request but its a shared box so im not sure how far i will get. Suspending the hosting account and unsuspending it didnt work.


RE: inc/functions.php line-7187 - .m. - 2015-01-23

I am not sure that warnings are caused by setting 777 permission for uploads directory.
if that is not allowed (should not be the case) it could be a simple thing to try 755