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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | taxonews.module.txt | 20.47 KB | fgm |
Comments
Comment #1
fgmThis is weird. Have you checked the module prerequisites. Specifically, which version of PHP are you using ? The module needs PHP > 5
Comment #2
fgmTry 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)
Comment #3
fgmNo answer in more than one week. Closing for now: feel free to reopen if the problem still exists.
Comment #4
(not verified) commentedComment #5
A.Parhomenko commentedHi!
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
Comment #6
fgmIt looks like you are not using the proper PHP version specified in the requirements (PHP ≥ 5.1).
Just to be sure, can you :
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).
Comment #7
fgmNo answer from submitter more than one week after answer.
Closing for now. Feel free to reopen if the problem still exists.
Comment #8
zengqiang commentedi still have the same problem
Comment #9
fgmCould 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.
Comment #10
fgmNo answer after 3 weeks. Assuming user error.
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
headkit commentedsame 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?
Comment #13
fgmIndeed, 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.
Comment #14
headkit commentedi 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??
Comment #15
headkit commentedokidoke, on 1und1 you can use php 5 when you add this to your .htaccess:
Comment #16
fgmThis 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.
Comment #17
Anonymous (not verified) commentedHi. Annoyingly this solution doesn't work with HEARTINTERNET who are also on php4. Any ideas what else I can try?
Comment #18
Anonymous (not verified) commentedThe solution for Heartinternet is this:
SetEnv DEFAULT_PHP_VERSION 5
Stick that at the end of your .htaccess. They run both versions.
Comment #19
fgmComment #20
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #21
kenorb commentedOr change your hosting, because I've got problem with HeartInternet as well: http://drupal.org/hosting