Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 5 Years, 1 Month ago Receiving Error Message when posting
#5
Solved: 5 Years, 1 Month ago
That took care of the PHP errors on top of the page but I still get the following:

Please correct the following errors before continuing:

The file upload failed. Please choose a valid file and try again. Error details: PHP returned error code: Array. Please contact your forum administrator with this error.

(09-09-2014, 09:44 PM)Destroy666 Wrote: Hmmmm.. What if you change line 175, so:
$query = $db->simple_select("attachments", "aid", "filename='".$db->escape_string($_FILES['attachment']['name'])."' AND {$attachwhere}");
to:
$query = $db->simple_select("attachments", "aid", "filename='".$db->escape_string((string)$_FILES['attachment']['name'])."' AND {$attachwhere}");
?

Destroy666,

Thanks for the help. I solved the problem with the PHP return code. Just in case anyone was wondering, I had maximum attachments installed and modded it to accept MyBB 1.8 (well at least I thought). Even after deactivating it, the error showed. I had to uninstall in order to be able to post.

Thanks for the help!!
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Receiving Error Message when posting - by SteelCurtain - 09-09-2014, 11:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)