stanilund
Forum Replies Created
-
So that’s not true, @averta and @skymen . Version 3.8.7 still breaks the Administrator pages when used with PHP 8.1.
I believe these errors are caused by calls with improper data to the functions in the wp-includes folder. Tried 3.8.7 but got the below errors and a blank page, so back to v. 3.8.1 again!
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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/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 url/www.###.se/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91 Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in url/www.###.se/wp-includes/Requests/Transport/cURL.php on line 345 Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in url/www.###.se/wp-includes/Requests/Transport/cURL.php on line 345 Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in url/www.###.se/wp-includes/Requests/Transport/cURL.php on line 345 Warning: Cannot modify header information - headers already sent by (output started at url/www.###.se/wp-includes/Requests/Transport/cURL.php:345) in url/www.###.se/wp-admin/includes/misc.php on line 1416 Warning: Cannot modify header information - headers already sent by (output started at url/www.###.se/wp-includes/Requests/Transport/cURL.php:345) in url/www.###.se/wp-includes/functions.php on line 6865 Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in url/www.###.se/wp-includes/Requests/Transport/cURL.php on line 345 Warning: Cannot modify header information - headers already sent by (output started at url/www.###.se/wp-includes/Requests/Transport/cURL.php:345) in url/www.###.se/wp-admin/admin-header.php on line 9Thank you, guth!
It does! It is strange that Averta uses deprecated code in newer versions when they once made it right, in this v.3.8.1.
There is actually a new 3.8.6 version, but this also contains deprecated code so it breakes the administrator pages. So for now I will stay with 3.8.1, have deactivated automatic updates.
- This reply was modified 3 years, 5 months ago by stanilund. Reason: spelling mistakes
Forum: Plugins
In reply to: [WP REST API Controller] Rest API issues with PHP 8.0 and 8.1Hello tigere.
I ran the scripts inside this plugin through rector for php8.1 at https://www.phptools.online/php-checker and it proposed this changes in wp-rest-api-controller/admin/partials/settings-functions.php :
`— original
+++ new
@@ -1,3 +1,3 @@
<?php
if ( ! class_exists( ‘WP_REST_API_Controller_Settings’ ) ) {@@ -15,10 +15,8 @@
/**
* Post type slugs that we should not allow users to enable/disable.
– *
– * @var array
– */
– private $always_enabled_post_type_slugs;
+ */
+ private readonly array $always_enabled_post_type_slugs;/**
* Class constructor.
@@ -564,4 +562,4 @@}
-new WP_REST_API_Controller_Settings();
\ No newline at end of file
+new WP_REST_API_Controller_Settings(); –Maybe this would fix the problem?
I have not yet tried this plugin myself.Forum: Plugins
In reply to: [Plugin: Sociable] Warning- array slice() message on dashboardCould there be something wrong in rss.php in the includes dir, in the function fetch_rss(url)? The function does not return anything! Made some testing:`include_once(ABSPATH . WPINC . ‘/rss.php’);
$rss = fetch_rss(‘http://feeds.feedburner.com/joostdevalk’);
if ($rss == ”) {
echo ‘- Flödet är tomt
- Flödet är noll
‘;
}else if ($rss == 0){
echo ‘‘;
}else{
$items = array_slice($rss->items, 0, 2);
}
`
The url is correct – it works when I paste it into my beowser.