• Resolved frankwarwick

    (@frankwarwick)


    Hello, my problem is that when I try to put the username and password and the url appears this message

    Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/auth.php:144 Stack trace: #0

    I am running this on my Localhost using Homebrew connecting to live site
    HomeBrew is up-to-date and the Doctor says its healthy.

    I ran the command to find the PHP version, i.e. – php –version

    PHP 7.0.21 (cli) (built: Jul 29 2017 09:17:51) ( NTS )
    Zend Engine v3.0.0

    I hope you con help me.

    Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter frankwarwick

    (@frankwarwick)

    Looks like I needed to install mcrypt
    Homebrew command
    brew install mcrypt

    But that did not work even after I restated Mariadb

    Here is the full error

    Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/auth.php:144 Stack trace: #0 /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/apirequest.php(546): SyncAuth->encode_password(‘######’, ‘https://patrick…’) #1 /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/apirequest.php(89): SyncApiRequest->_auth(Array) #2 /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/settings.php(530): SyncApiRequest->api(‘auth’, Array) #3 /Users/mac/Sites/paw/wp-includes/class-wp-hook.php(300): SyncSettings->validate_settings(Array) #4 /Users/mac/Sites/paw/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #5 /Users/mac/Sites/paw/wp-includes/formatting.php(4293): apply_filters(‘sanitize_option…’, Array, ‘spectrom_sync_s…’, Arr in /Users/mac/Sites/paw/wp-content/plugins/wpsitesynccontent/classes/auth.php on line 144

    Plugin Author ServerPress

    (@serverpress)

    Hi Frank,

    Sorry that you’re having trouble with this. You are correct: the mcrypt library needs to be installed. I see that you did this via Homebrew, so you should have the files on your system now.

    Two things for you to check:
    1) Is the extension configured correctly? There are settings in php.ini which dictate where the directories are that store the mcrypt files. These may need to be adjusted depending on where Homebrew placed the files.

    2) You need to restart Apache and not MariaDB since these are extensions for the PHP install. After you’ve restarted Apache, you should be able to run a php –info (or call php_info() from within a .php file and load this in your browser). This will show all extensions that have been loaded by PHP and will include information on mcrypt when it is properly installed. Once you see this here, the error message will disappear.

    Also note, that if you’re using a custom PHP install on your Target site, you may need to install mcrypt there as well.

    Hope this helps and let us know if we can give further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to undefined function mcrypt_get_iv_size()’ is closed to new replies.