2

I'm having issues just getting CiviCRM installed.

This is a Drupal 7.55 install. I got as far as installing CiviCRM as a module but the next step is to go to the install/index.php file and that is where I get my HTTP 500 error.

Looking at the apache error log it is a PHP parse error

PHP Parse error: syntax error, unexpected 'clone' (T_CLONE), expecting '('

and then a link to this file

/civicrm/packages/DB/DataObject.php(207) : eval()'d code on line 1

Can someone help me out with this?

  • care to clarify why this is tagged webform-civicrm? – petednz - fuzion Jun 14 '17 at 20:48
  • I couldn't figure it out the tags as using civicrm in the tag gave a short list that none seemed to be appropriate. Realized not using civicrm in tag gives more options. Really sorry about that. Didn't realize it – John M Jun 14 '17 at 21:36
  • no worries, just trying to help. – petednz - fuzion Jun 14 '17 at 22:23
  • 1
    The line that's breaking it is pretty messed up, eval('function clone($t) { $r = $t; if (method_exists($r,"__clone")) { $r->__clone(); } return $r; }');`. Clone is a reserved work ever since I started working with PHP, so I'm guessing this code is pretty old. AFAIK CiviCRM is not fully tested with PHP7, you might save yourself a lot of effort by downgrading to 5.6 – mickadoo Jun 15 '17 at 9:27
  • 1
    I downgraded the version of php to 5.6 and now the link works and I get to a page to start the database config. Hopefully, rest will work fine The CiviCRM requirements should mention that it doesn't work with 7. I interpreted 5.3.3+ and anything higher than that and 7 was the default for my setup. Anyway thank you very much – John M Jun 15 '17 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.