"Fatal error: The allowed memory size of 268435456 bytes exhausted" usually happens for WordPress website and it's caused by the WordPress doesn't get enough memory that it needs to do whatever stuff that it supposes to do.
Posted by I. B. Gd Pramana A. Putra, 30 Jun 22, last updated 30 Jun 22
"Fatal error: The allowed memory size of 268435456 bytes exhausted" usually happens for WordPress website and it's caused by the WordPress doesn't get enough memory that it needs to do whatever stuff that it supposes to do.
One of the solution to fix "Fatal error: The allowed memory size of 268435456 bytes exhausted" on WordPress is by increasing the memory limit for WordPress.
Go to wp-config.php
and change WP_MEMORY_LIMIT
// wp-config.php
/** Memory Limit */
define('WP_MEMORY_LIMIT', '512M');