All I get is a bunch of php code when enabling this module in D7. Should it be working properly?

CommentFileSizeAuthor
#3 spam.jpg651.87 KBCheek

Comments

pixture’s picture

Please take the screenshot and attach it here.
D7 version has been working on my server (two servers that runs D7). It's supposed to work fine.

Cheek’s picture

(double post)

Cheek’s picture

StatusFileSize
new651.87 KB

Weird.. I get this on every page.

pixture’s picture

I am not sure what's wrong. But anyway, have you enter valid API key for the external service provider you are going to use?
If not, please do so first.

Also, please try the followings and see if it helps or not.

1) Clear the cache from Configuration > Performance page.
2) At the same page, disable cache, also uncheck the checkbox for CSS aggregator and Javascript aggregator.
3) Disable the AntiSpam module and enable it again.
4) Clear the browser's cache and restart the browser.

Cheek’s picture

I tried all that, but it didn't work.

There's nothing at 'admin/config/antispam' either.

Maybe something went wrong with the packaging. In antispam.module it says:

define('ANTISPAM_DRUPAL_VERSION', '6');

pixture’s picture

The line define('ANTISPAM_DRUPAL_VERSION', '6'); is OK. It's no longer used in anywhere.

I thought that maybe I have screwed up the packaging too. So I downloaded the antispam-7.x-1.0.tar.gz archive from drupal.org and and installed it to a brand-new D7 site which did not have any third party modules installed yet (Drupal Core only) and tested it. AntiSpam module worked just fine.

If the installation is done OK, then at least you should be able to access config and content moderation queue pages at

admin/config/antispam
admin/content/antispam

If you can not access antispam config page, then something went wrong with the installtion.
Have you enabled CleanURL? AntiSpam requires it. Please check this too.
Could you reinstall the AntiSpam module? (downloaind the antispam module archive from Drupal.org and install it).

scorchio’s picture

Priority: Normal » Major

Same here as #3, on a Hungarian site I can see garbage only - it prints the whole antispam.module file.

scorchio’s picture

Reporting back. Drupal coding standards related failure: <? opening tag instead of <?php in antispam.module line one... Voilá, it's working without the garbage.

pixture’s picture

>@ scorchio,

Thank you for the information. I will fix it and release it this week. :-)

Cheek’s picture

Hadn't thought of that. Confirmed working, thanks scorchio!

Everett Zufelt’s picture

Status: Active » Closed (won't fix)

Please report further 7.x-1.x issues separately.