When I install Taxonews on my site voip-voice-over-ip.com
I get this error message:

Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ......taxonews.module on line 38

I need to delete the module files to get the site work again.
After I deleted the files and disabled the module again I copied the module files again to the server and I get the same error message on the whole site without enabling the module.

Juergen

CommentFileSizeAuthor
#2 taxonews.module.txt20.47 KBfgm

Comments

fgm’s picture

Status: Active » Postponed (maintainer needs more info)

This is weird. Have you checked the module prerequisites. Specifically, which version of PHP are you using ? The module needs PHP > 5

fgm’s picture

Category: bug » support
StatusFileSize
new20.47 KB

Try this version instead: it includes recent changes and a patch to check the PHP version.

(remove the ".txt" at the end of the file name to: it's only there because doesn't want .module files to be attached)

fgm’s picture

Status: Postponed (maintainer needs more info) » Fixed

No answer in more than one week. Closing for now: feel free to reopen if the problem still exists.

Anonymous’s picture

Status: Fixed » Closed (fixed)
A.Parhomenko’s picture

Title: Site does not work with module » Parse error: syntax error, unexpected T_CONST, ...... or T_VAR or '}' in
Version: 5.x-1.x-dev » 5.x-1.0
Assigned: Unassigned » A.Parhomenko
Category: support » bug
Priority: Normal » Critical
Status: Closed (fixed) » Active

Hi!

After istalling this module i have such error message:

Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in ..../public_html/modules/taxonews/taxonews.module on line 38

fgm’s picture

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

It looks like you are not using the proper PHP version specified in the requirements (PHP ≥ 5.1).

Just to be sure, can you :

  • confirm which PHP version you are using
  • check with the latest 5.x-1.x-dev version instead of 5.1.0

If you use today's (2007-10-16) dev version, I added an automatic check of the PHP version.

(Resetting to support because, pending further information, this appears to be another case of user error instead of a bug).

fgm’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No answer from submitter more than one week after answer.

Closing for now. Feel free to reopen if the problem still exists.

zengqiang’s picture

i still have the same problem

fgm’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Could you please answer the questions I asked at step 6 above: http://drupal.org/node/170063#comment-597260

Without this information, I can not help you.

fgm’s picture

Status: Postponed (maintainer needs more info) » Fixed

No answer after 3 weeks. Assuming user error.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

headkit’s picture

same same on my 1und1-server.
site and plugin works on localhost nicely.

first error was Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/root/CMS/sites/all/modules/taxonews/taxonews.module on line 38

now, after using the attached file "taxonews.module.txt " above, the new error (which i think is the same error) is

Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/root/CMS/sites/all/modules/taxonews/taxonews.module on line 46

my 1und1-php-version is 4
:-(

does this mean it is not working?

fgm’s picture

Indeed, as the doc specifies, this module needs PHP ≥ 5.1, not 4.x.

PHP4.x is an obsolete version. PHP4 end-of-life has been announced on the php.net home page since 2007-07-13. See http://gophp5.org/node/8 for more information.

headkit’s picture

i know, i know.
tell it to my provider.
i develioped the site on localhost on php5 and now it is not working in real live - nice.

is there something else like taxonews out there??

headkit’s picture

okidoke, on 1und1 you can use php 5 when you add this to your .htaccess:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
fgm’s picture

This is indeed interesting : you're not going to be alone with PHP4 problems now that it has been phased out and hosts don't all follow.

Maybe it would be interesting to have a handbook section somewhere about how to configure hosts to use php5, provider by provider. You could try to start one with this trick.

Anonymous’s picture

Hi. Annoyingly this solution doesn't work with HEARTINTERNET who are also on php4. Any ideas what else I can try?

Anonymous’s picture

The solution for Heartinternet is this:

SetEnv DEFAULT_PHP_VERSION 5

Stick that at the end of your .htaccess. They run both versions.

fgm’s picture

Status: Closed (fixed) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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

kenorb’s picture

Or change your hosting, because I've got problem with HeartInternet as well: http://drupal.org/hosting