Topic on Extension talk:Scribunto

Recommended version for MW 1.28?

3
Cavila (talkcontribs)

For the sake of helpful documentation, I was wondering which version is recommended for MW 1.28. The 1.30 version from the Extension Distributor is clearly too new because of the way extensions are registered, while the 1.27 version may throw a fatal error related to object caching (unless you apply the patch to LuaCommon.php below - provided below in case anyone else has run into this.). Which I guess leaves us with 1.29?

     
  if ( !$cache ) {
           /// @todo: Clean up when support for MW < 1.27 is dropped
           if ( is_callable( 'ObjectCache::getLocalServerInstance' ) ) {
               $cache = ObjectCache::getLocalServerInstance( 'hash' );
           } else {
               $cache = ObjectCache::newAccelerator( 'hash' );
           }
       }
Anomie (talkcontribs)

While ExtensionDistributor doesn't provide extensions for unsupported versions of MediaWiki, a 1.28 branch of the extension does exist.

On the other hand, you really should upgrade your MediaWiki installation to a supported version of MediaWiki. The unsupported 1.28 version (of MediaWiki and of Scribunto) may not have received patches for security issues fixed after 1.28 support ended.

Cavila (talkcontribs)

Thanks! Upgrading can be time-consuming business and introduce compatibility issues so I'd rather pick an appropriate time but I'll get there eventually (I tend to go for LTS versions butI had specific reasons for upgrading to 1.28 at the time).

Reply to "Recommended version for MW 1.28?"