Hi all,
when i installed advertisement module it has been reported with the following errors:
Parse error: syntax error, unexpected '=', expecting ')' in /homepages/18/d280626208/htdocs/versus/sites/all/modules/ad/cache/file/ad_cache_file.module on line 30.
Please kindly provide solution to solve this issue
Thanks
tomsteve
Comments
Comment #1
murias commentedI have the exact same error, which then renders the entire Drupal install unusable - ie get the parse error on any page.
On the server that is being used it is version 4.4.7 of PHP. I have already asked the ISP if and or when they may upgrade to v 5. Not until the end of the year.
At one point the Advertise module was working, but then I turned on the ad_cache module and that is when it brought down the drupal install. I am able to make Drupal work again by removing the ad directory from site/default/modules.
Comment #2
jeremy commentedWhat do you have at line 30 in your version of the module? It is a blank line in the version found in the 6.x-2.0 tarball.
Comment #3
jeremy commentedNo further feedback, I guess you figured this out. Closing issue.
Comment #4
shc-boomer commentedJust to help anyone else with this error, this is due to PHP4.
If your webhost has both PHP4 and PHP5 set to PHP5.
You can do this by adding this
AddHandler application/x-httpd-php5 .php
to your .htaccess file in the root directory.
Hope this helps