i have upgraded my local D5 installation to D6... i have followed several procedure before upgrading... after some tweaking and install all needed files... i then received this "Fatal error: Only variables can be passed by reference in D:\...\...\sites\all\modules\cck\content_copy.module on line 187". i try to look over the net for some possible solutions but found nothing...

could anyone or someone please help...

thanks,

vsotto

Comments

markus_petrux’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Please, check that line 187 in your content_copy.module looks like this:

    $form['submit'] = array(
      '#type' => 'submit',        // <--- Line 187 in content_copy.module !
      '#value' => t('Export'),
    );

If not, then it seems you do not have the correct version of the module.

vrsotto’s picture

to my confusion with some mixed desperation... i didn't bother to check that line(number 187). but somehow manage to resolved the issue(though it took a bit of my time) by repeating the upgrade procedure with some experimentation... what i did. is i disabled some CCK part bundled module(particularly content_copy.module) which give that fatal error... after that, upgrade was successful. though still received some minor warnings during the upgrade but those are manageble...

thanks for your attention on this...

vsotto

markus_petrux’s picture

Status: Postponed (maintainer needs more info) » Fixed

Good to know. Cheers

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

vivek.barsaiyan’s picture

Hi, I am a newbie to drupal.and when i install drupal 5.2 and download module CCK i am getting this "Only variables can be passed by reference " in content_copy.module in line 187.I hve tried all the versions of CCK for 5x but getting the same error.I m scratching my
head before this problem so any help would be appreciated

vivek.barsaiyan’s picture

Version: 6.x-2.6 » 5.x-1.x-dev
Assigned: Unassigned » vivek.barsaiyan
Priority: Normal » Critical
Status: Closed (fixed) » Active
vrsotto’s picture

try to disable, uninstall your CCK.module and delete the CCK(folder and files from your module directory). download new copy of CCK, extract the files under your module directory... and try to enabled it again...

vivek.barsaiyan’s picture

i have deleted cck folder and install cck-5.x-1.10.tar.gz and upload it again but the same problem,I dont know exactly what the problem is.

karens’s picture

Status: Active » Closed (won't fix)

The D5 version is no longer being supported. Sorry.