MyBB Community Forums

Full Version: Browsing error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get an error whenever I browse for plugins or themes:

I get this error when browsing themes:

Warning [2] array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object - Line: 181 - File: admin/modules/style/themes.php PHP 5.2.17 (Linux)

Any help? Line 181 on themes.php is:

if(!array_key_exists("results", $tree))

The one on plugins is similar.

Photo: http://prntscr.com/1u6n1w
are you using latest available version of MyBB (1.6.10) ?
./admin/modules/style/themes.php, line 165:

$contents = fetch_remote_file("http://mods.mybb.com/xmlbrowse.php?type=theme&version={$major_version_code}{$keywords}{$url_page}", $post_data);

After that, add:

var_dump($contents);

Then try it again, what does it display? Just need to see what it's actually returning.
I am using the latest version .m.

It says:
string(7044) "
Please enable cookies.

Then it has a captcha then further down it says:

http://prntscr.com/1u6yev

(2013-09-29, 01:39 PM)Matt. Wrote: [ -> ]./admin/modules/style/themes.php, line 165:

$contents = fetch_remote_file("http://mods.mybb.com/xmlbrowse.php?type=theme&version={$major_version_code}{$keywords}{$url_page}", $post_data);

After that, add:

var_dump($contents);

Then try it again, what does it display? Just need to see what it's actually returning.

Any help?

Still looking for some help.