vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [Fix How to] PHP 5 and array_merge errors (https://vborg.vbsupport.ru/showthread.php?t=125302)

gbox master 04-28-2008 10:19 PM

lucky me i am not the only noob with this problem :D

does anybody knows what i can do with this error

Code:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /index.php(537) : eval()'d code on line 23
i see that you guys have #1 but i have #2
so shoot me i dont know what this meens
give me a hammer and i will build you a house ;)
but php is not my thing :D

kafi 05-29-2008 09:56 AM

Thank you for this thread, it helped me so much:

originally I have got erorr on member.php

I found that the error was here:

fetch_userinfo plugin vBShout [Template Cache]

original
PHP Code:

if (VB_AREA == "Forum")
{
    global 
$globaltemplates;

    
$globaltemplates  array_merge($globaltemplates, array('forumhome_vbshout'));


changed to

PHP Code:

if (VB_AREA == "Forum")
{
    global 
$globaltemplates;

    
$globaltemplates  array_merge((array)$globaltemplates, array('forumhome_vbshout'));


Everything works fine now .-)

Rocc 06-24-2008 09:09 PM

Fatal error: Call to a member function query_write() on a non-object in /home/iwarezne/public_html/forums/includes/functions.php(1385) : eval()'d code on line 13
Anyone know howto fix it/

basskiller 07-29-2008 02:25 PM

Quote:

Originally Posted by kafi (Post 1534892)
Thank you for this thread, it helped me so much:

originally I have got erorr on member.php

I found that the error was here:

fetch_userinfo plugin vBShout [Template Cache]

original
PHP Code:

if (VB_AREA == "Forum")
{
    global 
$globaltemplates;

    
$globaltemplates  array_merge($globaltemplates, array('forumhome_vbshout'));


changed to

PHP Code:

if (VB_AREA == "Forum")
{
    global 
$globaltemplates;

    
$globaltemplates  array_merge((array)$globaltemplates, array('forumhome_vbshout'));


Everything works fine now .-)

thanks.. this fixed mine as well

danward 10-05-2008 01:17 PM

Really helpful thread big thanks! :):up:

McCarron 11-17-2008 07:53 PM

Quote:

Originally Posted by basskiller (Post 1586676)
thanks.. this fixed mine as well

This also fixed mine, thanks much!

daz1967 02-11-2009 07:55 PM

Quote:

Originally Posted by Brad (Post 1453856)
If you're having problems finding the code throwing the error you probably shouldn't be poking around in the files in the first place. At the very least you shouldn't be acting all high and mighty and calling my thread "shit".

Try asking nicely for help, and add a please, and include full error messages and I'll try to help you.

Yes I'm an ass hole, but only when provoked. I'm pretty friendly if you come at me with respect.



You have an error in one of your plug-ins at the hook located at line 1259 of /includes/functions.php.

Open functions.php and locate that line, on it you'll find a line of code similar to this one:

PHP Code:

($hook vBulletinHook::fetch_hook('hook_name')) ? eval($hook) : false

In the above example "hook_name" is the name of the hook location we need to find.

Once you have the name of the hook location go into the plug-in manager in the admincp and find all plug-ins using that location. The code throwing the error is located in one of them.

Thank you Brad, the info you posted help me sort a problem I had put up with for a while

casper04 03-24-2009 10:49 AM

When i restore my database, I got this problem:
I cannot login the Admincp and it informed
Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 3
My VB is 3.6.8
Can you help me?

shiola 01-17-2010 03:32 PM

I've got this error since my server got upgraded to PHP5.

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/functions.php(1385) : eval()'d code on line 3
I've read through all these answers but still have no idea what I need to fix or how to fix it. Line 3 of functions.php is || ####

I've searched functions.php for hook locations but there's quite a few, so how do I know which one is the error?

I've stuck (array) into every occurance of array_merge on functions.php but this did nothing.

Any ideas?

shiola 01-20-2010 10:16 PM

bump


All times are GMT. The time now is 11:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02206 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete