Fatal error: Uncaught sfInitializationException: arElasticSearchPlugin needs cURL PHP extension.

414 views
Skip to first unread message

joanfo...@gmail.com

unread,
Jun 7, 2018, 7:46:53 AM6/7/18
to AtoM Users
Hello, 

After updating the php5 version to php7, this error appears on the server:

-------------------------------
Fatal error: Uncaught sfInitializationException: arElasticSearchPlugin needs cURL PHP extension in /usr/share/nginx/atom/plugins/arElasticSearchPlugin/config/arElasticSearchPluginConfiguration.class.php:36 Stack trace: #0 /usr/share/nginx/atom/vendor/symfony/lib/config/sfApplicationConfiguration.class.php(169): arElasticSearchPluginConfiguration->initialize() #1 /usr/share/nginx/atom/vendor/symfony/lib/config/sfApplicationConfiguration.class.php(150): sfApplicationConfiguration->initializePlugins() #2 /usr/share/nginx/atom/vendor/symfony/lib/config/sfApplicationConfiguration.class.php(51): sfApplicationConfiguration->initConfiguration() #3 /usr/share/nginx/atom/vendor/symfony/lib/config/sfProjectConfiguration.class.php(611): sfApplicationConfiguration->__construct('prod', 'true', '/usr/share/ngin...', NULL) #4 /usr/share/nginx/atom/index.php(5): sfProjectConfiguration::getApplicationConfiguration('qubit', 'prod', 'true') #5 {main} thrown in /usr/share/nginx/atom/plugins/arElasticSearchPlugin/config/arElasticSearchPluginConfiguration.class.php on line 36 
-------------------------------

I don't know the reason. Tell me something please.

Thank you.

joanfo...@gmail.com

unread,
Jun 7, 2018, 7:50:40 AM6/7/18
to AtoM Users
Nowadays, we have the 2.2.1 version so we want updating to 2.4 version. 

raddao...@gmail.com

unread,
Jun 7, 2018, 10:04:59 AM6/7/18
to AtoM Users
Hi,

It looks like you're missing some PHP dependencies in the system. Please, check the installation notes about it (for Ubuntu 16.04):


Regards.

joanfo...@gmail.com

unread,
Jun 8, 2018, 7:03:43 AM6/8/18
to AtoM Users
I have followed the guide. I have installed all PHP dependencies (PHP 7.0) but I still have the same problem.

Tell me something please.


El jueves, 7 de junio de 2018, 13:46:53 (UTC+2), joanfo...@gmail.com escribió:

raddao...@gmail.com

unread,
Jun 8, 2018, 7:23:18 AM6/8/18
to AtoM Users

Hi Joan,

With the php7.0-curl dependency installed and php-fpm restarted you shouldn't be having the same issue. Could it be a different issue in the same part? Maybe it's now an issue in the Elasticsearch setup and it's showing in that step. Or could it be that you have more than PHP version installed?

Regards.

raddao...@gmail.com

unread,
Jun 8, 2018, 7:27:23 AM6/8/18
to AtoM Users
Hi again,

I forgot you were upgrading from PHP 5 to 7. Maybe the php-fpm socket in use for AtoM is still using the older version or you have a similar mismatch somewhere.

Sorry I can't be more helpful.

Joan Forcada Tubau

unread,
Jun 11, 2018, 9:46:56 AM6/11/18
to ica-ato...@googlegroups.com
Good afternoon,

I have verified everything you said to me, but I have the same error.

I don't know what I have to do to solve the problem.

Tell me something please.



--
You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ica-atom-users/sHGEdgLbM5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/64c797c6-6530-49dd-a348-f32e36ac2d22%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

raddao...@gmail.com

unread,
Jun 11, 2018, 10:10:46 AM6/11/18
to AtoM Users
Hi Joan,

Maybe the cURL extension is not being enabled in your php.ini file or something similar, I'd try to check the `phpinfo();` output to check that it's enabled and also for php-cli. It's hard to help you on this without looking at your configuration files and error logs. I'd suggest a clean php7 installation if you can't fix the current one.

Best regards.
To unsubscribe from this group and all its topics, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.

Matthew Bruton

unread,
Nov 13, 2019, 7:02:15 AM11/13/19
to AtoM Users
I'm getting this problem, which is totally new for me also.

It's affecting ANYTHING I do with php symfony.

I am attaching the screenshot.

I have reinstalled php and restarted - no change. Tried the usual restarting of services, but no difference.

It seemed to happen right after I upgraded to php 7.3. As the import job I did right before that worked fine.

I'm going to re-install everything and if it happens again I will let you all know.

If anyone has any help for me and others, do post it up.
php fatal error problems.PNG

Dan Gillean

unread,
Nov 13, 2019, 10:45:41 AM11/13/19
to ICA-AtoM Users
Hi Matthew, 

I suspect there are a couple issues at play here. 

First, we have not yet tested AtoM with PHP 7.3, so there may be breaking changes introduced in that version of PHP that will require code changes in AtoM. We are hoping to upgrade to PHP 7.3 for the 2.6 release, but at present, the highest version of PHP known to work with AtoM is v7.2. Unfortunately, for now I suggest you downgrade. 

Second, it looks like the system is trying to use cURL, but you don't have it installed. I'm assuming this means the php-curl extension, but just in case, let's make sure cURL itself is installed. You can try installing it with the following to see if it changes anything: 
More importantly however is that we have php-curl, and the other PHP extensions installed, as outlined in the installation documentation here: 
Notice that many of these extensions are PHP version specific - they have names like php7.2-curl, so even if PHP 7.3 doesn't have any breaking changes affecting AtoM, it may install differently and look for extensions in different locations, and as such it may not be finding these extensions. Hopefully downgrading, and making sure these are all installed, with resolve the issue. 

Finally, there's Radda's previous suggestion in this thread to check the php.ini file. We have some basic instructions on how to find this in our docs here: 
You'll also want to make sure you don't have multiple PHP versions installed as Radda suggested, and that the php-fpm socket used by AtoM is currently being used by a different PHP version. This is rather old, so you might try finding newer resources related to your PHP and Ubuntu versions, but this might point you in the right direction for checking such things: 
I would also try restarting PHP-FPM. See: 
Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/3d2782ae-7275-44ce-9423-fe12d5cab3db%40googlegroups.com.

Matthew Bruton

unread,
Nov 18, 2019, 9:37:53 AM11/18/19
to AtoM Users

hi Dan,
so I re-installed everything, OS and all, and the problem went away. I held off on upgrading to PHP 7.3, so this is almost certainly the problem here. But your advice here is nonetheless useful, in case I am wrong and the problem re-occurs.
Thanks, as ever.

Reply all
Reply to author
Forward
0 new messages