• Resolved kestrel2

    (@kestrel2)


    I’m getting a fatal error in the admin after updating to 3.2.3 – it’s fine when I revert to 3.1.10. This is the error

    PHP Fatal error: Call to undefined method SplFileInfo::getExtension() in /xxxx/xxxxx/xxxxx/wp-content/plugins/codepress-admin-columns/classes/Autoloader.php on line 137

    Running latest Centos 6 version of PHP 5.3, WordPress 4.9.7.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor David Mosterd

    (@davidmosterd)

    Hi,

    You are right. We set the PHP version to 5.3.0 which was a bit of mistake it turns out. We will do another release soon which will set the PHP version to 5.3.8 probably.

    There is really no point to support PHP 5.3.0 as it’s an immature and buggy version. We’ll do more research to which precise version to support when upgrading to PHP 5.4.x or PHP 5.5.x.

    Sorry for the inconvenience, we will fix this within a couple of days.

    On another note, why not consider upgrading your server and/ or PHP to a modern PHP version? I can’t tell why you are on a legacy-version, but if you have no reason: upgrading can be very beneficial.

    You can read more about it here: https://www.admincolumns.com/dropping-support-php-5-2/

    Thanks for reporting and best,
    David

    Thread Starter kestrel2

    (@kestrel2)

    Hi David

    I still won’t be able to upgrade at 5.3.8. The version provided by Centos 6 is PHP 5.3.3, if that helps. Centos 6 is not end of life till 2020 (same as the RedHat version on which it’s based) so there will still be people using it for a while yet. They deliberately use older versions of software for stability, with backported security fixes. I am changing my server and PHP version this year, as it happens, but with many sites to migrate it is not something I can do overnight, so if it’s not too problematic I would greatly appreciate it if you would set the version to PHP 5.3.3 for a while!

    thanks
    Fiona

    Plugin Contributor David Mosterd

    (@davidmosterd)

    Thank you for the information regarding the end of life on those two distros. I’ll probably make an analysis if 5.3.3 is feasible as getExtension() was added to PHP 5.3.6. If that is the only thing, we’ll consider working around it.

    David, version of PHP on site 5.5.38 but your plugin does not work – fatal error – promptly correct it.

    [Thu Aug 30 21:30:53 2018] [warn] [client XXX.XXX.XXX.XXX] mod_fcgid: stderr: PHP Fatal error: Cannot redeclare AC() (previously declared in /var/www/XXXX/data/www/XXXXXXXX/wp-content/plugins/codepress-admin-columns/codepress-admin-columns.php:607) in /var/www/XXXXXXX/data/www/XXXXXXXXXX/wp-content/plugins/codepress-admin-columns/api.php on line 9, referer: https://XXXXXXXXXXX/wp-admin/plugins.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error’ is closed to new replies.