Parse error...
| Project: | Signwriter |
| Version: | 6.x-2.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
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
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
What version of PHP are you using? Need more information.
#3
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
#5
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
#6
This is a duplicate of #591800: Parse error: syntax error, unexpected '=', expecting ')' in /sites/all/modules/signwriter/signwriter.module on line 532