Rank Math Plugin Problem

#923604
  • Resolved Oğuzhan Ezber
    Rank Math free

    Hi, I’ve regenerated thumbnails and then get this error:

    Your site has experienced a serious problem.

    Learn more about troubleshooting WordPress issues.

    I can access the wordpress admin panel but I can’t access if i activate rank math plugin.

    Here is my error log:

    [01-Dec-2024 00:00:15 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * float in /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/media.php:467
    Stack trace:
    #0 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/media.php(135): wp_constrain_dimensions()
    #1 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/media.php(268): image_constrain_size_for_editor()
    #2 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/media.php(970): image_downsize()
    #3 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(703): wp_get_attachment_image_src()
    #4 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(651): RankMathOpenGraphImage->get_attachment_image()
    #5 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(684): RankMathOpenGraphImage->get_variations()
    #6 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(183): RankMathOpenGraphImage->get_image_variations()
    #7 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(410): RankMathOpenGraphImage->add_image_by_id()
    #8 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(391): RankMathOpenGraphImage->set_image_post_meta()
    #9 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(369): RankMathOpenGraphImage->set_user_defined_image()
    #10 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(308): RankMathOpenGraphImage->set_front_page_image()
    #11 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(81): RankMathOpenGraphImage->set_images()
    #12 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(266): RankMathOpenGraphImage->__construct()
    #13 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(324): RankMathOpenGraphFacebook->image()
    #14 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #15 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/plugin.php(565): WP_Hook->do_action()
    #16 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #17 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): RankMathOpenGraphOpenGraph->do_action()
    #18 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(324): RankMathOpenGraphOpenGraph->output_tags()
    #19 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #20 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/plugin.php(565): WP_Hook->do_action()
    #21 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #22 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMathFrontendHead->do_action()
    #23 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(324): RankMathFrontendHead->head()
    #24 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #25 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/plugin.php(517): WP_Hook->do_action()
    #26 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/general-template.php(3064): do_action()
    #27 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/themes/betheme/header.php(21): wp_head()
    #28 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/template.php(810): require_once(‘/home/u93841274…’)
    #29 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/template.php(745): load_template()
    #30 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/general-template.php(48): locate_template()
    #31 /home/u938412747/domains/prepaship.com/public_html/tr/wp-content/themes/betheme/page.php(10): get_header()
    #32 /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/template-loader.php(106): include(‘/home/u93841274…’)
    #33 /home/u938412747/domains/prepaship.com/public_html/tr/wp-blog-header.php(19): require_once(‘/home/u93841274…’)
    #34 /home/u938412747/domains/prepaship.com/public_html/tr/index.php(17): require(‘/home/u93841274…’)
    #35 {main}
    thrown in /home/u938412747/domains/prepaship.com/public_html/tr/wp-includes/media.php on line 467

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    It appears some pages have incorrect cache keys for the OpenGraph image.

    Please attempt deleting the faulty cache by accessing your database and deleting the entries with the meta key rank_math_og_content_image inside the postmeta table, then let the pages generate new ones and it should work as expected.

    Let us know how this goes. Also, let us know if you have further questions or concerns.

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    Hi, thanks for your response.

    I’ve checked but there are no entries inside the postmeta table. All of those are related to: _wp_attached_file

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Looking forward to helping you.

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    I added to login credentials. Thank you

    Hello,

    Kindly also include the FTP login details.

    If you don’t have it handy, you can ask your host provider for it.

    We look forward to helping you.

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    Hi again, any news here?

    Hello,

    When we accessed your site, we could see that you have Rank Math activated.

    Were you able to resolve the issue?

    We also checked the error log and can see that the issue is not mentioned in recent logs.

    Don’t hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    https://prepaship.com/tr/ could you try to access web view? I cannot access. If i deactivate rank math plugin i can access to web view. Could you check please?

    Hello,

    The error occurred because the wp_constrain_dimensions() function in WordPress tried to multiply a string with a float, likely due to invalid image metadata (e.g., missing or non-numeric width/height values). This was triggered by Rank Math’s OpenGraph module while processing the homepage’s meta image.

    Removing the homepage OpenGraph image resolved the issue because the image likely had corrupt or missing metadata. Please go ahead and assign your desired image, ensure the assigned image is valid, accessible, and has proper metadata.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Oğuzhan Ezber
    Rank Math free

    Hello,

    Thanks for helping me. I’ve seen that you have fixed the problem well, and now we can access the home page. However, the same issue has appeared on the blog page (https://prepaship.com/tr/blog/) as well. I think the issue still persists on the blog page.

    Hello,

    We have now deleted all the rank_math_facebook_image and rank_math_facebook_image_id meta keys in your database.

    No pages should be experiencing this issue again.

    Kindly check and confirm that this issue has been resolved for you.

    Oğuzhan Ezber
    Rank Math free

    Thank you. I appreciate it

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 15 replies - 1 through 15 (of 15 total)

The ticket ‘Rank Math Plugin Problem’ is closed to new replies.