Bug Major Problem: Can't view Thread anymore!

Status
Not open for further replies.

computer22

Customer
Hello,

we have a Major problem.
When attempting to view this thread:
http://forum.<URL>/showthread.php?90

We get those two errors:
Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]\dbtech\credits\credits_core.php on line 678

vBulletin Message
Unable to add cookies, header already sent.
File: C:\inetpub\vhosts\forum.gmod.biz\httpdocs\includes\class_core.php
Line: 5417

Please give us assitance as soon as possible! We can not reproduce that error!
 
This appears to happen when someone uses a CHARGE tag in their signature.

I've uploaded a potential hotfix, please re-download and let me know if it's working as intended now.
 
Ran into this before, this is the fix:

in dbtech/credits/credits_core.php find

PHP:
if ($post['chargecontent'])

replace with

PHP:
if ($post['chargecontent'] AND is_array($content = unserialize($post['chargecontent'])))

then find

PHP:
$charge = array_keys(unserialize($post['chargecontent']));

replace with

PHP:
$charge = array_keys($content);//sometime wasnt array
 
Status
Not open for further replies.

Similar threads

Legacy vBCredits II Deluxe

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
845
Customer rating
0.00 star(s) 0 ratings
Top