Akismet Anti-Spam Extension

phpBB 3.3 Error - Akismet Anti-Spam Extension

phpBB 3.3 Error

by Aurelienazerty » Wed Jan 08, 2020 9:59 pm

Hi,

I think there is a problem with phpBB 3.3 :

Code: Select all

AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Gothick\\AkismetClient\\Client::__construct(), 0 passed in ./cache/production/container_4335734bbdd20f586549a504dff5f80c.php on line 4842 and at least 3 expected in ./ext/senky/akismet/vendor/gothick/php-akismet/src/Client.php:85\nStack trace:\n#0 ./cache/production/container_4335734bbdd20f586549a504dff5f80c.php(4842): Gothick\\AkismetClient\\Client->__construct()\n#1 ./cache/production/container_4335734bbdd20f586549a504dff5f80c.php(3070): phpbb_cache_container->getSenky_Akismet_ListenerService()\n#2 ./vendor/symfony/event-dispatcher/EventDispatcher.php(231): phpbb_cache_container->{closure}()\n#3 ./vendor/symfony/event-dispatcher/EventDispatcher.php(61): Symfony\\Component\\EventDispatcher\\EventDispatcher->sortListeners('cor...', referer: https://www.team-azerty.com/forum/ucp.php?mode=register
I tried to purge the cache et try it once, it's doesn't work too. I had to switch off the Akismet Anti-Spam Extension
User avatar
Aurelienazerty
Registered User
Posts: 221
Joined: Sat Jan 08, 2005 8:21 pm

Re: phpBB 3.3 Error

by ^M^ » Sat Jan 11, 2020 4:17 pm

Same issue here from a fresh install.
The extension is not compatible with 3.3
^M^
Registered User
Posts: 13
Joined: Sat Jan 11, 2020 3:23 pm

Re: phpBB 3.3 Error

by Tarantino » Sun Jan 12, 2020 10:09 pm

Same problem here.
Tarantino
Registered User
Posts: 874
Joined: Sat Feb 18, 2012 1:51 pm

Re: phpBB 3.3 Error

by Senky » Tue Jan 21, 2020 2:29 pm

It will be fixed in a new version.

Changes here: https://github.com/senky/phpbb-ext-akis ... edb2ffe67c
‎‏‏ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎ ‎‏‎‏‏‎ ‎ ‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎‏‏‎🔔
Browser & Mobile Notifications Extension
Now with Safari (both macOS and iOS) support!
Senky
Former Team Member
Posts: 2300
Joined: Thu Apr 30, 2009 8:49 pm
Name: Jakub

Re: phpBB 3.3 Error

by ^M^ » Fri Jan 24, 2020 2:00 pm

Thanks Senky
^M^
Registered User
Posts: 13
Joined: Sat Jan 11, 2020 3:23 pm

Re: phpBB 3.3 Error

by genshijin » Sat Feb 15, 2020 3:02 pm

I am getting blank pages when trying to post or edit topics. Had to disable - then forum working fine.

phpbb 3.3.0
PHP: 7.3.13
genshijin
Registered User
Posts: 124
Joined: Fri Nov 09, 2018 2:03 pm
Location: Uk and sometimes Japan
Name: andy duggan

Re: phpBB 3.3 Error

by krazygyal » Fri Feb 28, 2020 5:03 pm

I have activated akismet, and now every time I try to manage extension I get the following error, so I cannot disable the extension. I tried deleting the folder from the server but it crashed the site entirely.

Code: Select all

 Fatal error: Uncaught ArgumentCountError: Too few arguments to function Gothick\AkismetClient\Client::__construct(), 0 passed in /var/sites/b/backyard.jamworld876.net/public_html/cache/production/container_dbdbe80dc7030ae9bd39ee30cca82130.php on line 3866 and at least 3 expected in /var/sites/b/backyard.jamworld876.net/public_html/ext/senky/akismet/vendor/gothick/php-akismet/src/Client.php:85 Stack trace: #0 /var/sites/b/backyard.jamworld876.net/public_html/cache/production/container_dbdbe80dc7030ae9bd39ee30cca82130.php(3866): Gothick\AkismetClient\Client->__construct() #1 /var/sites/b/backyard.jamworld876.net/public_html/vendor/symfony/dependency-injection/Container.php(306): phpbb_cache_container->getSenky_Akismet_Admin_ControllerService() #2 /var/sites/b/backyard.jamworld876.net/public_html/ext/senky/akismet/acp/akismet_module.php(34): Symfony\Component\DependencyInjection\Container->get('senky.akismet.a...') #3 /var/sites/b/backyard.jamworld876.net/public_html/includes/functions_module.php(676): senky\akismet\acp\akis in /var/sites/b/backyard.jamworld876.net/public_html/ext/senky/akismet/vendor/gothick/php-akismet/src/Client.php on line 85
krazygyal
Registered User
Posts: 7
Joined: Fri Oct 25, 2013 4:46 pm

Re: phpBB 3.3 Error

by stephenbillard » Sun Mar 01, 2020 11:12 pm

I am in the same boat. I would guess that no one on phpBBS 3.3 is able to use akismet. I see above that there is a "fix" but I downloaded the GitHub repository and tried it with no luck.
stephenbillard
Registered User
Posts: 5
Joined: Sun Feb 09, 2020 9:10 pm

Re: phpBB 3.3 Error

by MtnViewJohn » Sun Mar 29, 2020 4:22 am

Senky wrote:It will be fixed in a new version.

Changes here: https://github.com/senky/phpbb-ext-akis ... edb2ffe67c
This change isn't enough. I think you need to clear the cache after making the change. Changing the services.yml file had no effect on my system until after I cleared the cache.
MtnViewJohn
Registered User
Posts: 5
Joined: Thu Nov 16, 2006 5:13 pm

Re: phpBB 3.3 Error

by RamsesV » Sat Apr 04, 2020 11:08 pm

I can confirm, the little change in servcices.yml AND clearing the cache fixed the issue.
RamsesV
Registered User
Posts: 8
Joined: Wed Apr 04, 2018 6:26 pm