MyBB Community Forums

Full Version: Errors after upgrade
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I upgraded my forum http://forum.funchit.com from 1.4.9 to 1.4.10
I forget deactivating mods first. after upgrade, i deactivated all mods and activated again.

now i am receiving lots of same emails of this error
Quote:Your copy of MyBB running on FunChit Emails (http://funchit.com) has experienced an error. Details of the error include:
---
Type: 2
File: asoi.php (Line no. 23)
Message
in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

and i have also installed ads after post mod and it's now showing double code after post. my adsense ad is showing two times but the code i put is for one ad.
http://forum.funchit.com/showthread.php?tid=259

please help me in fixing
Moved to plugin support.

You didn't really need to deactivate plugins, especially after you'd already upgraded... the line of the file causing the problem is this:

if(in_array($stats, $mybb->input['asoi']))

The upgrade wouldn't have anything to do with this, all the upgrade did is fix bugs and revert a few templates.

I can't see how that code works at all as the arguments are the wrong way round, change it to this:

if(in_array($mybb->input['asoi'], $stats))

As for the double ads, make sure there is only one occurrence of {$post['adsaf']} in your postbit and postbit_classic templates.
ok, i am done with ads after one post mod.

know please tell me where to replace this code and how do you know it's wrong?


edit:
checked my first post
it's File: asoi.php
replaced the code. how would i know everything is fine? i should wait for a error email?

and how you know that code was wrong?
on latest post, threads etc mod, you can see on the header of my website giving error
Direct initialization of this file is not allowed.
Your site loads fine for me. I don't see an error in the header.
Disable the Advanced Stats on Index/Portal plugin.
(2009-12-05, 07:52 AM)KuJoe Wrote: [ -> ]Disable the Advanced Stats on Index/Portal plugin.

I removed that plugin but don't know it's code completely removed or not.

my website is working fine now