Title: php errors due to Yoast (?)
Last modified: April 19, 2021

---

# php errors due to Yoast (?)

 *  Resolved [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/)
 * Hello,
 * When browsing sub pages from within section :
 * [https://metalquartz.com/en/products/](https://metalquartz.com/en/products/)
 * I have plenty of php errors on all pages within the “products” section
    such 
   as : [https://metalquartz.com/en/products/protected-bulletproof-counters/](https://metalquartz.com/en/products/protected-bulletproof-counters/)
   or [https://metalquartz.com/en/products/single-hung-doors/](https://metalquartz.com/en/products/single-hung-doors/)
 * Since it happens only in english (and not in french or Dutch) I thought it was
   due to WPML. But after reaching out to their support team they discovered it 
   was related to Yoast.
 * See screenshots from WPML here : [https://wpml.org/forums/topic/php-page-errors-that-happen-only-in-one-translation-language/](https://wpml.org/forums/topic/php-page-errors-that-happen-only-in-one-translation-language/)
 * Can somebody help e please ? 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-due-to-yoast%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

1 [2](https://wordpress.org/support/topic/php-errors-due-to-yoast/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-errors-due-to-yoast/page/2/?output_format=md)

 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14338334)
 * We’re sorry to hear you are experiencing this issue on your site.
 * We reviewed the issue and it looks like it may be related to the theme. Can you
   please confirm whether the issue still occurs with only Yoast SEO, WPML, and 
   a default theme such as [TwentyTwentyOne](https://wordpress.org/themes/twentytwentyone/)
   active?
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14338443)
 * Yes I confirm it doesn’t work even with TwentyTwentyOne.
    All I could to to remove
   the php errors is to disable the plugin “WP Debbuging” but then it shows a blank
   page…
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14339534)
 * Hi,
 * Do you also have all of the necessary downloaded plugins as per WPML documentation
   [here](https://wpml.org/documentation/related-projects/using-wordpress-seo-with-wpml/)
   to ensure that Yoast SEO is working well with WPML?
 * Just to clarify, after reading the WPML forum thread, even if you have a default
   WP theme such as TwentyTwentyOne and only Yoast SEO v16.1.1 as the only plugin
   enabled (WPML disabled), you are still encountering those PHP errors?
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14339981)
 * Hi,
 * Yes (Yoast SEO, Yoast Multilingual, WPML Multinlingual, WPML String Translation,
   WPML Translation Management, WPML All Import, WPML CMS Nav, WPML Media)
 * If WPML is disabled the site doesn’t show up since it’s multilingual
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14340191)
 * Hi,
 * Would it be possible for you to manually reinstall the latest version of Yoast
   SEO for WordPress v16.1.1 via FTP to see if this helps? You can follow the steps
   here — [https://yoast.com/help/how-can-i-update-my-free-plugin/#ftp](https://yoast.com/help/how-can-i-update-my-free-plugin/#ftp)
 * Please also do clear your browser’s cache and cookies. After manually reinstalling
   the Yoast SEO plugin via FTP, please try resetting our indexables in the database
   tables by following the steps below?
 * 1. Install & activate the [Yoast Test Helper plugin](https://wordpress.org/plugins/yoast-test-helper/)
   
   2. Go to Tools > Yoast Test 3. Locate the Yoast SEO section and click on the ‘
   Reset indexables tables & migrations’. The page will reload to confirm that each
   reset was successful. Note: this won’t actually erase your SEO data, which is
   also stored in WordPress’ default tables. It’ll just reset our index (custom 
   tables) for that data. 4. Go to SEO > Tools, and under SEO data, click the “Start
   SEO data optimization” button to allow Yoast to rescan your content.
 * For your site’s health and safety, we recommend creating regular backups of your
   site and database. This is especially important before installing, updating, 
   or removing plugins. Learn more about the benefits of regular backups.
 * After trying the above, are the PHP errors still populating for those products?
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14340694)
 * Hey
    1. I deleted Yoast via ftp
    2. Reinstalled it via FTP but it didn’t show in admin
    3. Added Yoast via normal “add plugin” procedure and activated it
    4. Cleared cache and cookies
    5. Installed Yoast Test Helper
    6. Clicked Reset Indexables tables & migrations
    7. Got this :[https://www.dropbox.com/s/yxci2hdlvg1nb2v/Yoast_Test_Error.png?dl=0](https://www.dropbox.com/s/yxci2hdlvg1nb2v/Yoast_Test_Error.png?dl=0)
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14340983)
 * Hello,
 * Thanks for sharing that screenshot. For Yoast SEO to work, it needs to be able
   to create tables in your database but it seems it is unable to do so in this 
   case. Yoast SEO will show you an error message when we are unable to create tables
   automatically.
 * We recommend you please create the relevant table manually by following the steps
   given here. [Error: Yoast SEO cannot create database tables](https://yoast.com/help/cannot-create-database-tables/)
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14340996)
 * Ok, but before doing so, why is it that NOW Yoast can’t create table, but was
   able to do so before ?
 * Also if I do that won’t I mess with the site ?
 * Thanks
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14341214)
 * This could happen if you recently updated your Yoast SEO plugin. We recommend
   creating a backup of your site and reach out to your web hosting provider for
   assistance. They will be more knowledgeable on creating the database tables.
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14341548)
 * Firstly :
    1. I redid disable/delte Yoast + Reinstall + empty cache + Yaost helper : WORKING
    2. SEO data optimization : disabled for non-production environments ! NOT WORKING
    3. Found this [solution ](https://wordpress.org/support/topic/cant-run-seo-data-optimisation/):
       NOT WORKING
 * Secondly :
 * I have duplicated the entire site to another server and did the exact same steps,
   till the end. Everything worked… BUT the php errors aren’t gone. They’re just
   not the same ones from before (even with TwentyTwentyOne)
 * See
    [https://mq.arnostudio.be/en/products/single-hung-doors/](https://mq.arnostudio.be/en/products/single-hung-doors/)(
   duplicate server) vs [https://metalquartz.com/en/products/single-hung-doors/](https://metalquartz.com/en/products/single-hung-doors/)(
   real server)
 * Thanks
    -  This reply was modified 5 years ago by [ohyeahz](https://wordpress.org/support/users/ohyeahz/).
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14341859)
 * Can you confirm what version of WordPress you have on the main site, [https://metalquartz.com/](https://metalquartz.com/)?
 * Looking at one of your screenshots shared in WPML forum, you have this error:
 *     ```
       Warning: Trying to access array offset on value of type bool in /wp-content/plugins/wordpress-seo/src/helpers/schema/image-helper.php on line 98 
       Warning: Trying to access array offset on value of type bool in /wp-content/plugins/wordpress-seo/src/helpers/schema/image-helper.php on line 100 
       Warning: Trying to access array offset on value of type bool in /wp-content/plugins/wordpress-seo/src/helpers/schema/image-helper.php on line 101
       ```
   
 * We currently have a bug report open with our development team with this warning.
   We’ve found out that this error notice comes from the Social Logo image configured
   under SEO → Seach Appearance. Can you let us know if you remove the image from
   it temporarily and check if the notice is gone on the front-end? If so, can you
   please let us know if you configure a new logo image file under that setting,
   and check again, if the notice reappears?
 * Apart from the issue, just a note: you are seeing this notice on your live site
   because WP_DEBUG is enabled on your site, we recommend not having this on “true”
   for production sites as this can show technical details of your site/server setup.
   This setting is configured in the wp-config.php file of your WordPress installation
   where you set it to “false”.
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14341897)
 * 5.7.1 for both sites
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14342216)
 * I have removed the Social Logo and disabled WP_DEBUG in both sites.
 * metalquartz.com > Blank page no php error (looking at source it seems the page
   didn’t finish loading the code)
    mq.arnostudio.be > php errors still there
 * Thanks
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14345797)
 * Hello,
 * Thanks for following up.
 * You mentioned one of the solutions that worked earlier was that you deactivated
   and uninstalled the Yoast SEO plugin, emptied cache, reinstalled the plugin and
   reset the Indexables table and migrations with the Yaost Test Helper plugin. 
   Can you please retry this again but not run the SEO data optimization tool yet?
 *  Thread Starter [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * (@ohyeahz)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/#post-14355191)
 * Hello again (sorry for the delay)
 * What I did on Metalquartz.com
    1. Deleted Yoast and Yoast Multilingual
    2. Cleared cache
    3. Reinstalled the plugins
    4. Installed Yoast Test Helper
    5. Clicked Reset Indexables tables & migrations
    6. Deleted social Logo
    7. Did NOT click SEO data optimization tool
 * The page with php errors ([https://metalquartz.com/en/products/single-hung-doors/](https://metalquartz.com/en/products/single-hung-doors/))
   
   is just blank but in source code the page seems top have stopped loading before
   the <body> tag
 * Thanks again

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

1 [2](https://wordpress.org/support/topic/php-errors-due-to-yoast/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-errors-due-to-yoast/page/2/?output_format=md)

The topic ‘php errors due to Yoast (?)’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 19 replies
 * 6 participants
 * Last reply from: [ohyeahz](https://wordpress.org/support/users/ohyeahz/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-errors-due-to-yoast/page/2/#post-14374037)
 * Status: resolved