XF 2.3 Addon errors after XF Cloud updated to 2.3.11

coinreturn

New member
Licensed customer
I have a custom extension that features this code:

Code:
<?php

namespace MyNamespace\MyAddon\XF\Service\Post;

use MyNamespace\MyAddon\Lib\Common\Helpers;

class PreparerService extends XFCP_Preparer
{

    public function setMessage($message, $format = true, $checkValidity = true)
    {

When my XF Cloud install was updated last night, it began throwing errors like this:

Code:
Error: Class "MyNamespace\MyAddon\XF\Service\Post\XFCP_Preparer" not found src/addons/MyNamespace/MyAddon/XF/Service/Post/PreparerService.php:7

I didn't see anything in the release notes to suggest that there were breaking changes.
 
This line:

PHP:
class PreparerService extends XFCP_Preparer

Should be:

PHP:
class PreparerService extends XFCP_PreparerService

When extending a class with the XenForo Class Proxy system, it should always be <Class> extends XFCP_<Class>.

The changes in 2.3.11 have surfaced this a bit more in the process of correcting some other issues and failures within our class aliasing system.
 
Back
Top Bottom