By luigi-1 on
I moved my drupal site to another host, with another configuration, including php5 and apache2 (instead of php4 and apache1). Now the "clean-url" option doesn't work, and links don't function properly anymore. They take the following form: http://mysite.com//node/1. I can't change the setting to disable clean urls, because of this. Can somebody help me?
I already tried to set "clean-url" option to "0" in the database, but that doesn't seem to change anything.
Comments
Drupal does not yet support
Drupal does not yet support PHP 5.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
what does that mean?
does that mean that running drupal on php5
a. will not work
b. will often give problems
c. will sometimes give problems, but workarounds are easy to implement?
I think c, based on this link: http://drupal.org/node/11158#comment-17125, but maybe i'm wrong?
But, more importantly, does my problem derive from the fact that drupal is incompatible with php5 or with the "clean-url" issue i mentioned?
update
I changed my conf.php file and added
$conf['clean_url'] = 0;as described in the troubleshooting faq. Now i get 'unclean urls' (http://mysite.com//?q=node/add/forum), but these don't work either. Note the double slashes after the .com part.Probably there is another problem, than the clean-url option?
Please post the solution if there is one
This the reason when I used PHP 5 that I did not turn on cleanurls. If you come across a solution please post it so that I can add it to my list of PHP 5 compliance fixes.
In the mean time I will take a look at the .htaccess file of Drupal and see if this has anything to do with the problem.
BtW, is there a trailing slash in your URL in the configuration page? Try removing it.
---------------------------
info for Drupal installation
__________________________
Carl McDade
Information Technology Consult
Team Macromedia
www.hivemindz.com
php5 compliance
(blush) indeed -- that helps! How easy some things can be! Apparently it's got nothing to do with php5....
A good idea, the .htaccess file definitively needs to be changed, if only the comments. The statement for php5 must refer to mod_php5.c,
<IfModule mod_php5.c>, instead of<IfModule sapi_apache2.c>or<IfModule mod_php4.c>.You won't see any obvious
You won't see any obvious errors (except for some warnings in xtemplate). The problem is that php 5 will always pass objects by reference which is a change from the way php 4 handles objects. You can notice this if you have some import formats defined: If you edit a node the body will be filtered before be put into the textarea.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services