After googling a bit this appears to be a problem with PHP 7.1:
it is PHP Design.
Changed in PHP 7.1.0:
The empty index operator (e.g. $str[] = $x) is not supported for strings
anymore, and throws a fatal error instead of silently converting to array.
So that means that you need to say that it is an array $myString = array();
Prior to PHP 7.1.0 , PHP converted a [] to array() silently, and now not anymore
———————
Error Details
=============
An error of type E_ERROR was caused in line 376 of the file /home/httpd/vhosts/mybemidji.com/httpdocs/wp-content/plugins/client-dash/client-dash.php. Error message: Uncaught Error: [] operator not supported for strings in /home/httpd/vhosts/mybemidji.com/httpdocs/wp-content/plugins/client-dash/client-dash.php:376
Stack trace:
#0 /home/httpd/vhosts/mybemidji.com/httpdocs/wp-includes/class-wp-hook.php(290): ClientDash->action_links(‘
——————–
FILE: \plugins\newsletter\includes\TNP.php
———————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
———————————————————————-
284 | ERROR | “$this” can no longer be used in a plain function or
| | method since PHP 7.1.
I use WP 5.1.1
All the sites have stopped. What can I do, and why is there a problem?
Regards
Drachsi
Firstly at the top there’s this warning:
Warning: A non-numeric value encountered in /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/lib/core.php on line 413
On the same page I’ve also started seeing this message: “Note : Based on your server memory limit you should not upload larger images then 800 x 600 pixel”, which wasn’t present before and is a bit unusual for our fairly capable dedicated server with plenty of memory and a high limit in PHP. No other errors like this spotted on any other part of the site.
Otherwise the system works normally.
]]>We use yoast 8.1.2 version and we updated our php version to 7.1 and after it, website stopped to work.
On this website, we use php 7.1 and yoast 8.0 and it is wokring:
https://www.vcjobswithafuture.org/finish-high-school/
Is yoast compatible with php 7.1?
]]>I am having some issues with the REST API. Whenever I use ‘GET’ method, it works fine. However, ‘POST’ method results in following error.
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}
My server is NGINX with php7.1 wordpress version: 4.9.6
Here is the action hook I used.
//rest api init
add_action('rest_api_init', function () {
register_rest_route('test-url', '/submit-links', aarray(
'methods' => 'POST',//works perfect if GET method is used.
'callback' => array($this, submit_links_to_db),
));
});
Nginx URL rewrite:
try_files $uri $uri/ /index.php$is_args$args;
There is noting in the error logs. Please let me know if you need more information. I would really appreciate any help.
Thank you
]]>This worked perfectly in v2 of the plugin.
I am using the latest 3.0.7
It shouldn’t be this hard to get right.
]]>PHP Deprecated: Function mcrypt_create_iv() is deprecated in /www/htdocs/<my-server-folder-structure>/wp-content/plugins/super-socializer/library/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php on line 57
Would be nice if this could be fixed, because i have all my sites running at least PHP 7.1
]]>We are trying to install the plugin, however after uploading via ftp and also installing via the WordPress ‘add plugin’ feature, when activated it shows php errors at the top of the page (on the back end).
Have you any idea what could be causing this?
Many thanks
]]>6150 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
6183 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
I really want to continue using WPTC because I think it’s a great plugin and helps me rest comfortably knowing I have my own off-site backup. I’d hate to see my backups not happen because of a single function.
Hope you can update this.
]]>