MyBB Community Forums

Full Version: PHP errors on index page when NOT logged in.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
If you are not lgged in on my site you get this error showing at the top of the page:

Warning [2] array_merge() [function.array-merge]: Argument #1 is not an array - Line: 371 - File: inc/class_session.php PHP 5.2.10 (Linux)

File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/class_session.php 	371 	array_merge
/inc/class_session.php 	98 	session->load_guest
/global.php 	56 	session->init
/index.php 	18 	require_once

here: http://gfx-core.com

one of my admins noticed it today. Any ideas?
anyone?
Never seen this before, but what plugins do you have installed?
Look in phpMyAdmin and make sure your usergroup IDs are correct. The default groups should be like this:

Guests - 1
Registered - 2
Supermods - 3
Admins - 4
Awaiting Activation - 5
Mods - 6
Banned - 7
For some reason I dont have a guest group???? What details/sql do i have to use to get it back? Thanks Matt Smile
How have you managed that Toungue

Run this:
INSERT INTO `mybb_usergroups` VALUES
(1, 1, 'Guests', 'The default group that all visitors are assigned to unless they''re logged in.', '{username}', 'Unregistered', 0, '', '', 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 5, 0, 5, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0);

Sorry it stretches the page, make sure you get all of it.
Thanks Matt Smile

I amaze myself almost everyday on how i do things without even noticing lol. I have absolutely no clue how that happened XD
OK, it seems the error is back Sad

http://gfx-core.com
Has performing the previous fix not worked?
No, I added the Guest usergroup into the database manually, i just checked now and the quest group is fine Sad
Pages: 1 2