I can't get drupal running because of the following apache error.

[Fri Apr 28 18:44:27 2006] [error] PHP Fatal error: Call to undefined function: filter_xss_bad_protocol() in ./includes/common.inc on line 641

I've looked at other postings but they weren't applicable or the described problem. I deleted the db and started from scratch but it didn't help. I'm using php4.3.1 and mysql4.0.

-sean

Comments

webchick’s picture

Category: bug » support
Priority: Critical » Normal

can't duplicate. need more info.

simler’s picture

Okay... fresh install. First page you're supposed to go to to start the admin process and create a admin user returns nothing but a blank screen and the previous error in the logs. Anything more I can tell you?

markus_petrux’s picture

I'm using php4.3.1 ...

Drupal needs PHP 4.3.3 or higher.

killes@www.drop.org’s picture

the function is defined in filter.module which is a required module and shoudl be loaded. What were you doing when you got the error? Also, PHP 4.3.1is too old, Drupal requires 4.3.3.

heine’s picture

This happens often when

1. Your php installation is broken (returns arrays in foreach() instead of elements)
2. The upload didn't complete (0 byte / truncated files)
3. (hypothetical) no execute permission on the modules directory

Nevertheless, the php version is also too old.

simler’s picture

Version: 4.7.0-rc3 » 4.7.0

I'm using php 4.3.11. That was a typo on my part.
foreach works fine
execute permissions on the modules directory are fine
Is there any way to test whether the module has actualy loaded?

I'm still getting just a blank screen and the following error:
[Mon May 1 11:18:16 2006] [error] PHP Warning: Duplicate entry 'id%3D107155%26userid%3Dsimler%26' for key 1\nquery: INSERT INTO sessions (sid, uid, hostname, timestamp) VALUES ('id%3D107155%26userid%3Dsimler%26sign%3DpWBzUnfwhmctszFM0VK_HJKTIrqdScU5j.rxOFM9QIDZtmGQC7m0NC8ZR7uj7Tz8raYIUhvFPCB07abmPFodDnZua64.cMM3zLIUPZBR3oVgFPF9dWz3twYj3prbL6lJ0FEFJ7D9NJwdXaLzmjnL4dvH5JcoFOCrDBxm5kQk2es-%26time%3D1146506300%26expires%3D480%26ip%3D216.145.56.184%26roles%3D%7C1.IE%7C121.U%7C13.V%7C158.U%7C20.U%7C299.U%7C50.U%7C6878.U%7C6951.I%7C6982.I%7C7008.C%7C7181.I%7C%5BProperty%7CViewers%5D%7C%5BSiebel%7CUS_Users%5D%7C', 0, '216.145.56.184', 1146507496) in ./includes/database.mysql.inc on line 124
[Mon May 1 11:18:16 2006] [error] PHP Fatal error: Call to undefined function: filter_xss_bad_protocol() in ./includes/common.inc on line 641

-sean

simler’s picture

Title: filter_xss_bad_protocol() » FIXED

I'm not sure how I got past this but is was a mixture of variables_order and open_basedir settings that I had to modify in my php.ini

baudolino’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
heine’s picture

Title: FIXED » Call to undefined function: filter_xss_bad_protocol()

Descriptive titles are important.