gergo85 / oc-backend-plus

Backend toolkit plugin for October CMS and Winter CMS.
http://octobercms.com/plugin/indikator-backend
MIT License
23 stars 22 forks source link

Still doesn't work with latest October #6

Closed cdarken closed 8 years ago

cdarken commented 8 years ago

There are some references to Backend\Models\UserPreferences class in Plugin.php and in partials/_settings_menu_items.htm which are incompatible with latests October release.

gergo85 commented 8 years ago

What do you think exactly? Please upload screenshots or write an example.

cdarken commented 8 years ago

I have october installed through composer. This is the output for composer show for the october packages:

october/backend                       dev-develop 698757c Backend module for October CMS
october/cms                           dev-develop 1401b87 CMS module for October CMS
october/rain                          dev-develop 3a2e714 October Rain Library
october/system                        dev-develop f55d805 System module for October CMS

If I execute artisan plugin:install indikator.backend I get this:

Downloading plugin: Indikator.Backend
Unpacking plugin: Indikator.Backend
Migrating plugin...
Indikator.Backend
 - v1.0.0:  First version of Backend Plus.
 - v1.0.1:  Fixed the update count issue.
 - v1.0.2:  Added Last logins widget.
 - v1.0.3:  Added RSS viewer widget.
 - v1.0.4:  Minor improvements and bugfix.
 - v1.0.5:  Added Random images widget.
 - v1.0.6:  Added virtual keyboard option.
 - v1.1.0:  Added Lorem ipsum components (image and text).
 - v1.1.1:  Hide the "Find more themes" link.
 - v1.1.2:  Added German translation.
 - v1.1.3:  The widgets work on localhost too.
 - v1.1.4:  Added Spanish translation (thanks to jh2odo).
 - v1.2.0:  All features are working on the whole backend.
 - v1.2.1:  Rounded profile image is optional in top menu.
 - v1.2.2:  Fixed the authenticated user bug.
 - v1.2.3:  Hide the Media menu optional in top menu.
 - v1.2.4:  Minor improvements and bugfix.
 - v1.2.5:  Renamed the name of backend widgets.
 - v1.2.6:  Improved the automatic search focus.
 - v1.2.7:  Minor improvements.
 - v1.2.8:  Fixed the hiding Media menu issue.
 - v1.2.9:  Improved the widget exception handling.
 - v1.3.0:  Added 2 new options for Settings.
 - v1.3.1:  Fixed the search field hide issue.
 - v1.3.2:  Delete only demo folder instead of october.
 - v1.3.3:  Added clear button option to form fields.
 - v1.3.4:  Improved the Media menu hiding.
 - v1.3.5:  Fixed the automatically focus option.
 - v1.3.6:  Added the Cache dashboard widget.
 - v1.4.0:  Added 2 new form widgets.
 - v1.4.1:  Added new colorpicker form widget.
 - v1.4.2:  Minor improvements.
 - v1.4.3:  Improved the Cache dashboard widget.
 - v1.4.4:  Updated for latest October.

But when accessing the backend, I get this error:

Class 'Backend\Models\UserPreferences' not found
/var/www/viab/playspace/plugins/indikator/backend/Plugin.php line 176

If I replace the use with Backend\Models\UserPreference and also the code at line 176 with UserPreference (singular), I now get the same error in:

/var/www/viab/playspace/plugins/indikator/backend/partials/_settings_menu_items.htm line 9

If I modify there too, it works. You want a pull request with the fix ?

ametad commented 8 years ago

Good to know this problem is taken care of... But when is it released in te OC Marketplace?

gergo85 commented 8 years ago

It doesn't work properly for now. I get the error message, when I try it. So I need to solved the new problem before I upload to Marketplace.

gergo85 commented 8 years ago

The new version of plugin is available on the OC Marketplace now.