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 (Moderator: Dave Greenberg) »
  • CiviCRM + PHP 5 break Drupal user system
Pages: [1]

Author Topic: CiviCRM + PHP 5 break Drupal user system  (Read 2389 times)

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
CiviCRM + PHP 5 break Drupal user system
July 12, 2007, 11:02:34 pm
I've tracked down the problem with my Drupal install, and it's somehow related to CiviCRM. When I have it turned off, people can register fine, I can create new users, etc.

When it's turned on, I get the PHP info page for my server. I can't create new users, and people can't register.

Since the only reason to have users on the site, other than a few admin, is so people can update their own info in CiviCRM, not being able to register is a problem.

We didn't have any problems until we moved to PHP 5 and switched to the PHP 5 version of CiviCRM. And we only did that because it was necessary for CiviMail.

Any ideas on what could be causing this?

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM + PHP 5 break Drupal user system
July 13, 2007, 08:28:39 am
What versions of CiviCRM and Drupal are you running?
Does other functionality in CiviCRM work properly (i.e. can you add / edit contacts etc.)?
Do you have any CiviCRM Profiles configured to be included in User Registration?
Do you get any errors on the screen - other than your PHP info page. What URL is in the browser location bar when u get this output?
Have you checked your webserver (Apache) error log?
Protect your investment in CiviCRM by  becoming a Member!

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: CiviCRM + PHP 5 break Drupal user system
July 13, 2007, 11:56:02 am
Drupal 5.1, civicrm-1.7.9821-drupal-php5.tar.gz

Everything else in CiviCRM works fine. I can edit people, search, etc.

I do have a profile that is included in user registration.

The URL in the output is either the user registration page (/user/register) or its the user add page under the admin area (/admin/user/user/create). I don't get any errors, just the long page with all the information about PHP. I'd show you the example, but it gives locations of PHP files and other sensitive info.

Nothing is logged in the error log.

Edit: I turned off the one item that was set to be in the user registration, and I still get the page.
« Last Edit: July 13, 2007, 12:01:39 pm by jsimonis »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: CiviCRM + PHP 5 break Drupal user system
July 13, 2007, 09:19:08 pm
* You're mentioning that you can edit and search: however, can you add new CiviCRM contacts without any problem?
* By "item" that you disabled, do you mean the field inside the profile, or whole profile that is associated with user registration? If it's not profile, can you disable it and see what happens?
* We do not include phpinfo page in our code anywhere, so it's pretty unusual that you are getting it instead of some meaningful error. Do you have any custom modifications in your CiviCRM code?
* Please consider saving the phpinfo page, obfuscating sensitive information and sending it to one of us via private message on the forum - it might actually help, even if phpinfo is not something expected.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: CiviCRM + PHP 5 break Drupal user system
July 13, 2007, 11:11:30 pm
Yes, I can add a new contact without problem. I just added a test person to verify, and it worked fine - no errors.

On the one profile that used "user registration," I clicked on settings and them removed it from user registration. This is what I have left:

http://www.nu-look.net/images/profiles.jpg

No, it's not a PHP info page of you guys'. It is one that resides on my server. I was going to post a screenshot, but I just figured out the problem.

I'd posted an item about having trouble with something on CiviCRM, and they had me add this to the civicrm module:

Code: [Select]
phpinfo( ); exit( );
But they didn't say what it would do or if I should remove it. And I ended up figuring out how to verify the PHP version myself. And because of where they had me add that, it was stopping me from being able to access the user pages.

Sure enough, that was what was causing it. I just remembered adding that. I went and removed it, and bingo it works.

Thanks for the help!

Jenni

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviCRM + PHP 5 break Drupal user system

This forum was archived on 2017-11-26.