digitalpoint
Well-known member
The quick fix is to go to@Ozzy47 I just updated @digitalpoint's Cloudflare addon to 1.5.1 and I'm getting these errors in the console when trying to modify a phrase. The phrase does not save, and there is no error logged in the XF error log. Front end displayed the "Oops! We ran into some problems" message.
Code:PHP: <br /> <b>Fatal error</b>: Declaration of OzzModz\CountryLogin\XF\FsMounts::loadDefaultMounts(array $config) must be compatible with DigitalPoint\Cloudflare\XF\FsMounts::loadDefaultMounts(array $config, $allowAdaptersNotInConfig = true) in <b>/home/nginx/domains/domain.com/public/xenforo/src/addons/OzzModz/CountryLogin/XF/FsMounts.php</b> on line <b>10</b><br /> core-compiled.js:43:78 defaultAjaxError https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:43 l https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:39 jQuery 6 c fireWith l o (Async: EventHandlerNonNull) send ajax ajax https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:41 submit https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:235 (Async: setTimeout handler) submit https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:235 proxy https://domain.com/xenforo/js/xf/core-compiled.js?_v=5d9b041b:73 jQuery 2 dispatch handle
Trying to disable this addon, I get this error.
Code:Fatal error: Declaration of OzzModz\CountryLogin\XF\FsMounts::loadDefaultMounts(array $config) must be compatible with DigitalPoint\Cloudflare\XF\FsMounts::loadDefaultMounts(array $config, $allowAdaptersNotInConfig = true) in /home/nginx/domains/domain.com/public/xenforo/src/addons/OzzModz/CountryLogin/XF/FsMounts.php on line 10
Trying to disable the Cloudflare addon works.
OzzModz/CountryLogin/XF/FsMounts.php
change this:
PHP:
public static function loadDefaultMounts(array $config)
to this:
PHP:
public static function loadDefaultMounts(array $config, $allowAdaptersNotInConfig = true)
That will at least get you going for now. In the meantime, I'm going to see if there might be a more compatible way to do what I'm doing (it might be as simple as raising the execution order of my class extension to something really high).