vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Wrong Datatype Error - Need a lil help :) (https://vborg.vbsupport.ru/showthread.php?t=270612)

DjEddie 09-20-2011 02:41 PM

Wrong Datatype Error - Need a lil help :)
 
Hi ..

On my cms page... some people have informed me that an error comes up at the top of the page:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/packages/vbcms/item/content.php on line 2245

I personally have never seen this .. i've been told it shows sometimes and other times doesn't.

I haven't added anything majorily different to the cms side that could cause this, if anything at all ...

Has anyone else had this problem? or does anyone know how to fix it?

Thanks :)

Lynne 09-20-2011 04:31 PM

Hmmm. Line 2245 in content.php:
PHP Code:

return (in_array($permissionsfrom,  vB::$vbulletin->userinfo['permissions']['cms']['candownload'])) ; 

It looks like it has something to do with their permissions to download attachments in the cms. Have you modified these lately?

DjEddie 09-20-2011 05:03 PM

Hi Lynne..

Nope not changed anything on there really as of late....only thing changed before was the layour and an article added ..no permissions of any sort

1 person says sometimes the error shows.. other times it doesn't .. like I said . i've never seen it myself .so its puzzling me on how to fix it ..

Lynne 09-20-2011 05:08 PM

Hmm, those are the ones that are hard to pin down. You could turn display_errors off and then they wouldn't see the error (although, that doesn't mean it doesn't exist).

Add to config.php:
PHP Code:

ini_set("display_errors"false); 


DjEddie 09-20-2011 05:12 PM

well it all works ok .. nothing on that page is broken from what I can tell at least...

I know that doesn't fix it .. but like you say ..hard to work out .... i'll stick that on for now n have a play with things..

Thanks for your help Lynne :)



quick noob question ... where in the config would I put that?

Lynne 09-20-2011 05:14 PM

Do you see the errors in your errors_log? You can always look in there to see if the problem continues.

DjEddie 09-20-2011 05:21 PM

ahh.. ill check the logs later tonite when im back in see if I can see anything thru them ..

thanks :)

doctorsexy 09-20-2011 06:16 PM

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/packages/vbcms/item/content.php on line 2245

that what im getting.... wasnt there last time i looked.. its in the background at the top


All times are GMT. The time now is 01:48 AM.

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.01659 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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