MyBB Community Forums

Full Version: Reply to user post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
At the Bottom of User Post there are button Edit, Delete, Reply, Quote..

When I click on reply it show HTTP ERROR 500...
What to do now?
Thank you.
Check your apache / nginx / php log, you may have a server error.
Did you made change in newreply.php or added a plugin which modify the reply functionnality ?
Ya...one plugin Lock content by Omar G.
Try disabling it to ensure it's the faulty one.
And check your server logs to see which error (probably a syntax error) is in the plugin
It is not due to Lock content by Omar G.
I have created 3 subdomains.
Mybb1806 with PHP 7.1
Mybb1822 with PHP 7.1
Mybb1822 with PHP 7.3

On all fresh copy, I make a thread and click on reply in the user post. (https://xxxxxxxx.com/mybb180671/newreply...&replyto=1)

On Mybb1806 with PHP 7.1 have above error. So it is due to Mybb1806 interaction with PHP 7.1 which I recently upgraded from PHP 5.6 to 7.1.

On Mybb1822 with PHP 7.1 & Mybb 1822 with PHP 7.3, It works fine.

So, if any have a solution to work reply on user post in Mybb1806 with PHP 7.1... I can not upgrade Mybb1806 with PHP 7.1 to latest Mybb1822 with PHP 7.1/7.3...

Hope you guys understand.
Thank you.
We can help you... but give us precisions about the error. Look in your logfiles.
this is error.

Stack trace:
#0 {main}
  thrown in /home1/xxxxxx/public_html/mybb180671/newreply.php on line 800
[03-Jun-2020 13:23:33 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /home1/xxxxxx/public_html/mybb180671/newreply.php:800
Stack trace:
#0 {main}
  thrown in /home1/xxxxxxx/public_html/mybb180671/newreply.php on line 800
[03-Jun-2020 13:25:08 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /home1/xxxxxxxx/public_html/mybb180671/newreply.php:800
Stack trace:
#0 {main}
  thrown in /home1/xxxxxx/public_html/mybb180671/newreply.php on line 800
Ok, I think you can simply correct that by editing newreply.php @line 277:
Original
$reply_errors = $quoted_ids = '';

New
$reply_errors = '';
$quoted_ids = [];
Thank you Crazycat...It work. Repped.