cancel
Showing results for 
Search instead for 
Did you mean: 

problem with maginto ne or more indexers are invalid. Make sure your Magento cron job is running.

SOLVED

problem with maginto ne or more indexers are invalid. Make sure your Magento cron job is running.

Hello,

I had installed maginto 2.1 after install it show this massege in admin panel

ne or more indexers are invalid. Make sure your Magento cron job is running.

 

I tried php magento indexer:reindex, but it does not solved SSH say

[Exception]
Deprecated Functionality: Function mcrypt_module_open() is deprecated in /v
ar/www/public_html/magento2/vendor/magento/framework/Encrypt
ion/Crypt.php on line 54

 

what can I do

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: problem with maginto ne or more indexers are invalid. Make sure your Magento cron job is running

@ريزان_رسول

 

You need to go through the file: vendor/magento/framework/Encryption/Crypt.php

and add the @ sign before any of the mcrypt calls (this instructs the php interpreter to suppress warnings generated from these lines).

For example:

 

<span class="token this">$this</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">_handle</span> <span class="token operator">=</span> <span class="token function">mcrypt_module_open</span><span class="token punctuation">(</span><span class="token variable">$cipher</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token variable">$mode</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">)</span><span class="token punctuation">;</span><code></code>

 

Becomes

 

<span class="token this">$this</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">_handle</span> <span class="token operator">=</span> @<span class="token function">mcrypt_module_open</span><span class="token punctuation">(</span><span class="token variable">$cipher</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token variable">$mode</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">)</span><span class="token punctuation">;</span><code></code>

 

 

 Or check PHP version support your Magento version or not?

 

For More:

https://www.develodesign.co.uk/news/magento-2-fix-mcrypt_module_open-deprecated/

Manish Mittal
https://www.manishmittal.com/

View solution in original post

2 REPLIES 2

Re: problem with maginto ne or more indexers are invalid. Make sure your Magento cron job is running

@ريزان_رسول

 

You need to go through the file: vendor/magento/framework/Encryption/Crypt.php

and add the @ sign before any of the mcrypt calls (this instructs the php interpreter to suppress warnings generated from these lines).

For example:

 

<span class="token this">$this</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">_handle</span> <span class="token operator">=</span> <span class="token function">mcrypt_module_open</span><span class="token punctuation">(</span><span class="token variable">$cipher</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token variable">$mode</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">)</span><span class="token punctuation">;</span><code></code>

 

Becomes

 

<span class="token this">$this</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">_handle</span> <span class="token operator">=</span> @<span class="token function">mcrypt_module_open</span><span class="token punctuation">(</span><span class="token variable">$cipher</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token variable">$mode</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">)</span><span class="token punctuation">;</span><code></code>

 

 

 Or check PHP version support your Magento version or not?

 

For More:

https://www.develodesign.co.uk/news/magento-2-fix-mcrypt_module_open-deprecated/

Manish Mittal
https://www.manishmittal.com/

Re: problem with maginto ne or more indexers are invalid. Make sure your Magento cron job is running

PHP 7.1 would be supported in Magento since Magento 2.2
And there wouldn't be support of PHP 7.1 in Magento 2.0 or 2.1

Prema M