Hi all.

I am new here and willing to try the sw.

I downloaded the files and followed the instructions (I don't have access to shell, so I manage via cpanel the database, user, etc. and phphmyadmin for th crfeation of the db)

I got this error Call to undefined function: filter_xss_bad_protocol() in /home/imscom/public_html/drupal/includes/common.inc on line 631 after i tried to access drupal.

I have a prior questions... Maybe here is my error

1) The instructions read to have the directory as drupal-x.x.x/* and the examples shows something like h**p://mydomain.com/drupal

2) Also for the $db_url = 'mysql://username:password@localhost/database'; I used the username, password and database as always did inother installations in my host. I kept the localhost as is instead to have the domain.com is this correct?

Thanks in advance for your help

Comments

gonefishing’s picture

Localhost is correct.
Where did you install drupal? eg: mysite.xxx/ or mysite.xxx/subdirectory

notuo’s picture

Actually is mysite.xxx/drupal

This is where I put all the files

gonefishing’s picture

So, you're getting the error when you go to mysite.xxx/drupal and no error for mysite.xxx/, right?

notuo’s picture

right just the drupal site.

heine’s picture

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).

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.

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

notuo’s picture

Well.

I followed your advise and worked and then not again... Let me explai.

I reupload the files again
I verified the modules directory was OK (attributes and all the files)
Also verified the "for" test and worked.

So I start all over and I got the first screen and I created an account. I received the email with the instructions but after I want to go to the login page I got another error:

warning: call_user_func_array(): First argumented is expected to be a valid callback, 'node_page' was given in /home/imscom/public_html/drupal/includes/menu.inc on line 354.

Any idea on this?

Thanks again for your time.

heine’s picture

Clearing the drupal cache, run the query:

DELETE FROM cache;

on your database (via mysql command or phpmyadmin)
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

notuo’s picture

Hi Heine.

Didn't worked... Now this error: Fatal error: Call to undefined function: node_list() in /home/imscom/public_html/drupal/includes/theme.inc on line 245

Maybe I have to start all over again.

What´s your advise?

Thanks

heine’s picture

It certainly worked, you've just got another problem. Can you open modules/node.module (the one on the server) and check if the file contains the function node_list? (line: 247 function node_list() { ?

I suspect this is another upload problem.

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

notuo’s picture

Well, there was.

I reviewed and the file you mentioned was filesize 0 as well another. I re-checked all the files and is working now.

Thank you very much

PS. Is this the way to go when solving an issue?