View Full Version : getting foreach errors
AN-net
03-01-2005, 01:15 PM
well i just upgraded my dev board to 3.0.7 but for some reason i am getting foreach errors on the top of my custom news index page(just the index). i havent edited the functions.php file at all. the only file i have edited that might affect it is the init.php file but that file edit i did in there worke don 3.0.3
the error is on like 2997 which is inside the convert_bits_to_array() function
Xenon
03-01-2005, 01:39 PM
sounds like an array is not initialized correctly.
sorry, i cannot say more without more detailed infos :)
AN-net
03-01-2005, 01:42 PM
well here is the code i added to init.php
$_BITFIELD['usergroup']['newspermissions']= array(
'canviewnews' => 1,
'canpostnews' => 2,
'caneditnews' => 4,
'candeletenews' => 8,
'canmakediscussion' => 16,
'candeletediscussion' => 32,
'cansearchnews' => 64,
'canuserelevant' => 128
);
i uploaded a clean init.php and i still get those errors....
Marco van Herwaarden
03-01-2005, 01:46 PM
Sound like you missed an edit on the permission bitfields in the init.
Edit just see your reply. Are you sure those are the only permission edit you have done before?
AN-net
03-01-2005, 01:48 PM
oops nvm, i left an extra ',' on the end of $globaltemplates variable:D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.