aboutsummaryrefslogtreecommitdiffstats
path: root/notes/trouble_shooting.md
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2013-09-05 16:42:18 +0100
committerEdmund von der Burg <evdb@mysociety.org>2013-09-10 15:40:08 +0100
commitf5fb104c8a30a01d3783f8e2f6dc784e2e672810 (patch)
tree946916b19563eac2dc9e4e99e1f30e55d094b62a /notes/trouble_shooting.md
parent8e7e991b7fa4a99104a5b49244d034c96ce07222 (diff)
Save troubleshooting notes
Diffstat (limited to 'notes/trouble_shooting.md')
-rw-r--r--notes/trouble_shooting.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/notes/trouble_shooting.md b/notes/trouble_shooting.md
new file mode 100644
index 000000000..9d8d38f13
--- /dev/null
+++ b/notes/trouble_shooting.md
@@ -0,0 +1,20 @@
+# Trouble shooting
+
+## Empty datetime object
+
+ Couldn't render template "index.html: undef error - Can't call method "strftime" without a package or object reference at /var/www/fixmystreet.127.0.0.1.xip.io/fixmystreet/perllib/Utils.pm line 232
+
+- You might have a problem with a datefield that has been left empty by one cobrand that another expects to have a value. Inspert the problem table in the database.
+- You may have problems being returned by memcached that your database does not have. Restart memcached to rule this out.
+
+## Wrong cobrand is displaying
+
+- Make sure that your hostname does not contain anything that another cobrand is matching on. For example if your config is
+
+``` yaml
+ALLOWED_COBRANDS:
+ - fixmystreet
+ - zurich
+````
+
+Then a domain like `zurich.fixmystreet.com` will match `fixmystreet` first and that is the cobrand that will be served.