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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • [SOLVED - I think] Fatal Error
Pages: [1]

Author Topic: [SOLVED - I think] Fatal Error  (Read 1944 times)

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
[SOLVED - I think] Fatal Error
December 12, 2011, 05:18:18 am
Hi All

I'm receiving a Fatal Error when I try and complete the details in the Administer > System Settings > Outbound Email (SMTP/Sendmail)

On clicking I get...

Fatal error: Cannot unset string offsets in /home/fhlinux193/m/morvargh-sailing.co.uk/user/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php on line 344

Can anyone point me in the right direction???

Thanks

Matt
« Last Edit: December 12, 2011, 01:35:30 pm by sailormatt »

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
Re: Fatal Error
December 12, 2011, 06:50:47 am
UPDATE

Ok I might have solved this, although to me it seems that perhaps I may be shooting myself in the foot if I do this?

I went to the line that was giving the error in Core > Form.php line 344 and commented it all out, went back to the Administer > System Settings > Outbound Email (SMTP/Sendmail) menu and now I can open it without the error.

Although i've fixed that bit will I be giving myself problems elsewhere?

Matt

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: [SOLVED - I think] Fatal Error
December 19, 2011, 12:57:40 pm
What was the line you removed?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: [SOLVED - I think] Fatal Error
January 05, 2012, 11:22:03 am
unset( $defaults['qfKey'] );

Same error, same "fix".

Drup 7.X, Civi 4.1 Alpha 2.

co-operatives uk

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7.15
  • MySQL version: 5
  • PHP version: 5
Re: [SOLVED - I think] Fatal Error
January 13, 2012, 03:25:28 am
Had the same problem. Here's the process:

Set up SMTP settings after install. Test sent fine so didn't look at it again.
Tried to send email a few days later: got an error the SMTP server. Tried to check SMTP settings and got this PHP error.
Commented out unset( $defaults['qfKey'] );
Could revisit SMTP settings: the page was set to use Mail()
Re-entered SMTP details and saved and test: got test email fine. Still couldn't send live email.
Went back to SMTP settings. Again defaulted to mail(). Re-entered and clicked save without testing.
Tried to send email but got server refused.
Went back to settings and they were set to SMTP but on localhost. Changed back to correct SMTP server, clicked save.
Went back to settings to check. They were still as I'd set them. Phew!
Could send email. Went back and uncommented unset( $defaults['qfKey'] );
Can visit SMTP settings and send email.

Think it was an issue with the SMTP settings thinking they'd saved but not doing. I had to rebuilt my civi database by hand to upgrade and import data into it, so it's probably related to that. Anyone else who's had a problem gone through similar difficulties?


CiviCRM 4.1.beta2
Drupal 7.10

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: [SOLVED - I think] Fatal Error
March 06, 2012, 08:37:41 am
I had the same error on Joomla 2.5.2/CiviCRM 4.1.1

As suggested here, commenting line 344 in form.php, going in and setting up new smtp details, and then uncommenting the line seems to have fixed it.

If it's any clue to what might be causing the bug, I had downloaded a Civi 4.0.5 site from one domain, upgraded locally and then upgraded to a different domain (with a fair few core settings changed).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • [SOLVED - I think] Fatal Error

This forum was archived on 2017-11-26.