Deprecated Function mcrypt is throwing errors

Discussion in 'GeoCraft WordPress Theme' started by vsbiz, Jan 9, 2020.

  1. vsbiz

    vsbiz New Member

    Joined:
    Dec 4, 2013
    Messages:
    3
    Likes Received:
    0
    Location:
    Cleveland Ohio
    New install of GeoCraft V2.0.9 is using a deprecated function and the result is the following errors related to specific areas within theme.

    Error occurs with php7.2.x versions and all versions prior to 7.2 are deprecated and not suggested for use.

    Right now I have active site and new test site, both of which throw same error.
    The only resolution seems to be to replace mcrypt function calls with something suitable for php7.2.x

    Abdul Rahman made good suggestion here for replacement
    https://stackoverflow.com/questions...ted-what-is-the-alternative/58486478#58486478

    but unfortunately I cannot do that.....so

    Could you please provide suggestion for workaround or update GeoCraft Version 2.0.9 to handle new function?

    ======copy of my errors thrown while using wp in debug mode======

    Member Dashboard Access
    Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/class-encryption.php:30 Stack trace: #0 /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/dashboard/templates/listings.php(28): GC_Encryption->encode('a:4:{s:6:"actio...') #1 /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/dashboard/class-dashboard.php(298): include('/home/**removed**...') #2 /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/dashboard/class-dashboard.php(130): GC_dashboard->user_listing(41) #3 /home/**removed**/public_html/ol/wp-includes/class-wp-hook.php(288): GC_dashboard->view('') #4 /home/**removed**/public_html/ol/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #5 /home/**removed**/public_html/ol/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #6 /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/template_dashboard.php(19): d in /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/class-encryption.php on line 30

    Member Add Listing Access
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/**removed**/public_html/ol/wp-content/themes/geocrafttheme-v2/library/geocraft-functions.php on line 43
    ======copy of my errors thrown while using wp in debug mode end===

    and as per evanedgar in previous post on forum
    https://www.inkthemes.com/community...an-object-that-implements-countable-in.23637/
    Getting the following error:
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /......./wp-content/themes/geocrafttheme-v2/library/geocraft-functions.php on line 43
     
  2. shemaela21

    shemaela21 Guest Staff Member

    Joined:
    Apr 6, 2019
    Messages:
    855
    Likes Received:
    1
    Hello,

    Warm Wishes From InkThemes,

    Will you please allow us to check your website dashboard for once?

    Kindly send the below-mentioned credential details at [email protected] along with the thread link.

    WordPress Website URL: -
    WordPress Username: -
    WordPress Password: -

    C-Panel Website URL: -
    C-Panel Username: -
    C-Panel Password: -

    We will let you know the needful.

    Regards,
    Shemaela
    InkThemes.com
     
  3. vsbiz

    vsbiz New Member

    Joined:
    Dec 4, 2013
    Messages:
    3
    Likes Received:
    0
    Location:
    Cleveland Ohio
    Done...Thanks
     
  4. shemaela21

    shemaela21 Guest Staff Member

    Joined:
    Apr 6, 2019
    Messages:
    855
    Likes Received:
    1
    Hello,

    Warm Wishes From InkThemes,

    Thanks for Emailing!

    We have successfully received your support request on our Email.

    Our team member will contact you soon regarding the query you have.

    Kindly be patient until we get back to you.

    Regards,
    Shemaela
    InkThemes.com
     

Share This Page