Extra code documentation of $base_url in settings.php

Alan D. - November 11, 2008 - 11:31
Project:Drupal
Version:6.x-dev
Component:base system
Category:task
Priority:normal
Assigned:sharda_ram
Status:closed
Issue tags:needs backport to D6, Novice, Quick fix
Description

After getting some strange errors using update.php, I noticed that Drupal does not support relative $base_urls, such as '/drupal', etc. The patch adds a couple of invalid examples to help others from experiencing the same error.

AttachmentSizeStatusTest resultOperations
settings-d6-dev.patch1.19 KBIdlePassed: 10818 passes, 0 fails, 0 exceptionsView details | Re-test

#1

mr.baileys - April 8, 2009 - 11:13
Version:6.x-dev» 7.x-dev
Status:needs review» needs work

Should be fixed in HEAD and optionally backported.

- * and fill in the URL to your Drupal installation.
+ * and fill in the complete URL to your Drupal installation.

I would use "...the absolute URL..." instead as that's more common terminology. I would drop the "invalid examples" all-together: requiring an absolute URL and giving three absolute URLs as an example should be more than enough IMO.

#2

sharda_ram - April 16, 2009 - 17:39
Assigned to:Anonymous» sharda_ram

#3

sharda_ram - April 16, 2009 - 20:37
Status:needs work» needs review

Very first patch. Going by suggestions from mr.baileys, the only change needed is to change 'complete URL' to 'absolute URL'.

AttachmentSizeStatusTest resultOperations
settings-d7-dev.patch1007 bytesIdlePassed: 10818 passes, 0 fails, 0 exceptionsView details | Re-test

#4

mcrittenden - April 17, 2009 - 04:07

At first glance it doesn't seem necessary given that the comments give a few example base_url's, all of which are absolute, but if you had problems then chances are others had them or will have them too. So that's reason enough for me.

Applies itself cleanly, solves a problem as simply as possible, obviously abides by coding standards (it only adds one word to the comments)...it has my vote.

#5

Dries - April 17, 2009 - 20:08
Status:needs review» fixed

Committed to CVS HEAD. Thanks.

#6

mcrittenden - April 17, 2009 - 20:36

Congrats on your first committed patch, sharda_ram (if that's what you meant by very first patch) :)

#7

sharda_ram - April 17, 2009 - 21:11

It'll be much better next time, I promise :-) This one was just to get used to cvs and submitting patches, etc. Thanks for responding so quickly.

#8

andypost - April 18, 2009 - 01:47
Version:7.x-dev» 6.x-dev
Status:fixed» patch (to be ported)

Let's port to 6-x

#9

andypost - May 17, 2009 - 05:14
Status:patch (to be ported)» needs review
Issue tags:+needs backport to D6

So here the 1 line patch

AttachmentSizeStatusTest resultOperations
default.settings.php-D6.patch823 bytesIgnoredNoneNone

#10

Roger Saner - August 12, 2009 - 18:15
Status:needs review» reviewed & tested by the community

Great, same one line documentation change in settings.php for D6 that Dries already committed to D7. It's fine and should be RTBC :)

#11

Gábor Hojtsy - September 14, 2009 - 11:54
Status:reviewed & tested by the community» fixed

Thanks, committed to Drupal 6 too.

#12

System Message - September 28, 2009 - 12:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.