Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Massl on October 18, 2020, 06:02:59 AM

Title: SMF RC3 CacheAPI-memcached Line 178
Post by: Massl on October 18, 2020, 06:02:59 AM
Hi, every time I open the home of the admin panel a new error is generated

Type of error: General
Error message:
2: current() expects parameter 1 to be array, bool given
File: /home/public_html/Sources/CacheAPI-memcached.php
Line: 178
URL of page causing the error: https://mysite.com/index.php?action=admin
Backtrace information
#0: smf_error_handler()
Called from unknown on line -1
#1: current()
Called from /home/public_html/Sources/CacheAPI-memcached.php on line 178
#2: getVersion()
Called from /home/public_html/Sources/Subs-Admin.php on line 87
#3: getServerVersions()
Called from /home/public_html/Sources/Admin.php on line 549
#4: AdminHome()
Called from /home/public_html/Sources/Admin.php on line 499
#5: AdminMain()
Called from /home/public_html/index.php on line 173


Cache is disabled.
Title: Re: SMF RC3 CacheAPI-memcached Line 178
Post by: Suki on October 18, 2020, 10:01:14 AM
Thank you for the report, its a known issue and has been resolved on current github.
Title: Re: SMF RC3 CacheAPI-memcached Line 178
Post by: Massl on October 18, 2020, 10:26:06 AM
Thanks 🙂
Title: Re: SMF RC3 CacheAPI-memcached Line 178
Post by: madwolf27 on October 26, 2020, 05:02:30 PM
Hey. Can you please link to the fix? I found multiple commits related to CacheAPI?
Title: Re: SMF RC3 CacheAPI-memcached Line 178
Post by: Suki on October 26, 2020, 06:25:17 PM
Welcome to SMF.

All those commits are merged into master. Current github package can be obtained from https://github.com/SimpleMachines/SMF2.1/archive/release-2.1.zip