cancel
Showing results for 
Search instead for 
Did you mean: 

cron job showing php warning error

cron job showing php warning error

PHP 7.0.28-0ubuntu0.16.04.1, magento 2.2.3

user@leathermake:/var/www/html# php bin/magento cron:install
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' - /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xsl.dll' - /usr/lib/php/20151012/php_xsl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Crontab has been generated and saved
6 REPLIES

Re: cron job showing php warning error

Hi @w3_Shaheer

 

you actually have missing php extension which is required like curl , soap , xsl etc.

 

so you either need to installed those php library/extensions or if it is already installed

 

then you need to enabled it from php.ini file.

 

To resolve this issue open your php.ini file, find below extension/library one by one.

 

extension=php_curl.dll
extension=php_soap.dll
extension=php_xsl.dll


uncomment those line by removing ;(semi colon) from the line .

 

then restart your server and check

 

Here is the reference link for extension/library which is required for magento 2 - https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html


It will works !!

if issue solved,Click Kudos & Accept as Solution

Re: cron job showing php warning error

hi, thank you for reply! @ManthanDave

I check everything you mentioned before posting this question, extensions are installed and enabled, ; is removed.

Re: cron job showing php warning error

Hi @w3_Shaheer - okay i understand.

 

if you already have enabled all the things from php.ini including mbstring and intl library as well. 

 

then you have path issue refer this link for more details - https://stackoverflow.com/questions/25027013/how-to-fix-php-warning-php-startup-unable-to-load-dynam...

if issue solved,Click Kudos & Accept as Solution

Re: cron job showing php warning error

I read that question as well before posting this question, it talks about fatal error on windows, my issue is different. 

thank you so much! @ManthanDave

Re: cron job showing php warning error

Hello ,

 

In window wamp server some time created issue due to compatible issue.

 

So downlaod related compatible version of your window.

Re: cron job showing php warning error

Hello @Sunil Patel,

my website is running live on ubuntu 16.04, it's not on wamp or windows.