MyBB Community Forums

Full Version: Blank page when posting thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I've been searching for a solution for a while, but I can't seem to get my head around this problem. It is a fairly new problem from the last couple of days. I haven't done any maintenance the last couple of days so it's not due to any of my tinkering.

When clicking on New Thread or Post Reply I see a blank page.

https://gear-freak.dk/forum/newthread.php?fid=4

user: test
password: testuser1234

I run MyBB 1.8.19 with no plugins (I deactivated all plugins yesterday to find a solution).

EDIT: And now I've just received an error from the system.


Quote:Your copy of MyBB running on Gear-freak (https://gear-freak.dk/forum) has experienced an error. Details of the error include:
---
Type: 2
File: showthread.php (Line no. 907)
Message
count(): Parameter must be an array or an object that implements Countable
And this is the error after enabling PHP errors

Quote:Fatal error: Uncaught Error: Call to undefined function return_bytes() in /customers/c/e/9/gear-freak.dk/httpd.www/forum/newthread.php:1109 Stack trace: #0 {main} thrown in /customers/c/e/9/gear-freak.dk/httpd.www/forum/newthread.php on line 1109
Why does your forum display like that ?

Your cookie settings are wrong. Click on the link in my signature to fix.
(2018-10-10, 05:58 AM)kraen Wrote: [ -> ]Hi

I've been searching for a solution for a while, but I can't seem to get my head around this problem. It is a fairly new problem from the last couple of days. I haven't done any maintenance the last couple of days so it's not due to any of my tinkering.

When clicking on New Thread or Post Reply I see a blank page.

https://gear-freak.dk/forum/newthread.php?fid=4

user: test
password: testuser1234

I run MyBB 1.8.19 with no plugins (I deactivated all plugins yesterday to find a solution).

EDIT: And now I've just received an error from the system.


Quote:Your copy of MyBB running on Gear-freak (https://gear-freak.dk/forum) has experienced an error. Details of the error include:
---
Type: 2
File: showthread.php (Line no. 907)
Message
count(): Parameter must be an array or an object that implements Countable
And this is the error after enabling PHP errors

Quote:Fatal error: Uncaught Error: Call to undefined function return_bytes() in /customers/c/e/9/gear-freak.dk/httpd.www/forum/newthread.php:1109 Stack trace: #0 {main} thrown in /customers/c/e/9/gear-freak.dk/httpd.www/forum/newthread.php on line 1109

I think you need to double check your website settings.

I saw this "httpd.www/forum/newthread" in the error and that reminds me of incorrect board settings.

Check both screenshots below and compare those with your AdminCP settings. Both screenshots are from Site Details settings.

[Image: b2c76915926fbe866080da6970620c62.png]

NOTICE! In the Cookie Domain, it must start with a '.' (dot).

[Image: 8e160529a778e2fb4557026d579976a1.png]
It was the functions_post.php file that was the error. Thanks a lot. And I will have a look at the cookie settings.
Update on this since I'm on mobile at the moment. Tried to make a thread and got an error.
Quote:MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
It seems that Tapatalk is doing some funny stuff. I've set my PHP version for 7.1 and now it seems to work.