MyBB Community Forums

Full Version: [F] [Bug]Attachments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I click at the Attachments section in the acp of the mybb 1.4 beta forum, I get the following:

Parse error: syntax error, unexpected '=', expecting ')' in /home/shkarkof/public_html/mybb_140_beta_1/admin/modules/forum/attachments.php on line 844
Which version of PHP are you running?
(2008-06-27, 07:22 PM)Tikitiki Wrote: [ -> ]Which version of PHP are you running?

I am running PHP Version 4.4.8
Try this: In admin/modules/forums/attachments.php find:

build_attachment_row($attachment, $table, $form);

replace with:

build_attachment_row($attachment, $table, true);


find:

function build_attachment_row($attachment, &$table, &$form=null)
{
	global $mybb;

replace with:

function build_attachment_row($attachment, &$table, $use_form=false)
{
	global $mybb, $form;


find:

if(is_object($form))

replace with:

if($use_form == true && is_object($form))

Thanks,
Ryan
The above solution fixed the error Ryan. Thank you
it works fine (without doing the above) on my installation of 1.4 but i am running php 5.2.5
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
(2008-06-28, 02:04 AM)Tikitiki Wrote: [ -> ]Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

And thank you for honoring my request to be a beta tester.

For the rest everything seems fine. I am very impressed with mybb 1.4.