mautic-recaptcha icon indicating copy to clipboard operation
mautic-recaptcha copied to clipboard

reCaptcha plugin doesn't work with Mautic 2.3

Open ghost opened this issue 6 years ago • 5 comments

I tried on my 2 accounts. Every time, after adding plugin on my server and clear cache files, Mautic show bug, that web is offline. When I delete plugin and clear cache again, Mautic work.

ghost avatar Oct 17 '19 22:10 ghost

@biggala2310 what's the error message?

KonstantinCodes avatar Oct 18 '19 08:10 KonstantinCodes

At first my ftp server shows:

Invalid argument supplied for foreach() in /home/(my hosting)/mautic/.dftp/public_html/plugins/access.fs/class.fsAccessDriver.php (l.670)

However, if I repackage your plugin on my computer and package it again before send to ftp, server doesn't show this comment. But after throw files to plugin folder, rename folder and clear cache, site show:

The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors. Uh oh! I think I broke it. If I do it again, please report me to the system administrator! 500 Internal Server Error

Server error logs show only:

2019-10-18 10:53:51.331193 [INFO] [21033] [my IP:HTTP2-1] Abort request processing by PID:21528, kill: 1, begin time: 4, sent time: 4, req processed: 0

One more info: I have got two mautic installations, on two others hosting. First one use PHP 5.6, second 7.3. Problem with extract is only on this first server. But both sites show 500 after plugin installation.

ghost avatar Oct 18 '19 08:10 ghost

That doesn't show the actual error. Can you please check the mautic error log?

KonstantinCodes avatar Oct 18 '19 09:10 KonstantinCodes

[2019-10-18 11:39:29] mautic.WARNING: PHP Warning - require((server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php): failed to open stream: No such file or directory - in file (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {"className":"Mautic\\PluginBundle\\Entity\\Plugin","classMetadata":"[object] (Doctrine\\ORM\\Mapping\\ClassMetadata: Doctrine\\ORM\\Mapping\\ClassMetadataInfo@000000000882cdc4000000003195d5a7)","proxyClassName":"Proxies\\__CG__\\Mautic\\PluginBundle\\Entity\\Plugin","fileName":"(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php"} []
[2019-10-18 11:39:29] mautic.WARNING: PHP Warning - require((server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php): failed to open stream: No such file or directory - in file (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {"className":"Mautic\\PluginBundle\\Entity\\Plugin","classMetadata":"[object] (Doctrine\\ORM\\Mapping\\ClassMetadata: Doctrine\\ORM\\Mapping\\ClassMetadataInfo@000000000882cdc4000000003195d5a7)","proxyClassName":"Proxies\\__CG__\\Mautic\\PluginBundle\\Entity\\Plugin","fileName":"(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php"} []
[2019-10-18 11:39:29] mautic.ERROR: PHP Notice: require(): Failed opening required '(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php' (include_path='.:/usr/local/php/5.6/5.6.40-dh15/lib/php') - in file (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 [] []
[2019-10-18 11:39:29] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required '(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php' (include_path='.:/usr/local/php/5.6/5.6.40-dh15/lib/php') - in file (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 [] []
[2019-10-18 11:39:29] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: require(): Failed opening required '(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php' (include_path='.:/usr/local/php/5.6/5.6.40-dh15/lib/php')" at (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Compile Error: require(): Failed opening required '(server)/mautic/public_html/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php' (include_path='.:/usr/local/php/5.6/5.6.40-dh15/lib/php') at (server)/mautic/public_html/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"} []

ghost avatar Oct 18 '19 09:10 ghost

Thank you!

KonstantinCodes avatar Oct 18 '19 11:10 KonstantinCodes