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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • This error happens on the top of the screen during an import
Pages: [1]

Author Topic: This error happens on the top of the screen during an import  (Read 3560 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
This error happens on the top of the screen during an import
August 28, 2008, 03:50:57 pm
Parse error: syntax error, unexpected ';' in /home/web42/web/sites/all/modules/civicrm/CRM/Import/Form/MapField.php(309) : eval()'d code on line 1
This is after the step one.
Tried a few files.
It does work on the sandbox.
I am running 5.2 php ubuntu hardy on the test machine.
Attached is an example file.
Just downloaded the latest code too and it is the same error.
???

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: This error happens on the top of the screen during an import
August 29, 2008, 02:27:32 am
I am also on Ubuntu Hardy:

PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cli)

Not able to replicate this on my machine

Kurund
Found this reply helpful? Support CiviCRM

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: This error happens on the top of the screen during an import
August 29, 2008, 05:43:47 am
Couple of more questions then...
Did you choose
Individual
No Header
Update

I removed the line 309
Code: [Select]
if ( ($first == 'a' && $second == 'b') || ($first == 'b' && $second == 'a') ) {
                //eval( '$cType = ' . $contactRelationCache[$id]["contact_type_{$second}"] . ';' );
And it did work though I am sure I just lost a key feature?
I will look more later today.
--------------------
It could be something in my other drupal modules though it is pretty trim on modules?

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: This error happens on the top of the screen during an import
August 29, 2008, 11:34:18 am

I'm not sure why line 309 needs to be in an eval. I'm 99.99% sure that its wrong and we can safely remove the eval. we'll check and fix svn before the next beta

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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: This error happens on the top of the screen during an import
August 29, 2008, 12:15:31 pm
what does it do, out of curiosity?
I mean with me importing all this data (I know is it alpha, but I am doing a practive import now and then again once it is beta) do you think the imports are still valid?
Thanks lobo,

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: This error happens on the top of the screen during an import
August 29, 2008, 05:15:50 pm

its basically gets the ctype of the related contact. the eval statement is a mistake. however i'm not sure why your php version throws an error. can you update your profile to indicate what php version you are using?

thanx

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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: This error happens on the top of the screen during an import
August 30, 2008, 07:26:32 am
Profile updated.
The testing versions are what I am working on with these issues.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • This error happens on the top of the screen during an import

This forum was archived on 2017-11-26.