Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ambiance7 on
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
3
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:
Upload this to your server and direct your browser to http://example.com/test.php
If the output doesn't look somewhat like:
but repeats the word array, like this:
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.
incompatible optimizer?
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
Nope
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.
uploading as I type
many thanks!
I am uploading as I type. May take a while. :-)
As Arnold would say "I"ll be back"
re-uploading did not fix error
have uploaded files twice and even downloaded fresh copy of database. same error message.
Any ideas on what else I could try? Anyone?
error resolved - success
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.
That's bizarre
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.
Downloaded CVS today.... same problem with no db.
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?
Nevermind.... but mystery solved.
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
Running Install.php
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.