• Resolved chrisco23

    (@chrisco23)


    I read the comments of dozens of people in the other report which was marked “closed” even though it can be seen that a number of people still experience the issue.

    I have searched in dev tools, console and network tabs, and found nothing.

    When clicking the data optimization button and following the debug log I do see:

    [01-Feb-2021 21:37:05 UTC] PHP Warning:  session_start(): Cannot start session when headers already sent in /var/www/notmyrealdomain.com/wp-content/plug
    ins/upvote-plugin/includes/facebookoauth.php on line 3
    [01-Feb-2021 21:37:05 UTC] PHP Warning:  session_start(): Cannot start session when headers already sent in /var/www/notmyrealdomain.com/wp-content/plug
    ins/upvote-plugin/includes/twitteroauth.php on line 6

    This suggests possibly some conflict with the UpVote theme but I don’t know if it’s Yoast’s fault or UpVote’s fault and I don’t want to screw up my UpVote setup if I don’t have to.

    Also, I vaguely remember some of these session_start issues when I last seriously coded PHP about 15 years ago, but anyway I don’t see how being in the “Tools” section of the “SEO” section of the WP dashboard, and clicking a button that would seem to just be doing some database work, … I don’t see how this can be related at all to my theme (in other words I’m not even “looking” at a themed page).

    Ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi @chrisco23

    We’re sorry that you are experiencing problems with our plugin and know how frustrating it is to see the optimization failed to complete. We understand that you are getting the error below when trying to run the SEO data optimization.

    Oops, something has gone wrong and we couldn’t complete the optimization of your SEO data. Please click the button again to re-start the process.

    First, I want to assure you that not performing the optimization process will not affect your site negatively in search results. Additionally, the optimization process will run silently in the background as content on your site is created, modified, or removed. As the optimization process makes our plugin work more efficiently, let’s look into what might be causing this on your site. If you’d like to skip directly to the next steps, we have summarized our findings at the end of the email.

    We have seen this notice appear for sites where the previously optimized data is invalid or when there is a plugin or theme conflict. We’ll start with a reset of the optimization to make sure we’ve cleared out previously optimized data. You may be hesitant to reset data, but we can assure you that this does not undo any of the hard work you’ve done when it comes to the SEO of your content.

    To reset the data, please follow these steps:
    – Install & activate the Yoast Test Helper plugin
    – Go to your WordPress admin dashboard > Tools (sidebar) > Yoast Test
    – Locate the Yoast SEO section and click on the ‘Reset indexables tables & migrations’, ‘Reset Prominent words calculation, and ‘Reset Internal link counter’ buttons (whichever applicable for free & premium). After each click, the page will reload to confirm that each reset was successful.

    Now that we have removed any previously stored data, we’ll need to rerun the data optimization. You have a few options to run the SEO data migration:
    – Inside the WordPress admin area: This is the method where you saw the above error.
    – Use the WP-CLI commands: This requires access to your server through a terminal service. Your web host may be able to help. If you have a large site, we highly recommend this method.
    If the optimization completes successfully after the reset, you are ready to start using Yoast SEO and its features.

    If the SEO data optimization doesn’t complete after the reset, we’ll need to gather some information from your browser to determine the next steps. Please open your browser’s console and check for any JavaScript errors. If you’re not familiar with your browser console, we have a guide that will help: How to find JavaScript errors with your browser’s console

    We have a list of known error codes with recommended solutions. If the error is not listed or you have questions about the error, please provide us with a screenshot of the error. You can learn more about it here — https://yoast.com/help/seo-data-optimization-not-complete-successfully/

    Thread Starter chrisco23

    (@chrisco23)

    Thank you for your detailed reply.

    I am an underemployed/semi-retired web dev myself so I follow what you suggest, I think.

    I’m not a WP guru and I didn’t have WP-CLI installed but I am running this site and a few other WP sites on a linode, so this is something I should know about.

    However, still no progress.

    Chromium Version 88.0.4324.96 (Official Build) Arch Linux (64-bit)
    
    $ uname -r
    5.10.10-arch1-1

    This site in question is in “stealth mode” but I just want to be sure I have things well under control in terms of managing the basics (to start) of Yoast.

    • This reply was modified 5 years, 4 months ago by chrisco23.

    Thanks for your clarification. If you don’t have WP-CLI installed on your server, that’s fine. In this case, can you please confirm whether you have tried resetting the Indexables tables and migrations by following the steps given above? If not, can you please try that first to see whether this resolves the issue for you?

    We look forward to hearing from you.

    Thread Starter chrisco23

    (@chrisco23)

    Yes I meant to say that I hadn’t initially had WP-CLI installed but that I installed it as part of this debugging effort.

    I have tried all of the steps without any luck.

    We are sorry to hear that you’re still having trouble with our plugin. Due to the nature of the issue, we’ll need to take a look at your setup. However, we are unable to do it here as this is a public forum.

    So, if you have an active Yoast SEO Premium subscription or if you can consider buying one, we can investigate the issue further directly on your setup privately through email.

    However, if you don’t wish to get the Yoast SEO Premium subscription, that’s completely fine. In this case, you’ll need to troubleshoot the issue further on your setup as we are literally out of any clue at this moment without taking a look at the setup. So, someone from the community might step forward as well who has experienced the issue before.

    Thanks for your understanding!

    Thread Starter chrisco23

    (@chrisco23)

    I finally had a moment to return to this issue, and it seems I’ve resolved it.

    I decided to look into deactivating other plugins that might be causing trouble.

    Since I had noticed in the WP debug.log session_start() warnings relating from oauth code in the UpVote plugin, and yes I know these are only PHP Warnings, but it seemed as good enough place to start, so I deactivated the UpVote plugin, ran the optimization without error, and reactivated the UpVote plugin.

    I still wish I understood more about what the actual conflict was, especially since it may come up again on some future update. I never really found what was really causing Yoast to give the error, as I found nothing in the WP logs, the nginx logs, the mysql logs, etc.

    I don’t know if I mentioned this is a multisite WP site, in case that might somehow be relevant.

    Thanks for bearing with me.

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

The topic ‘oops something has gone wrong (again)’ is closed to new replies.