Problem with proxy_fcgi error

#856258
  • Resolved Kosta Ivanov
    Rank Math free

    Hello today i see critical problem with your plugin ๐Ÿ™ Please help me for fix this:

    [Tue Aug 13 04:07:15.229696 2024] [proxy_fcgi:error] [pid 2520557:tid 2520599] [remote 185.180.24.203:19728] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes//var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/class-user.php(66): RankMathUser::get()n#1 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(111): RankMathUser::get_meta()n#2 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(83): RankMathOpenGraphOpenGraph->_title()n#3 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(185): RankMathOpenGraphOpenGraph->get_title()n#4 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(324): RankMathOpenGraphFacebook->title()n#5 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#6 /var/www/clients/...', referer: https://domain.com/author/ivanovi/

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

    We apologize for the issue you are facing with the Rank Math plugin. The error you are encountering seems to be related to a type error in the code, which can occur due to various reasons, including conflicts with other plugins or themes, or issues with the PHP version being used.

    Here are a few steps you can take to troubleshoot and potentially resolve this issue:

    1. Check PHP Version: Ensure that your server is running a compatible version of PHP. Rank Math recommends using PHP 7.2 or higher.

    2. Disable Other Plugins: Temporarily disable other plugins to check if there is a conflict causing this error. If the error disappears, re-enable the plugins one by one to identify the conflicting plugin.

    3. Switch Themes: Try switching to a default WordPress theme (like Twenty Twenty-One) to see if the issue persists. This can help determine if the problem is theme-related.

    4. Update Rank Math: Make sure you are using the latest version of Rank Math. If not, update the plugin to the latest version.

    5. Debugging: Enable debugging in WordPress by adding the following lines to your wp-config.php file:

      define( 'WP_DEBUG', true );
      define( 'WP_DEBUG_LOG', true );
      define( 'WP_DEBUG_DISPLAY', false );

      This will log errors to a debug.log file in the wp-content directory, which may provide more insight into the issue.

    If these steps do not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.

    Thank you for bringing this concern to our attention!

    Sources:
    This Plugin Does Not Work with Your Version of PHP ยป Rank Math

    These steps do not resolve the issue ๐Ÿ™

    Hello,

    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/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    Please make sure that you include admin-level credentials so that we can debug the issue freely.

    Thank you.

    Ok try again

    Hello,

    Please also share the steps to replicate the issue, as your site seems to be working fine and we don’t see any errors in the front end or backend.

    Looking forward to helping you.

    Here that’s the problem

    After access this link i see errors logs on first post

    Click on Profile Koce other Ivanovi, click on ( view all ) recipes for this profiles and boom problem:)

    Regards

    Apparently there is a problem with the RankMath plugin!

    WORDPRESS 6.6.1 DEBUG LOG

    [15-Aug-2024 09:48:47 UTC] PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/class-user.php:46
    Stack trace:
    #0 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/class-user.php(66): RankMath\User::get()
    #1 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(111): RankMath\User::get_meta()
    #2 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(83): RankMath\OpenGraph\OpenGraph->_title()
    #3 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(185): RankMath\OpenGraph\OpenGraph->get_title()
    #4 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(324): RankMath\OpenGraph\Facebook->title()
    #5 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /var/www/clients/client1/web9/web/wp-includes/plugin.php(565): WP_Hook->do_action()
    #7 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #8 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): RankMath\OpenGraph\OpenGraph->do_action()
    #9 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(324): RankMath\OpenGraph\OpenGraph->output_tags()
    #10 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #11 /var/www/clients/client1/web9/web/wp-includes/plugin.php(565): WP_Hook->do_action()
    #12 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #13 /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMath\Frontend\Head->do_action()
    #14 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(324): RankMath\Frontend\Head->head()
    #15 /var/www/clients/client1/web9/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #16 /var/www/clients/client1/web9/web/wp-includes/plugin.php(517): WP_Hook->do_action()
    #17 /var/www/clients/client1/web9/web/wp-includes/general-template.php(3065): do_action()
    #18 /var/www/clients/client1/web9/web/wp-content/themes/recipes/header.php(18): wp_head()
    #19 /var/www/clients/client1/web9/web/wp-includes/template.php(810): require_once('...')
    #20 /var/www/clients/client1/web9/web/wp-includes/template.php(745): load_template()
    #21 /var/www/clients/client1/web9/web/wp-includes/general-template.php(48): locate_template()
    #22 /var/www/clients/client1/web9/web/wp-content/themes/recipes/archive-recipe.php(8): get_header()
    #23 /var/www/clients/client1/web9/web/wp-includes/template-loader.php(106): include('...')
    #24 /var/www/clients/client1/web9/web/wp-blog-header.php(19): require_once('...')
    #25 /var/www/clients/client1/web9/web/index.php(17): require('...')
    #26 {main}
      thrown in /var/www/clients/client1/web9/web/wp-content/plugins/seo-by-rank-math/includes/class-user.php on line 46

    Hello,

    Sorry for the delay in the reply.

    It seems that the credentials are expired again so we cannot replicate this on the website.

    However, looking at the complete log and the page you shared this seems to be happening because your author pages are not correctly setting the user in the global wp_query from WordPress.

    Can you please let us know how you are creating the author archive pages so we can try to replicate it on our own or even better re-activate the login link so we can check the specific settings of those pages on your website?

    Looking forward to hearing back from you.

    Hello,

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

    Thank you.

    Hello,

    We just enabled the plugin on the website to debug the issue and we don’t see the fatal error appearing anymore.

    If we access any of the author pages by going to WordPress Dashboard > Users and clicking the little “View” link below each author we can access all the data just fine.

    Also, the page you shared previously that was throwing a fatal error is now working fine as well.

    You can see the page and the data we are getting on it here: https://i.rankmath.com/i/OlxXVc

    Don’t hesitate to get in touch if you have any other questions.

    Yes, until then everything is fine. Click where I have marked in the picture and you will see my problem

    Screen

    Hello, today I had a little more free time and decided to find out where the problem is coming from. After testing on PHP 8.3 active, 8.2 and 7.4 the problem comes from wp_query in file /includes/class-user.php with line 46. The problem is only on PHP 8.2 and 8.3, on PHP 7.4 no problem wp_query works normally.

    My server work default with 8.3

    I don’t know if this will solve my problem.

    $wp_query;
    if ( ! $wp_query ) {
       return;
    }

    Regards

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

The ticket ‘Problem with proxy_fcgi error’ is closed to new replies.