vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   getting foreach errors (https://vborg.vbsupport.ru/showthread.php?t=77252)

AN-net 03-01-2005 01:15 PM

getting foreach errors
 
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
PHP Code:

$_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


All times are GMT. The time now is 04:38 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.01018 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete