Unexpected '<' Error

bwhazel - December 1, 2008 - 01:54
Project:Computed Field
Version:6.x-1.0-beta2
Component:Documentation
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

I may well be missing something very obvious, but I am receiving the following error whenever I try and create a node with a Computed field type in it:

Parse error: syntax error, unexpected '<' in {SERVER}/drupal/modules/computed_field/computed_field.module(138) : eval()'d code on line 1

Initially I thought it may be due to using tags in the PHP, but when I tried without, I still obtained this error!

What am I doing wrong? Please help!

#1

dman - December 1, 2008 - 02:03

Paste your code? Probably just syntax error.
Be sure to use full <?php open tags, not just <?

#2

bwhazel - December 2, 2008 - 16:50

Hi!

Many thanks for the response!

The code I am using is:

$node_field[0]['value'] = $node->field_compoundformula[0]['value'];

#3

doomed - April 2, 2009 - 04:13

Getting the same problem, looking for solution.

Please post if you found something.

 
 

Drupal is a registered trademark of Dries Buytaert.