Upgrading from 1.1.8 to 1.2.5 #1085
Unanswered
tilenk-lucis
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@mts-coder Have you tried switching the case of the trait's path? You can also try to use the trait without a <?php namespace Sp\Widgets;
use Cms\Classes\Controller;
...
class Plugin extends PluginBase
{
use \Sp\Essentials\Traits\ComponentHelpers;
public $require = ['Sp.Essentials'];
...
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I recently upgraded from WinterCMS version 1.1.8 to 1.2.5. Now I have a problem with one of my custom plugins, which I cannot seem to solve.
I have a vendor folder called
sp
which contains 3 plugins essentials, widgets and news. The widgets plugin tries to include the trait from the essentials plugin, but cannot seem to find the plugin folder, even though the entire plugin was not changed during the upgrade.This is the Plugin.php in the widgets plugin.
And this is my Trait file in Sp\Essentials\Traits location.
I tried manually including the plugin folder, but that just makes the aplication crash further down the line, when it tries doing something else with the plugin. The folder names are in lowercase, but from what I read, that should not be a problem. They worked fine before the upgrade too.
The problem it throws is this:
Edit:
Throught trial and error I found out, if I disable the call for the reflection code, the site works (some of the content still doesnt, since it is linked to the plugins).
Is it possible the reflection class changed from version 1.1?
Beta Was this translation helpful? Give feedback.
All reactions