All in One SEO

Error with All in One SEO

You may have this kind of error with All in One SEO :

Fatal error: Uncaught Error: Call to undefined method AIOSEO\Plugin\Common\Sitemap\Sitemap::saveXslData() in /wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/File.php:243 Stack trace: #0 /wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/File.php(221): AIOSEO\Plugin\Common\Sitemap\File->writeSitemap('sitemap.xml', Array, 621) #1 /wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/File.php(179): AIOSEO\Plugin\Common\Sitemap\File->writeSitemaps(Array) #2 /wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/Sitemap.php(192): AIOSEO\Plugin\Common\Sitemap\File->generate() #3 /wp-includes/class-wp-hook.php(305): AIOSEO\Plugin\Common\Sitemap\Sitemap->regenerateStaticSitemap(14) #4 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #5 /home/hokushu/www/hokushu.net/ref in /wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/File.php on line 243

Or :

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 481
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Options.php on line 794
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 491
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Options.php on line 481

Or :

Uncaught Error: Call to a member function all() on null in /wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Meta/Robots.php:276
Stack trace:
#0 /wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Meta/Robots.php(210): AIOSEO\Plugin\Common\Meta\Robots->globalValues(Array, true)
#1 /wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Meta/Robots.php(112): AIOSEO\Plugin\Common\Meta\Robots->post()
#2 /wp-content/plugins/all-in-one-seo-pack-pro/app/Pro/Meta/Robots.php(26): AIOSEO\Plugin\Common\Meta\Robots->meta()
#3 /wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Views/main/meta.php(17): AIOSEO\Plugin\Pro\Meta\Robots->meta()
#4 /wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Main/Head.php(173): require(‘/home/g30505iit…’)

Or :

/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Message d’erreur : Uncaught RuntimeException: Error saving action: Error saving action: Table ‘jecuisinuhappy1.yd_actionscheduler_actions’ doesn’t exist in /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #3 /wp-content/plugins/all-in-o

Or :

Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/all-in-one-seo-pack/app/Common/Social/Output.php:142 Stack trace: #0 /wp-content/plugins/all-in-one-seo-pack/app/Common/Social/Output.php(142): array_filter(NULL)

Or :

PHP Fatal error:  Uncaught Error: Call to undefined function AIOSEO\Plugin\Common\Traits\Helpers\determine_locale() in /wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Language.php:23
Stack trace:
#0 /wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Language.php(34): AIOSEO\Plugin\Common\Utils\Helpers->currentLanguageCode()
#1 /wp-content/plugins/all-in-one-seo-pack/app/Common/Schema/Graphs/WebSite.php(30): AIOSEO\Plugin\Common\Utils\Helpers->currentLanguageCodeBCP47()
#2 /wp-content/plugins/all-in-one-seo-pack/app/Common/Schema/Schema.php(103): AIOSEO\Plugin\Common\Schema\Graphs\WebSite->get()
#3 /wp-content/plugins/all-in-one-seo-pack/app/Common/Views/main/schema.php(18): AIOSEO\Plugin\Common\Schema\Schema->get()
#4 /wp-content/plugins/all-in-one-seo-pack/app/Common/Main/Head.php(172): require('/home2/wpmid...')
 in /wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Language.php on line 23

Or :

An error of type E_COMPILE_ERROR was caused in line 14 of the file /wp-content/plugins/all-in-one-seo-pack/aioseop_class.php. Error message: require_once(): Failed opening required ‘/wp-content/plugins/all-in-one-seo-pack/admin/aioseop_module_class.php’ (include_path=’/pear’)

Or :

An error of type E_ERROR was caused in line 1531 of the file /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Helpers.php. Error message: Uncaught Error: Call to undefined function AIOSEO\Plugin\Common\Utils\get_current_screen() in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Helpers.php:1531
Stack trace:
#0 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(293): AIOSEO\Plugin\Common\Utils\Helpers->getPost(255)
#1 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(117): AIOSEO\Plugin\Common\Migration\GeneralSettings->migrateHomePageDescription()
#2 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(34): AIOSEO\Plugin\Common\Migration\GeneralSettings->migrateHomePageMeta()
#3 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/Migration.php(134): AIOSEO\Plugin\Common\Migration\GeneralSettings->__construct()
#4 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/Migration.php(108)

Or :

Fatal error: Uncaught Error: Call to undefined function AIOSEO\Plugin\Common\Utils\get_current_screen() in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Helpers.php:1531 Stack trace: #0 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(293): AIOSEO\Plugin\Common\Utils\Helpers->getPost(19996) #1 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(117): AIOSEO\Plugin\Common\Migration\GeneralSettings->migrateHomePageDescription() #2 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/GeneralSettings.php(34): AIOSEO\Plugin\Common\Migration\GeneralSettings->migrateHomePageMeta() #3 /wp-content/plugins/all-in-one-seo-pack/app/Common/Migration/Migration.php(134): AIOSEO\Plugin\Common\Migration\GeneralSettings->__construct() #4 /wp-content/plugins/all-in-one-seo-pack/a in /wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Helpers.php on line 1531

Or :

/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44

Or :

AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function AIOSEO\\Plugin\\Common\\Traits\\Helpers\\do_blocks()

There are multiple solutions to try to make it work.

Updates

The first thing to do if you are stuck with All in One SEO is to ensure that all your WordPress is up to date. You should check your :

  • WordPress
  • Plugins
  • Theme

Once all these updates are done, check back if these errors appear.

Check All in One SEO

Sometimes, you just need to disable the plugin, and enable it just after to make it work again.

If it doesn’t work, your All in One SEO plugin may be corrupted. To ensure that it’s not your case, you have to re-download the plugin (or the theme delivered with the plugin) and try to install it again.

Check others plugins

Are you sure that the error is related to All in One SEO? Maybe not.

It could be related to another plugin that is not compatible. It could happen when you use a cache plugin, a security plugin, or simply a poorly developed plugin.

Disable all plugins. Then, check for your error, if the error is still there, the problem is not related to plugins compatibility. If there are no more errors, then enable every plugin one by one and check for the error. The goal is to target the plugin involved.

Try another theme

The error can be a problem with your theme.

If it’s not already done, then you should install & activate the default WordPress theme like Twenty Twenty-Two. Check for the error, and see what is happening to be sure that your WordPress theme is not the cause.

Permalinks & htaccess

If it doesn’t work, you may have a problem with your WordPress permalinks and/or your htaccess file. You should go on your WordPress dashboard, and re-saving permalinks from the permalinks page.

Contact the developer

If all these solutions don’t work, we advise you to contact the plugin developer.

You may have found a new bug, or a specific issue. You should get in touch with the developer either on the WordPress plugin forum, either by mail, either on their specific website with their own support.

Alternative solutions

If the developer doesn’t reply, or your problem is very urgent, then you should try an alternative to the plugin.

There are thousands of plugins on the official directory, and many others outside. You should try to find and test them!

If the issue is very specific, and the plugin could not be replaced, we advise you to contact an expert.
This is the best way to ensure you're not going to break your site anymore.