• Please help.

    I’ve been working for a very long time for this site.

    The site appears to work fine to the public but I can no longer edit pages.

    I found a file (I don’t even know if it is relevant but it was created recently and that’s why it drew my attention) in wp-includes\error_log:

    [26-Jan-2023 02:11:42 America/Chicago] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home2/brixfax1/public_html/wp-includes/compat.php on line 342
    [26-Jan-2023 02:11:42 America/Chicago] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home2/brixfax1/public_html/wp-includes/compat.php on line 342
    [26-Jan-2023 02:11:42 America/Chicago] PHP Warning: require(ABSPATHWPINC/sodium_compat/autoload.php): failed to open stream: No such file or directory in /home2/brixfax1/public_html/wp-includes/compat.php on line 342
    [26-Jan-2023 02:11:42 America/Chicago] PHP Warning: require(ABSPATHWPINC/sodium_compat/autoload.php): failed to open stream: No such file or directory in /home2/brixfax1/public_html/wp-includes/compat.php on line 342
    [26-Jan-2023 02:11:42 America/Chicago] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/sodium_compat/autoload.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home2/brixfax1/public_html/wp-includes/compat.php on line 342
    [26-Jan-2023 02:16:55 America/Chicago] PHP Fatal error: Uncaught Error: Call to undefined function _deprecated_file() in /home2/brixfax1/public_html/wp-includes/class.wp-dependencies.php:11
    Stack trace:

    0 {main}

    thrown in /home2/brixfax1/public_html/wp-includes/class.wp-dependencies.php on line 11

    Today I switched WP_DEBUG in wp-config.php to TRUE and the debug.log when I try to edit a page is:

    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home2/brixfax1/public_html/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home2/brixfax1/public_html/wp-includes/functions.php on line 2162
    
    The 2 lines above are repeated about 20 times and then it ends as follows:
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home2/brixfax1/public_html/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home2/brixfax1/public_html/wp-includes/functions.php on line 2162
    
    Warning: Cannot modify header information - headers already sent by (output started at /home2/brixfax1/public_html/wp-includes/functions.php:7022) in /home2/brixfax1/public_html/wp-admin/includes/misc.php on line 1416
    
    Warning: Cannot modify header information - headers already sent by (output started at /home2/brixfax1/public_html/wp-includes/functions.php:7022) in /home2/brixfax1/public_html/wp-includes/functions.php on line 6865
    
    Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Cookie/Jar.php on line 63
    
    Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Cookie/Jar.php on line 73
    
    Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Cookie/Jar.php on line 89
    
    Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Cookie/Jar.php on line 102
    
    Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Cookie/Jar.php on line 111
    
    Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
    
    Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
    
    Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
    
    Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
    
    Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/brixfax1/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
    
    Fatal error: Out of memory (allocated 20971520) (tried to allocate 81920 bytes) in /home2/brixfax1/public_html/wp-includes/media.php on line 4737
    
    There has been a critical error on this website.

    Please help

    Thank you

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

The topic ‘Fatal Error, Cannot edit pages and other problems’ is closed to new replies.