View Full Version : i pray that someone can help
mystic10
01-11-2008, 04:40 PM
1st problem
well i am using vbshout that is in all pages..when i disable this i dont get the error but when i enable it everything works but with this error...problem is that i dont want to disable it as i love the vbshout and i dont know what to do this is the error i get
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
what i can i put in line 5 that will stop the error
currently running: 3.6.8 pl2 version
2nd problem:this is more important than the first
i have a database error this is what it give and i dont know how i can fix it
MySQL Error : Unknown column 'Array' in 'where clause' Error Number : 1054 Date : Friday, January 11th 2008 @ 09:36:58 AM Script : http://www.yah00-city.com/ Referrer : IP Address : 121.246.209.2 Username : Unregistered Classname : vB_Database
snakes1100
01-11-2008, 05:38 PM
Please post the complete error msg your get for the database error.
mystic10
01-11-2008, 05:43 PM
sir this is the complete error msg that i got...i talked to my host when i got the database error and they showed me this as the error...i can't enter my site due to the database error...
Antivirus
01-11-2008, 06:20 PM
The array merge error is most likely due to your hosting company recently upgrading to php5 and one of the mods you've installed not being compatible. Search the forums here for array_merge error and you'll see what I'm talking about.
mystic10
01-11-2008, 06:30 PM
i know the hack thats causing the problem its vbshout on all pages as when i even use the thanks hack it says the same thing..but is there something i can do that will make this error go aways...i have posted it everywhere including where i downloaded the hacks from but no reply...maybe u can help..
Opserty
01-11-2008, 06:34 PM
If your still having problems disabling your hacks follow this: https://vborg.vbsupport.ru/showpost.php?p=1417597&postcount=2
You will just have to wait till the hacks are fixed.
mystic10
01-11-2008, 07:15 PM
no sir i am not having problems disabling hack i just need a solution on what can i add on line 5 that the error just goes away...i want the hack just not the error..
Lynne
01-11-2008, 07:53 PM
There was a fix mentioned - search for "array_merge" on this site and your will get threads about this problem (I'd limit it to thread title). Like this thread:
[Fix How to] PHP 5 and array_merge errors (https://vborg.vbsupport.ru/showthread.php?t=125302&highlight=array_merge)
There are a few others but you can do the search and see them yourself.
mystic10
01-11-2008, 09:23 PM
i checked it out and its talking about index.php and i need help in functions.php....thanks for taking the time lynne really appreciated it..but maybe this can help u help me
error: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
in functions.php line 1259: ($hook = vBulletinHook::fetch_hook('fetch_userinfo')) ? eval($hook) : false;
what would i need to chage
Lynne
01-11-2008, 09:50 PM
It isn't just dealing with the index page. It is dealing with any instance of array_merge. That line in functions is not the problem, it is the plugin you have that is using the hook "fetch_userinfo". In whatever plugin is using that hook that is causing the error is a line using array_merge, you need to modify that line in that plugin.
Akademiks
01-11-2008, 09:51 PM
hmmmm go to cpanel, then database and click on repair database you can give it a try it might work ;)
mystic10
01-11-2008, 09:56 PM
ohhhhhhhhh thanks lynned and akademiks...now it makes sense...its the vbshout thats causing the problem i will give it a shot as soon as my second problem goes way..i have data base error so i cant get in still trying to get that fix...but thanks so much very kind of u all
i will try to find that line if i am lost than i will paste it to see if someone can help me thanks again...
Opserty
01-11-2008, 10:45 PM
Your DB problem is related to your first problem. Fix your first problem and it should solve the DB error.
Lynne
01-11-2008, 10:49 PM
I forgot about the database error. For future reference, when you get a database error, if you View Page Source on the error page, the full error is there. In this case I just got:
Database error in vBulletin 3.6.8:
Invalid SQL:
SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount,
thread.lastposter, thread.dateline, thread.postusername, thread.postuserid,
IF(views<=replycount, replycount+1, views) AS views, thread.visible, thread.open,
user.username, user.userid, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (user.username = thread.lastposter)
WHERE NOT ISNULL(thread.threadid) AND thread.visible = '1' AND thread.open != '10'
AND thread.forumid NOT IN (Array)
ORDER BY lastpost DESC
LIMIT 0, 25;
MySQL Error : Unknown column 'Array' in 'where clause'
Error Number : 1054
Date : Friday, January 11th 2008 @ 04:43:58 PM
Script : http://www.yah00-city.com/
Referrer : https://vborg.vbsupport.ru/showthread.php?p=1419830
IP Address : xx.xx.xx.xx
Username : Unregistered
Classname : vB_Database
I think you need to turn off the hacks and fix the original array_merge problem and then see if this database error goes away.
ftp to your site and go to includes/config.php and add this line somewhere in the body (right after the "<?php" line is fine):
define('DISABLE_HOOKS', true);
and save the file and see if you can get onto your site now. That line will disable your plugins. After you fix the array_merge error, comment it out and see if the database error is still there.
mystic10
01-12-2008, 06:25 PM
Yup I Did That Thanks So Much For Everything...all Your Help
mystic10
01-14-2008, 03:52 PM
this is what it shows for plugin what do i change:
hook: fetch inferno:
the error: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
--------------------------------------------
below plugin php code: what do i change
if (VB_AREA == "Forum")
{
global $globaltemplates;
$globaltemplates = array_merge($globaltemplates, array('forumhome_vbshout'));
}
Marco van Herwaarden
01-15-2008, 08:29 AM
If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.
Dismounted
01-15-2008, 08:42 AM
Change that code to:
if (VB_AREA == 'Forum')
{
global $globaltemplates;
if (!is_array($globaltemplates))
{
$globaltemplates = array();
}
$globaltemplates = array_merge($globaltemplates, array('forumhome_vbshout'));
}
mystic10
01-15-2008, 04:34 PM
thanks thanks thanks thanks thanks..you guys are the best...i cant thank you enough for your help and kindess..may god bless u all
viper007
02-11-2008, 08:27 AM
am unable to login my admin panel plzzz help meee frdss............... urget plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
mystic10
02-11-2008, 04:25 PM
config.php and add this line right under <?php
define('DISABLE_HOOKS', true);
its propabaly because of one of the hacks u instaled..when u do this u will disable all your hacks than u can enter ur admin panel and fix the problem
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.