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

murias’s picture

Priority: Normal » Critical

I 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.

jeremy’s picture

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

What 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.

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

No further feedback, I guess you figured this out. Closing issue.

shc-boomer’s picture

Just 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

Status: Fixed » Closed (fixed)

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