?
avatar coolman01
coolman01
29 Nov 2017

Steps to reproduce the issue

in a new article, click "new field"
add title, selcted textfield, set to required and save

Expected result

Saved new field

Actual result

Error message : Component\Fields\Administrator\Table\Field' not found
Can't save

System information (as much as possible)

PHP Built On Windows NT HP-NOTEBOOK 10.0 build 16299 (Windows 10) i586
Database Version 5.5.5-10.1.28-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8_general_ci
PHP Version 7.1.11
Web Server Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/7.1.11
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 4.0.0-dev Development [ Amani ] 31-March-2017 23:59 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Additional comments

avatar coolman01 coolman01 - open - 29 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Nov 2017
avatar brianteeman brianteeman - change - 29 Nov 2017
Title
Error when creating field
[4.0] Error when creating field
avatar brianteeman brianteeman - edited - 29 Nov 2017
avatar brianteeman
brianteeman - comment - 29 Nov 2017

Updated title to show it is for J4

avatar infograf768
infograf768 - comment - 30 Nov 2017

I can't reproduce here.
screen shot 2017-11-30 at 09 34 06

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Nov 2017
Category com_fields
avatar joomla-cms-bot joomla-cms-bot - edited - 30 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Nov 2017
Title
[4.0] Error when creating field
[4.0] [com_fields] Error when creating field
Status New Discussion
avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017

I'm getting the same thing with com_user and com_contact fields. Fresh install - this is the very first thing I did after installing.

screenshot from 2017-12-05 21-13-01

avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017

I've identified the problem, although I'm not certain what the solution is.

I was looking through the class path to determine what was being loaded, and it occurred to me to try creating a Field.php file in /administrator/components/com_fields/Table - the path that autoload_psr4.php points to for Joomla\Component\Fields\Administrator. Within that new file I simply created a class that extended FieldTable and voila - everything worked.

So, the problem has to do with the classmap and or the class name - but I can't seem to identify where the problem is (probably because it's 5 minutes to 1AM). It's something silly, I know it.

Here's the file I created in the same directory as FieldTable.php

Field.zip

avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017

OK, I've solved it. I'll issue a PR shortly.

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Dec 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-12-06 07:53:28
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 6 Dec 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 6 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Dec 2017

closed as having Pull Request #18994

avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017

@franz-wohlkoenig Who should be notified if the build tests are erroring out with software issues? I noted them in the PR - something about the wrong libsodium version and missing packages.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Dec 2017

i suggest to append "@mbabker" in your Comment.

avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Dec 2017

@stutteringp0et i meant calling him at your Comment

avatar stutteringp0et
stutteringp0et - comment - 6 Dec 2017

Got it. 2am is unkind to rational thought

Add a Comment

Login with GitHub to post a comment