Posted by unitec on August 24, 2007 at 5:24am
| Project: | Taxonews |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | A.Parhomenko |
| Status: | closed (fixed) |
Issue Summary
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
Comments
#1
This is weird. Have you checked the module prerequisites. Specifically, which version of PHP are you using ? The module needs PHP > 5
#2
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)
#3
No answer in more than one week. Closing for now: feel free to reopen if the problem still exists.
#4
#5
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
#6
It 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).
#7
No answer from submitter more than one week after answer.
Closing for now. Feel free to reopen if the problem still exists.
#8
i still have the same problem
#9
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.
#10
No answer after 3 weeks. Assuming user error.
#11
Automatically closed -- issue fixed for two weeks with no activity.
#12
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?
#13
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.
#14
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??
#15
okidoke, on 1und1 you can use php 5 when you add this to your .htaccess:
AddType x-mapp-php5 .phpAddHandler x-mapp-php5 .php
#16
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.
#17
Hi. Annoyingly this solution doesn't work with HEARTINTERNET who are also on php4. Any ideas what else I can try?
#18
The solution for Heartinternet is this:
SetEnv DEFAULT_PHP_VERSION 5
Stick that at the end of your .htaccess. They run both versions.
#19
#20
Automatically closed -- issue fixed for two weeks with no activity.
#21
Or change your hosting, because I've got problem with HeartInternet as well: http://drupal.org/hosting