• Hi all,
    For about 3 years I have been running a pretty large WordPress Multisite. The current WordPress version is 4.7.2 and other than some minor irritations, it runs pretty well.
    The irritations are since updating PHP to 7.3 I get a PHP Warning: count(): Parameter must be an array or an object that implements Countable… but nothing else too serious.

    Obviously I am conscious of the increasing issues that will continue to plague me if I do not update WordPress, so I did just that.
    I backed up the Multisite and updated WordPress to 5.2.1. I updated all the plugins and the theme which all appeared to be OK. However, my Apache error logs have gone off the chart with the following errors;

    [Fri May 24 14:45:43.278291 2019] [core:error] [pid 14307:tid 139719119939328] [client 192.***.*.***:*****] AH00124: Request exceeded the limit of 500 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to inc
    rease the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://*********.*************.com.au/

    Has anyone else come across this and how can I fix this issue with redirects.
    I have gone back to the backup and get no further errors other than the annoying “PHP Warning: count().
    PHP is 7.3 and if I update WordPress to 5.2.1 I get redirect errors.

    Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi I’m sorry for your problem, sometimes you can’t predict what will happen in the future, from php 7.2 the count function generates an warning if it is not an array or object. https://php.net/manual/en/function.count.php
    In summary you can be sure that a plugin or theme fully supports php 7.3 only when it is explicitly written.
    So you will have to do without these themes or plugins the problem is whether these themes or plugins modify wordpress behavior and that is to say that if you do not use this plugin or theme you will no longer have the same function structure as you had before.

    From wordpress 5.2 to 5.2.1 you need php 5.6.20 or later.
    I believe the error of the redirects is due to themes or plugins that do not support php 7.3

    Thread Starter troyw2015

    (@troyw2015)

    Thanks Autotutorial.
    I have checked the plugins and theme are OK with WordPress 5.2.1 and they all are, so you are probably right that the theme or a plugin does not support PHP 7.3.
    I wrote to the Theme author yesterday to ask if Bottomless Designs, Theme Nectar supports 7.3, but am still waiting for a response.
    I will check the plugins as well and post my findings.
    Thanks

    • This reply was modified 6 years, 11 months ago by troyw2015.
    Thread Starter troyw2015

    (@troyw2015)

    Just to update, Nectar is compatible with PHP7.3

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

The topic ‘Multisite Redirect Errors in WP 5.2 Update’ is closed to new replies.