on /?q=welcome after install we see the following repeating message as shown below. We are running on Fedora.

warning: call_user_func_array() expects parameter 2 to be array, string given in /var/www/html/sites/all/modules/contrib/views/views.module on line 451.
warning: call_user_func_array() expects parameter 2 to be array, string given in /var/www/html/sites/all/modules/contrib/views/views.module on line 451.

Other tidbits:
- Fedora / PHP 5.3.2 (cli)

-bash-4.1$ uname -a
Linux openscholar 2.6.33.3-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010 i
686 i686 i386 GNU/Linux

-bash-4.1$ pwd
/var/www/html/sites/all/modules/contrib/views

-bash-4.1$ ll
total 220
-rwxr-xrwx. 1 nobody nobody 36651 Jun 25 21:29 CHANGELOG.txt
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 css
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 docs
-rwxr-xrwx. 1 nobody nobody 257 Jan 12 2010 documentation-standards.txt
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 handlers
drwxr-xrwx. 3 nobody nobody 4096 Aug 18 14:20 help
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 images
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 includes
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 js
drwxr-xrwx. 16 nobody nobody 4096 Aug 18 14:20 modules
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 plugins
-rwxr-xrwx. 1 nobody nobody 873 Jan 12 2010 README.txt
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 theme
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 translations
-rwxr-xrwx. 1 nobody nobody 51832 Jan 12 2010 views2.doxy
drwxr-xrwx. 2 nobody nobody 4096 Aug 18 14:20 views_export
-rwxr-xrwx. 1 nobody nobody 174 Jan 12 2010 views.info
-rwxr-xrwx. 1 nobody nobody 14984 Jun 25 21:29 views.install
-rwxr-xrwx. 1 nobody nobody 39257 Jun 25 21:29 views.module
-rwxr-xrwx. 1 nobody nobody 242 Jan 12 2010 views_ui.info
-rwxr-xrwx. 1 nobody nobody 9174 Jun 25 21:29 views_ui.module

Comments

ferdi’s picture

Having clean urls is strongly recommended. Note that .htaccess is missing in 2.0-beta7. Download the newest version or grab a copy of .htaccess file from drupal.
It's also strongly recommended that php 5.2 is used (http://drupal.org/node/889002#comment-3362410)
Thanks!

rgchi’s picture

Yes, I now have .htaccess in place. I think I found a work around. Now I am using Fedora with php 5.3.x. Unfortunately I don't have the ability to downgrade the php version. So I have to work with what I'm given.

I plan to turn on clean URLs. But for the time being...

Specifically on http://openscholar/?q=user the error issued was:

warning: call_user_func_array() expects parameter 2 to be array, string given in /var/www/html/sites/all/modules/contrib/views/views.module on line 451.

I'm trying the following test. Taking line 451 from

   if (function_exists($callback) && call_user_func_array($callback, $argments)) {
         return TRUE;
       }

to (notice: array($argments))

 if (function_exists($callback) && call_user_func_array($callback, array($argments))) {
     return TRUE;
   }

This seem to work for me! Obviously more testing will be needed.

rgchi’s picture

Assigned: Unassigned » rgchi
Status: Active » Closed (fixed)
james.chen’s picture

thank you very much, you have solved a problem which freak me out

ianchan’s picture

subscribe