CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Help with viewing Profile as submit form in Drupal
Pages: [1]

Author Topic: Help with viewing Profile as submit form in Drupal  (Read 3214 times)

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Help with viewing Profile as submit form in Drupal
April 20, 2008, 02:50:43 pm
I have created a profile with ID1 (Drupal 5.7 and CiviCRm 2.0.2). I now want to view this form on the Drupal site. Drupal is installed and configured in the sub-domain "http://civicrm.crossroads.org.ua"

When I preview the Profile, this is the link that I get:
http://civicrm.crossroads.org.ua/index.php?q=civicrm/admin/uf/group&action=preview&id=1&field=0

I followed instructions and entered this link
http://civicrm.crossroads.org.ua/index.php?q=civicrm/profile/create?reset=1&gid=1
expecting the form (able to accept input). However, all I get is a search button and a list of one user.

What am I doing wrong?

I cannot use standalone form since it has some issues with encoding. So, all I need is the link that I can use for people to go to and submit their information.

I would be greatly thankful if someone will help with this situation and provide me with a clue of how I should call for a direct link to the Profile.
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Help with viewing Profile as submit form in Drupal
April 21, 2008, 05:49:06 am
Since you are not using "clean urls" - the link should be:

http://civicrm.crossroads.org.ua/index.php?q=civicrm/profile/create&reset=1&gid=1

(ampersand not question mark between "q=civicrm/profile/create" and "reset=1" parameters)
Protect your investment in CiviCRM by  becoming a Member!

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Help with viewing Profile as submit form in Drupal
April 21, 2008, 06:22:18 am
Thank you very much. I now can access the page.
However, when I saved the profile, I got SMTP error:

The mail library returned the following error message: Failed to connect to mail.servantek.org:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]

Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=>
    [message] => not connected
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="not connected" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

I have tried three different mail servers with the same result. I know perfectly that all login information was correct, but I get this error again and again. Is CiviCRM 2.0.2 in beta yet? Could it be related? Will I get around this problem if I downgrade CiviCRM to 1.9?

You help is greatly appreciated. Thanks again for your support...
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Help with viewing Profile as submit form in Drupal
April 22, 2008, 12:08:15 am
2.02 is stable, not beta. Your error indicates that the mailserver is refusing the connection. I'd suggestion asking your mail provider for assistance / explanation as to why and what to do. You should also search on this forum for "connection refused" to see the various reasons and things people have done to resolve the problem.

Alternatively, you could turn of the "Notification..." setting in your profile so it doesn't try and send an email on submit.
Protect your investment in CiviCRM by  becoming a Member!

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Help with viewing Profile as submit form in Drupal
April 22, 2008, 03:26:45 am
Thanks Dave. I read the forum posts and run a test on SMTP email check through sending an email to a contact. It appears to be SMTP settings issue. I get the same error.

I have tested the third mail server (SMTP) and found that I get the same "connection refused" error. This leads me to believe that saving SMTP information through Global settings may have issues.

In v. 1.9 I had to use SMTP password in civicrm.config.php file. In the latest version that line is gone. At this point I give up, unless you have a few other ideas about what could be wrong with SMTP outbound function.

Also, I used Cyrilic in my Profile description fields. The form looks good in Drupal presentation, but is unreadable when using stand alone form. It seems to be coded in ANSI rather than in pure UTF8. Are there any solutions for that?
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Help with viewing Profile as submit form in Drupal
April 23, 2008, 03:35:43 am
Quote from: vtitarchuk on April 22, 2008, 03:26:45 am
In v. 1.9 I had to use SMTP password in civicrm.config.php file. In the latest version that line is gone. At this point I give up, unless you have a few other ideas about what could be wrong with SMTP outbound function.

SMTP password is now set in the Global Settings >> Outbound Mail screen. If you need to use a password, you should be setting it there.

Quote
Also, I used Cyrilic in my Profile description fields. The form looks good in Drupal presentation, but is unreadable when using stand alone form. It seems to be coded in ANSI rather than in pure UTF8. Are there any solutions for that?

