Plugin Support
Kush
(@kushnamdev)
Hi @cnldigital,
Thanks for reaching out.
Based on the error details you’ve shared, this issue is not related to Optimole. The error originates from the Avada theme, specifically from this file:
/wp-content/themes/Avada/includes/lib/inc/fusion-app/class-fusion-app.php
It’s caused by a call to the wp_check_post_lock() function, which is part of WordPress core and typically only available in the admin context. If Avada attempts to call it outside that context (e.g., during a frontend preview or live editor session), it can lead to this fatal error.
To resolve this, we recommend contacting Avada’s support team and sharing the full error stack trace. They may need to apply a patch or update the logic to ensure the function is called only when it’s available.
Please let us know if you need help with anything related to Optimole.
Best regards,
Thank you for your reply Kush. I seem to have a different issue now I reached out to Avada but they said it is an optimole issue. Can you please look into it for me?
Fatal error: Uncaught Error: Call to undefined function ctype_digit() in /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chrinaluc49573/wp_site_1696804313/wp-content/plugins/optimole-wp/inc/tag_replacer.php:351 Stack trace: #0 /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chrinaluc49573/wp_site_1696804313/wp-content/plugins/optimole-wp/inc/tag_replacer.php(243): Optml_Tag_Replacer->parse_dimensions_from_tag(‘
process_image_tags(‘…’, Array) #2 /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chrinaluc49573/wp_site_1696804313/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘…’, Array) #3 /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chrinaluc49573/wp_site_1696804313/wp-content/plugins/optimole-wp/inc/manager.php(549): apply_filters(‘optml_content_i…’, ‘…’, Array) #4 /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chr in /hermes/bosnacweb06/bosnacweb06af/b2207/ipg.chrinaluc49573/wp_site_1696804313/wp-content/plugins/optimole-wp/inc/tag_replacer.php on line 351
Plugin Support
Kush
(@kushnamdev)
Hi @cnldigital,
Thank you for reporting the issue.
The error you’re encountering:
Fatal error: Uncaught Error: Call to undefined function ctype_digit()
is not caused by the Optimole plugin itself, but rather by the server environment where your site is hosted. The function ctype_digit() is a standard PHP function that relies on the ctype extension, which is either missing or disabled in your current PHP setup.
To resolve this, please contact your hosting provider and request that the ctype extension be enabled for your PHP environment. This extension is commonly included by default in standard PHP installations, and enabling it should fully resolve the issue.
Once the extension is enabled, Optimole should function correctly without any further changes.
Let us know if you need any assistance coordinating with your hosting provider.
Best regards,