Class Concrete\Attribute\UserSelector\Controller does not exist ??

Permalink
ReflectionException (-1)
Class Concrete\Attribute\UserSelector\Controller does not exist

In my new 8.4.3 I am getting this when I select Pages & Themes -> Attributes (/dashboard/pages/themes). I have never seen this before and can find anything when I search.

This appears to be thrown at /concrete/vendor/illuminate/container/Container.php line 734

$reflector = new ReflectionClass($concrete);


I have no idea what Illuminate does, other than it is a Laraval thing :/

Additionally weird, UserSelector seems to only exist in /concrete/src/Form/FormServiceProvider.php

ntisithoj
 
ntisithoj replied on at Permalink Reply
ntisithoj
Followup... I installed 8.5.0, in the hopes that this is some sort of bug that got fixed, and I get the following on install...

:(

HOWEVER, it will install and no more attributes bug if I change the encoding (see below)

:)

concrete5
Version 8.5.0a2
Install concrete5 Installation Failed.
Unable to install database: An exception occurred while executing 'CREATE TABLE PageTypeComposerControlTypes (ptComposerControlTypeID INT UNSIGNED AUTO_INCREMENT NOT NULL, ptComposerControlTypeHandle VARCHAR(255) DEFAULT NULL, ptComposerControlTypeName VARCHAR(255) DEFAULT NULL, pkgID INT UNSIGNED DEFAULT 0 NOT NULL, INDEX pkgID (pkgID), UNIQUE INDEX ptComposerControlTypeHandle (ptComposerControlTypeHandle), PRIMARY KEY(ptComposerControlTypeID)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE = InnoDB': SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes.
Trace:
#0 /store/jw/sites/thirdage/concrete/src/Package/StartingPointPackage.php(186): Concrete\Core\Package\StartingPointPackage->install_database() #1 /store/jw/sites/thirdage/concrete/controllers/install.php(398): Concrete\Core\Package\StartingPointPackage->executeInstallRoutine('install_databas...') #2 [internal function]: Concrete\Controller\Install->run_routine('elemental_blank', 'install_databas...') #3 /store/jw/sites/thirdage/concrete/src/Controller/AbstractController.php(294): call_user_func_array(Array, Array) #4 /store/jw/sites/thirdage/concrete/src/Routing/ControllerRouteAction.php(61): Concrete\Core\Controller\AbstractController->runAction('run_routine', Array) #5 /store/jw/sites/thirdage/concrete/src/Http/RouteDispatcher.php(37): Concrete\Core\Routing\ControllerRouteAction->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array) #6 /store/jw/sites/thirdage/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\RouteDispatcher->dispatch(Object(Concrete\Core\Http\Request)) #7 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\DispatcherDelegate->next(Object(Concrete\Core\Http\Request)) #8 /store/jw/sites/thirdage/concrete/src/Http/DefaultDispatcher.php(121): Concrete\Core\Http\Middleware\MiddlewareStack->process(Object(Concrete\Core\Http\Request)) #9 /store/jw/sites/thirdage/concrete/src/Http/DefaultDispatcher.php(58): Concrete\Core\Http\DefaultDispatcher->handleDispatch(Object(Concrete\Core\Http\Request)) #10 /store/jw/sites/thirdage/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\DefaultDispatcher->dispatch(Object(Concrete\Core\Http\Request)) #11 /store/jw/sites/thirdage/concrete/src/Http/Middleware/ThumbnailMiddleware.php(71): Concrete\Core\Http\Middleware\DispatcherDelegate->next(Object(Concrete\Core\Http\Request)) #12 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ThumbnailMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\DispatcherDelegate)) #13 /store/jw/sites/thirdage/concrete/src/Http/Middleware/FrameOptionsMiddleware.php(39): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request)) #14 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\FrameOptionsMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\MiddlewareDelegate)) #15 /store/jw/sites/thirdage/concrete/src/Http/Middleware/CookieMiddleware.php(35): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request)) #16 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\CookieMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\MiddlewareDelegate)) #17 /store/jw/sites/thirdage/concrete/src/Http/Middleware/ApplicationMiddleware.php(29): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request)) #18 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ApplicationMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\MiddlewareDelegate)) #19 /store/jw/sites/thirdage/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request)) #20 /store/jw/sites/thirdage/concrete/src/Http/DefaultServer.php(85): Concrete\Core\Http\Middleware\MiddlewareStack->process(Object(Concrete\Core\Http\Request)) #21 /store/jw/sites/thirdage/concrete/src/Foundation/Runtime/Run/DefaultRunner.php(119): Concrete\Core\Http\DefaultServer->handleRequest(Object(Concrete\Core\Http\Request)) #22 /store/jw/sites/thirdage/concrete/src/Foundation/Runtime/DefaultRuntime.php(102): Concrete\Core\Foundation\Runtime\Run\DefaultRunner->run() #23 /store/jw/sites/thirdage/concrete/dispatcher.php(36): Concrete\Core\Foundation\Runtime\DefaultRuntime->run() #24 /store/jw/sites/thirdage/index.php(3): require('/store/jw/sites...') #25 {main}
An error occurred.


If I change utf8mb4 to utf8 in concrete/config/database.php::'preferred_character_set' (I may lose Chinese and emoticons) it will install with no errors AND no attribute bug.

using: mysqld Ver 10.1.36-MariaDB for Linux on x86_64 (MariaDB Server)

my.ini
innodb_data_home_dir = /var/lib/mysql
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50