Issue Details (XML | Word | Printable)

Key: MDL-18417
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Škoda (skodak)
Reporter: mert gokkaya
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Unknown column 'Array' in 'where clause' under /forum/index.php

Created: 02/Mar/09 01:35 PM   Updated: 27/Mar/09 06:15 AM
Component/s: Forum
Affects Version/s: 2.0
Fix Version/s: 2.0

Environment: Suse 11.1 Apache 2.0 Mysql 5, php 5.2.8

Database: MySQL
URL: mod/forum/discuss.php?
Participants: mert gokkaya and Petr Škoda (skodak)
Security Level: None
Resolved date: 27/Mar/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
Unknown column 'Array' in 'where clause' thrown, when a student clicks forum link on navigation bar.

Full error result;

Unknown column 'Array' in 'where clause'

SELECT COUNT(d.id) FROM mdl_forum_discussions d WHERE d.groupid IN (Array) AND d.forum = ? LIMIT 0, 1
[array ( 0 => '11', )]

  • line 305 of lib/dml/moodle_database.php: dml_read_exception thrown
  • line 558 of lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1125 of lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 2381 of mod/forum/lib.php: call to moodle_database->get_field_sql()
  • line 162 of mod/forum/index.php: call to forum_count_discussions()

to recreate the event,
create a forum, post a discussion, login as a student go to forum, click on topic and click forum on navigation bar.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda (skodak) added a comment - 27/Mar/09 06:15 AM
fixed, thanks