Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 01-25-2005, 07:12 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default (SOLVED) HELP Problems, Problems, Problems!!!

Hi all,

Well Im stuck and its doing my head in slowly. I have installed some hacks but for some reason I got errors from somewhere, so I removed the hacks and the errors are still there.

I have the arcade hack and vBadvanced CMPS (Content Management & Portal System) installed. Now when I go into the arcade or visit the front page O get errors at the top of the page.

IE:

Arcade....

When I visit the arcade it works but dont save the scores and the errors at the top of the page is:

Quote:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 365

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2183

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2188
Now, when I use the vBadvanced CMPS front page it dont load at all apart from my skin and the errors at the top of the page is:

Quote:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/techtro/public_html/forums/global.php on line 26

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/techtro/public_html/forums/global.php on line 41

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/techtro/public_html/forums/global.php on line 48

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 365

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2183

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2188
Does anyone have a clue whats going on. I have been through the last hacks I installed, checked the code and removed hacks just in case it was those, but the errors are still there.

HELP :ermm:

Realist
Reply With Quote
  #2  
Old 01-25-2005, 07:14 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You modified the files incorrectly.
Reload the original files, then carefully re-apply the modifications from the Arcade hack and CMPS.
Reply With Quote
  #3  
Old 01-25-2005, 07:19 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway of finding the error without doing that. I have other hacks installed as well that may need these files.
Reply With Quote
  #4  
Old 01-25-2005, 07:31 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you got PHP knowledge - yes.
Look at the lines that generate the errors and find out why the arrays are unset.
Reply With Quote
  #5  
Old 01-26-2005, 10:52 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the info M8 but I dont have PHP knowledge, this is why Im asking for help you see
Reply With Quote
  #6  
Old 01-26-2005, 01:06 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you removed the hacks i suggest just using virgin files
Reply With Quote
  #7  
Old 01-26-2005, 01:12 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fear we can't help you much more as we don't know what's in your PHP files.
The easiest way would be to use original files.

Or send me a PM with ACP and FTP Login so I can take a look at it.
Reply With Quote
  #8  
Old 01-26-2005, 01:12 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem has been solved and it was easy

Read THIS it will come in handy for others.

Laters
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04270 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete