Fatal error: Uncaught Error: Division by zero in /brizy-pro/content/placeholders/image.php on line 94
Only on the front-end (not in the editor) I'm getting the below error for all or most of my posts. I have edited line 94 of the image.php file to change it from:
$rC = (int) $cW / $cH;
to
$rC = ($cH == 0) ? 0 : (int) $cW / $cH;
However, this is just temporary and will be over-written the next time Brizy Pro updates. Could this be resolved ASAP? I've set up a staging site, so Brizy support can go in and check it out themselves.
ERROR BELOW:
Fatal error: Uncaught Error: Division by zero
in /wp-content/plugins/brizy-pro/content/placeholders/image.php on line 94
Call stack:
-
BrizyPro_Content_Placeholders_Image::calculateImageOffsetByFocalPoint()
wp-content/plugins/brizy-pro/content/placeholders/image.php:55 -
BrizyPro_Content_Placeholders_Image::getValue()
wp-content/plugins/brizy/vendor/bagrinsergiu/content-placeholder/lib/Replacer.php:66 -
BrizyPlaceholders\Replacer::replaceWithExtractedData()
wp-content/plugins/brizy/content/dynamic-content-processor.php:25 -
Brizy_Content_DynamicContentProcessor::process()
wp-content/plugins/brizy/content/main-processor.php:43 -
Brizy_Content_MainProcessor::process()
wp-content/plugins/brizy/editor.php:364 -
Brizy_Editor::brizy_content()
wp-includes/class-wp-hook.php:310 -
WP_Hook::apply_filters()
wp-includes/plugin.php:205 -
apply_filters()
wp-content/plugins/brizy/public/main.php:390 -
Brizy_Public_Main::insert_page_content()
wp-includes/class-wp-hook.php:308 -
WP_Hook::apply_filters()
wp-includes/plugin.php:205 -
apply_filters()
wp-includes/post-template.php:255 -
the_content()
wp-content/plugins/brizy/public/views/templates/brizy-blank-template.php:37 -
include()
wp-includes/template-loader.php:106 -
require_once()
wp-blog-header.php:19 -
require()
index.php:17
-
Hi Kyle,
We would like to investigate this error in your WordPress Dashboard. I am creating a private ticket for you. Please look for an email notification from support@brizy.io and in your reply to the email please provide us with credentials to your staging site.
0 -
I was having the same issue. This change resolved the problem for me.
A subsequent Brizy Pro update (2.4.24) failed to resolve the issue.
Is there any news on a permanent fix?
0 -
Hi Dustin,
Thank you for contacting us, and we apologize for any inconvenience you're experiencing.
In order to assist you further, we kindly request access to your WP Admin credentials. To facilitate this process, we have generated a private ticket for you. Please keep an eye on your inbox for an email from support@brizy.io. You can securely share your WordPress access credentials with us by replying to that email.
Should you have any additional questions or concerns, please don't hesitate to let us know.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
3 comments