Hi, I've recently installed Drupal v4.6.3 (w/MySql4.1, apache 1.3) and everything works fine, except the primary/secondary links.
The url -- when clicking on edit primary (or secondary) links -- is http://localhost/drupal/?q=admin/themes/settings, but i get a totally blank page (source is a blank html too).

What should I do to fix this error?

Thanks for your help.

Attila

Comments

asalyi’s picture

Can someone at least tell mell where should I search for the source of the themes/settings? Which table or which what? :)

cdavidson129’s picture

I am having the exact same problem, I am using Apache 2 though. Anyone know what causes this?

kylehase’s picture

I too have this same problem but my setup is quite different.

Win2k/IIS5/PHP5.05+FastCGI/MySQL4.1/Drupal4.63

The problem occurs on the primary links and secondary links like yours but also when trying to configure themes.

Due to the fact that we're all using different webservers, it would seem that the problem is not webserver related.

sepeck’s picture

What links are you all putting in? The primary and secondary links are derived from your base_url what ever you put in th eprimary and secondary links in the theme page.

You should not put a leading / in the links or it will not work correctly. You cannot put in links to external sites.

The error referenced above appears to be related to hostname and base_url configuration issues.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

kylehase’s picture

Thanks for the suggestion but I think you may have misunderstood the problem a little.
The problem is that we are unable to get to the page to edit links.
When I click on "edit primary links" or "edit secondary links" without logging in, I get "access denied". Great!
But when I do the same after loggin in, I get a blank page with only html and body tags.

In settings.php my base_url is

$base_url = 'http://localhost';

I have also tried chaning this to http://127.0.0.1, http://<my ip address> and http://<my domain name> with no luck.

There are no traling slashes or leading slashes..

sepeck’s picture

When you click on edit promary links without logging in, you should get access denied or anonymous users have to much access to your site. :)

If you are using xTemplate based themes, then go to admin > themes | configure tab.

In Global Settings, you need to enter the links and the links assume the base URL of the site.

<a href="/index.php?q=node/3" class="active">About us</a>

If you are using phpTemplate based themes, then from the configure tab click the phpTemplate based theme name (we'll assume box_grey here)
In the link text put: About Us
in the url box: node/3
in the description box: link to about us (does the alt tag thing)

Does this make more sense now?

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

kylehase’s picture

I'm not sure about the other users but I can't even do that.
After loggin in as the administrator, I click on administer then themes. I can then see the installed themes, bluemarine, chameleon etc. but when I click on the configure tab or the "configure" link next to each theme I get blank pages again.

dmwbxl’s picture

Windows XP SP2, Apache 2, PHP 5.05, Mysql 4.1.10, Drupal 4.6.3

my base_url is configured as http:/localhost:8080
(without / at the end)

I can access Drupal index page at http://locahost:8080
When I login as administrator
I can access create contents and my account links
I cannot access administer link, it gets me the apache test page
the url is http://localhost:8080/?q=admin
If I add a slash in the url like:
http://localhost:8080//?q=admin
or
http://localhost:8080/?q=admin/
I get the administer page !!!

Any explanation from Drupal developpers or gurus ?

Thanks for your help

dmwbxl’s picture

The previous explanation is for FireFox,
It actually works in IE !
but still, edit primary or secondary links gets a blank page
for both IE and Firefox.

Really too erratic

David

dmwbxl’s picture

I solved the problem by downgrading PHP from 5.05 to 4.4.0
I had to change the authentication of mysql to OLD_PASSWORD
and now the primary and secondary links are OK.
themes configure also works

The only thing that still does not work is the administer button under Firefox (where I have a workaround adding a slash at the end of the url).

OK, glad it works, I hope it will also help you and the Drupal team.

See you.

David

kylehase’s picture

Great work dmwbxl,

I too found the php4 solution but after downgrading from php5, ran into php extension issues and then the mysql authentication issue as well. I'll definetly be trying your solution ASAP.