Active
Project:
Custom Contact
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2009 at 18:02 UTC
Updated:
2 Dec 2009 at 02:20 UTC
Hi, I've gone through the full install and setup, including checking all permissions and I've got the contact-list all set up and everything, and an anonymous user can see the profile pages, but they can't access the contact form. What am I don't wrong?
See: http://srecschool.org/contact-list
Please help. Thank you!!!
Very cool module by the way!
Comments
Comment #1
jleinenbach commentedSame here. I'm quite sure my permissions are correct.
Comment #2
jleinenbach commentedNow I uninstalled Custom Contact and reinstalled it again and got some database warnings. I use PostgreSQL.
@JamieR: Do you use MySQL or PostgreSQL? Do you also get these error messages if you deactivate, uninstall the module and reinstall it again?
Here are the warnings:
* warning: pg_query() [function.pg-query]: Query failed: FEHLER: Spalte »flag« existiert nicht LINE 1: ...vent, threshold, callback, parameters) VALUES (2, "flag", 1,... ^ in /usr/share/drupal6/includes/database.pgsql.inc on line 139.
* user warning: query: INSERT INTO flag_actions (fid, event, threshold, callback, parameters) VALUES (2, "flag", 1, "custom_contact_add", "a:0:{}") in /etc/drupal/6/sites/all/modules/custom_contact/custom_contact.install on line 37.
* warning: pg_query() [function.pg-query]: Query failed: FEHLER: Spalte »unflag« existiert nicht LINE 1: ...vent, threshold, callback, parameters) VALUES (2, "unflag", ... ^ in /usr/share/drupal6/includes/database.pgsql.inc on line 139.
* user warning: query: INSERT INTO flag_actions (fid, event, threshold, callback, parameters) VALUES (2, "unflag", 1, "custom_contact_delete", "a:0:{}") in /etc/drupal/6/sites/all/modules/custom_contact/custom_contact.install on line 38.
FEHLER = ERROR
Spalte = column
"existiert nicht" = "does not exist"
Comment #3
jleinenbach commentedThis is how it worked for me now, but I had to set/correct/check the aliases:
Create a category for every user
admin > build > contact > add
Use the username as the category name for each user.
Replace old user contact form with new one
First step: alias for URL with username
admin > build > path
system path:
contact/{username}
alias:
user/{username}/contact
Second step: alias for URL with user id
admin > build > path
system path:
contact/{userid}
alias:
user/{userid}/contact
Replace old contact form with new contact-list
admin > build > path
system path:
contact-list
alias:
contact
Works great together with module openpgp:
http://drupal.org/project/openpgp
As spamprotection, I recommed:
http://drupal.org/project/spamicide
As a lightweight bot protection for Apache, I recommend:
http://sourceforge.net/projects/mod-spamhaus/