Parse error...

rjensen - August 2, 2009 - 05:59
Project:Signwriter
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

This issue was originally brought up as 'Parse error on fresh install' (http://drupal.org/node/340932)

I have the same problem. Installing 6.x-1.1, I noted that 'clone' had not changed to 'drupal_clone' as suggested. I received this error on a fresh install of both Drupal and SignWriter.
Parse error: syntax error, unexpected T_VARIABLE in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 445

After changing 'clone' to 'drupal_clone' in two locations, I get the error
Parse error: syntax error, unexpected T_VARIABLE in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 889

and do not understand much (any?) php to correct it.

Installing 6.x-2.x-dev, I get the following error
Parse error: syntax error, unexpected T_VARIABLE in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 525

which is this line
function signwriter_image_check_cache($text, $profile, &$imagefile, $tag = 'text', &$imageinfo = NULL) {

Others are apparently having no problem with the install!? Any ideas? The site is hosted by www.canaca.com

Thanks,
Roy Jensen

#1

Justin W Freeman - August 5, 2009 - 12:51

When you get that error with 6.x-2.x-dev is it a clean install or an update?

I have not yet been able to reproduce that error either way.

#2

Justin W Freeman - August 5, 2009 - 20:11
Status:active» postponed (maintainer needs more info)

What version of PHP are you using? Need more information.

#3

rjensen - August 9, 2009 - 07:19

The website was rebuilt from scratch since my original post.

I downloaded and installed signwriter-6.x-2.0-beta1.tar.gz (a clean install).

After enabling Signwriter and clicking 'Save configuration', I get
Parse error: syntax error, unexpected '=', expecting ')' in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 532

The only way I can get back to the website is to use phpMyAdmin and set the 'Status' to 0.

phpinfo reports PHP Version 4.4.4. More info at www.exploringchemistry.com/phpinfo.php

Roy Jensen

#4

rjensen - August 9, 2009 - 16:55
Version:6.x-2.x-dev» 6.x-2.0-beta1
Status:postponed (maintainer needs more info)» active

#5

rjensen - September 5, 2009 - 04:30
Status:active» postponed

I ended up porting the entire website to another server that supports PHP5.
Signwriter works on PHP5, but fails as described above on PHP 4.4.

I know you are busy. Thanks for all your work on this project.

Roy Jensen

 
 

Drupal is a registered trademark of Dries Buytaert.