You might want to post that specific question in the internationalization forum board. I had thought everything we did was utf8 ??
Protect your investment in CiviCRM by  becoming a Member!

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Help with viewing Profile as submit form in Drupal
April 23, 2008, 03:42:59 pm
Thanks again, Dave.

I will see if I can post the issue with a standalone form with Cyrilic being encoded in ISO-8859-? standard. I have used windows with standard win cp1251 input for text. However, some application can treat it as UTF8. The problem is in separating the code and presentation. When I copy standalone code, it appears in strange symbols while on the page itself it is properly presented in UTF8.

As for SMTP issue, I called Bluehost (my shared hosting provider) and talked to a guy who helped me to understand the problem with "connection refused" error (no matter what SMTP servers I used). He said that they block outbound ports for scripts initiated (like CiviCRM call for SMTP) kind of connections.

I asked him if he can open several ports for me. He said that he can do it for $30/year. It turns out I need a dedicated IP address for sending mail through SMTP on a Bluehost shared hosting.

Since this is an urgent matter (four days of testing) resulting in Joomla and Drupal installs for CiviCRM in different subdomains, I went ahead and paid the money. I will test later for results, but the guy assured me that it should fix my failed connection errors.

I will report about results since I am very happy about your support on this forum. If this will workout, I may consider doing localization for CiviCRM in Ukrainian (no localization yet) and Russian (only 26% was localized yet).

I want to thank you guys again! You provide invaluable support that gets Open Source projects like CiviCRM going.

Victor Titarchuk
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Help with viewing Profile as submit form in Drupal
May 09, 2008, 02:52:53 pm
I am still having problems with bluehost.com shared hosting package for drupal 5.7 and CivCRM 2.0.3.

I tested settings on the dreamhost.com account, and it worked without any glitches. However, it seems that the Bluehost.com account with dedicated IP address is still giving me pain.

I enabled debuging and here is the backtrace:

backTrace

/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Utils/Mail.php, fatal, 179
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Event/BAO/EventPage.php, send, 171
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Event/Form/Registration.php, sendMail, 526
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php, confirmPostProcess, 451
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 223
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Event/Invoke.php, run, 100
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/Component.php, main, 130
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 158
/home/crossrq2/public_html/civicrm/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 329
, civicrm_invoke,
/home/crossrq2/public_html/civicrm/includes/menu.inc, call_user_func_array, 418
/home/crossrq2/public_html/civicrm/index.php, menu_execute_active_handler, 15

Please let me know what else should I look for. Obviously, I can switch the hosting provider, but I want to know for sure if the Bluehost.com is not a good option for CiviCRM with Google Apps for SMTP.

Thanks for your help,

Victor
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Help with viewing Profile as submit form in Drupal
May 09, 2008, 05:39:00 pm

you need to chat with the hosting provider. we basically try to give back all the error messages the system returns to us

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Help with viewing Profile as submit form in Drupal
May 09, 2008, 10:17:32 pm
Thanks Donald,

It appears that I found a problem. Since I use Google Apps for my domain while hosting on the Bluehost.com the bluehost is blocking anything that is going through SMTP other than their own mail servers.

Here is the post from them:

Dear Customer,
All SMTP from servers we offer as hosts, that does not go through our mail servers, is blocked in an effort to prevent spam.  You can send using our servers, but only using our servers.  We apologize for any inconvenience this might cause.

DISCLAIMER: BlueHost does not Support or Assist with Scripting, Coding or Third Party Product  issues including but not limited to Installation, code Maintenance, Custom Scripting, or Technical Maintenance in relationship to these areas. If you have Scripting, Coding or Third Party Product questions BlueHost recommends you consult or hire a programmer, design group or the manufacturers of your third party products. If you feel your situation warrants exception then you may reply to this ticket with further information regarding your issue. Again BlueHost makes no claims or guarantees that our support staff will be able to assist you with your Scripting, Coding or Third Party Product issues.

Sincerely,

Craig Coxson
Level II Support
BlueHost.com
888.401.4678


In this case, I just switch to Dreamhost.com. It is too bad that I have to do it, but this function is crucial for my client.

Victor
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Help with viewing Profile as submit form in Drupal

This forum was archived on 2017-11-26.