Hi Team,

I am new at this and learning by the minute. Got some web experience but stumped so fat with: Fatal error: Call to undefined function: filter_xss_bad_protocol() in ....(path deleted) .... \includes\common.inc on line 631

Install of civicspace 0.8.3 downloaded from http://civicspacelabs.org/home/developers/download

Single site install ran ok. When try to access site to configure, running into this error.

Any ideas?

Thanks

Comments

Heine’s picture

From http://drupal.org/node/57141#comment-108327
I believe this is the new look of the old Fatal error: Call to undefined function: user_access() in [path]/common.inc.

Possible causes

1. The upload of drupal didn't finish correctly; try reuploading the files.
2. modules directory is not readable by apache
3. Your php installation is broken (it doesn't use foreach correctly).

(1. is the most likely cause).

To test 3, make a file called test.php with the contents:

$a = array (1, 2, 3, 17); 

foreach ($a as $v) {
  print "Value of \$a: $v.\n";
}

Upload this to your server and direct your browser to http://example.com/test.php

If the output doesn't look somewhat like:

Value of $a: 1.
Value of $a: 2.
Value of $a: 3.
Value of $a: 17.

but repeats the word array, like this:

Value of $a: Array. Value of $a: Array. Value of $a: Array. Value of $a: Array.

Then the problem is 3, often caused by an incompatible optimizer.

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

ambiance7’s picture

Thanks Heine.

I followed # 3 and got this Value of $a: 1. Value of $a: 2. Value of $a: 3. Value of $a: 17.

incompatible optimizer: it this "fix-able"?

I could also upload files again

SR

Heine’s picture

That is actually the right output; try reuploading the drupal files. Sometimes this doesn't complete right.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

ambiance7’s picture

many thanks!

I am uploading as I type. May take a while. :-)

As Arnold would say "I"ll be back"

ambiance7’s picture

have uploaded files twice and even downloaded fresh copy of database. same error message.

Any ideas on what else I could try? Anyone?

ambiance7’s picture

was able to resolve error by using an old database. Apparently the server address provided was the problem. I created a new db and my hosting company is currently placing new databases on a different server with an address such as server319.now.com. By specifying a database server purely by IP address, I was able to install successfully. Just posting this for the benefit of others

Regards.

Heine’s picture

Sorry for the delay, but I'd like to debug this a little further. An old database solves the problem? Or specifying a database server by IP address?

If an old (prefilled) database solves the error, my next question is; have you already successfully installed modules? What are the permissions on the modules directory for the webserver?

Thanks in advance.

Heine
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

metzlerd’s picture

Check my logic here:

No system table, no module loads, no filter module, no filter_xss_bad_path?

I'm poking through the code trying to figure out if there's a mechanism that would make sure the filter module gets loaded before the intial database is created, but this could be related to the new install system implementation?

metzlerd’s picture

Browsed the code and found the answer. This error message may be indicitave that a user never visited install.php. If you haven't run install.php, and go to index.php you'll get this exact error message for the reasons described above.

Found this out by browsing the code.

Dave

jimezam’s picture

I was solving a mixture of versions product of a very mishandled upgrade but I was getting the "filter_xss_bad_protocol()" message. Thanks to you post I could solve it at last.

I love you man :-)

jimezam.