J4 Issue ?
avatar richard67
richard67
26 Aug 2019

Steps to reproduce the issue

  1. Install clean 4.0-dev.
  2. Install testing sample data using corresponding button in control panel and watch the installation there.

Expected result

Installation completes without any PHP notices or warnings or errors.

Actual result

Installation stops after step 3.

5 identical PHP notices like following one (path shortened for readability):

PHP Notice: Undefined offset: 0 in /libraries/src/Table/Nested.php on line 1430

In browser console JS error (with system debug on in global settings so unminified js file is used):

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
sampledata-process.js:42:29

System information (as much as possible)

PHP 7.2
MySQL 5.7
Linux OS for webserver and dbserver
Browser: Firefox Quantum 68.0.2 (64-Bit) on Windows 10

Additional comments

Was working when I've tested 1 or 2 weeks ago, so the error seems to be more or less new.

avatar richard67 richard67 - open - 26 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Aug 2019
avatar richard67 richard67 - change - 26 Aug 2019
Title
[4.0] Installation of testing sample data stops after step 3 with PHP notice
[4.0] Installation of testing sample data stops with PHP notice after step 3
avatar richard67 richard67 - edited - 26 Aug 2019
avatar richard67 richard67 - change - 26 Aug 2019
The description was changed
avatar richard67 richard67 - edited - 26 Aug 2019
avatar richard67 richard67 - change - 26 Aug 2019
The description was changed
avatar richard67 richard67 - edited - 26 Aug 2019
avatar richard67 richard67 - change - 26 Aug 2019
Build staging 4.0-dev
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Aug 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Aug 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 27 Aug 2019
avatar ghazal
ghazal - comment - 27 Aug 2019

Can't reproduce this issue with the sampledata plugin.
Admin sampledata module OK too.
PHP 7.2.5
MySQL 5.7.22


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26036.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2019

Installed multilang. Sampledata – works as expected.

System Information

Setting Value
PHP Built On Linux lamp129.cloudaccess.net 3.10.0-962.3.2.lve1.5.24.5.el6h.x86_64 #1 SMP Thu Nov 22 10:07:47 EST 2018 x86_64
Database Type mysql
Database Version 5.7.23-cll-lve
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.7
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.0-alpha11-dev Development [ Amani ] 29-June-2019 11:27 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Firefox/68.0
Multilanguage Yes: French, German, Persian
avatar richard67
richard67 - comment - 27 Aug 2019

@franz-wohlkoenig The title of this issue clearly tells that it is about testing sample data, not multi language sample data.

Testing sample data is only available when working on clone of the GitHub repo, not when working with a nightly build.

@ghazal Did you try with testing sample data?

avatar brianteeman
brianteeman - comment - 27 Aug 2019

image

I could not replicate this

avatar ghazal
ghazal - comment - 27 Aug 2019

@richard67 Yes, I tried the sampledata plugin, not the module.
On a today's cloned version, with composer and npm installed.

avatar richard67
richard67 - comment - 27 Aug 2019

I've just tried it again and still have the error.

I did a clean install into an empty database with current 4.0-dev branch, with error reporting set to "Development" in global config server settings.

Current 4.0-dev means

  • No remainders from previous tests
  • Same external packages versions like on 4.0-dev, i.e. no composer update or so.

To make sure I have no remaonders from previous tests and no other unwanted files, I always do:

  1. git checkout 4.0-dev
  2. git remote update
  3. git clean -d -x -f
  4. git reset --hard upstream/4.0-dev
  5. git push origin +4.0-dev
  6. composer install
  7. npm install

Then I cleared browser cache in order to be sure not to have any cached old js or css.

Then I make a new installation into empty database, without any modifications, i.e. no sample data, no additional languages.

Then I switch error reporting to "Development".

Then I go to the home dashboard and use the button marked with a red frame in the following screenshot to install testing sample data:

Unbenannt-2

@ghazal @brianteeman Sure you did not have any remainders from previous tests, or any updates external packages from a previous run of "composer update"? Or maybe it is the error reporting set to development which changes something? Btw. any debug I had switched off in global config. Can you check again with these settings?

avatar richard67 richard67 - change - 27 Aug 2019
The description was changed
avatar richard67 richard67 - edited - 27 Aug 2019
avatar richard67 richard67 - change - 27 Aug 2019
The description was changed
avatar richard67 richard67 - edited - 27 Aug 2019
avatar Quy
Quy - comment - 27 Aug 2019

I can reproduce the issue where Step 3 is stuck with PHP notices and console JS error.

avatar richard67
richard67 - comment - 27 Aug 2019

Thanks god someone can reproduce it. I started to believe that I have visions or something wrong is in my tobacco ;-)

avatar alikon
alikon - comment - 28 Aug 2019

i can reproduce too, it seems related to the fact that now the finder plugins are enabled by default
at least this is what i can read in the error log

avatar ghazal
ghazal - comment - 28 Aug 2019

@richard67 Don't worry about your tobacco.
I was finally able to reproduce the error with Error Reporting set to Development (and Finder plugins enabled).
Today's distrib.

avatar chmst
chmst - comment - 2 Sep 2019

Confirmed. It is still an issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26036.

avatar N6REJ
N6REJ - comment - 9 Sep 2019

confirmed still an issue as of 1hr ago pull
image

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 10 Sep 2019

Its expected that an Issue isn't resolved if no Pull Request is created ;-)

avatar N6REJ
N6REJ - comment - 22 Sep 2019

This breaks in the 2/2 section for articles. It appears to be duplicate category issue.
step 4-6 completes properly.
pr #26235 does NOT fix the issue.

avatar N6REJ
N6REJ - comment - 22 Sep 2019

bit of debug info..
image
j4test.local.har.zip

avatar infograf768
infograf768 - comment - 23 Sep 2019

@N6REJ
#26235 solves part of the issue here:
Screen Shot 2019-09-23 at 08 28 22

Steps 8 and 9 not done.

avatar infograf768
infograf768 - comment - 23 Sep 2019

After another test, it sticks to step3... ⛔️

avatar infograf768
infograf768 - comment - 23 Sep 2019

To get it to work, I disabled ALL finder related plugins, including Content - Smartsearch
It installs fine but with a weird display:

Screen Shot 2019-09-23 at 09 00 00

avatar wilsonge
wilsonge - comment - 23 Sep 2019

yup disabling the smart search content plugin is good enough to work around for now (obviously not the long term solution). I've done some improved error handling in #26385 on the plane home last night so it now doesn't hang on the spinner but shows an error (doesn't actually solve the issue tho)

avatar infograf768
infograf768 - comment - 23 Sep 2019

Maybe we could disable the plugin in step1 and re-enable it in step9?

avatar wilsonge
wilsonge - comment - 23 Sep 2019

My guess is that if you manually create a category. then manually create an article and put it in the new category you're going to get the same error.

avatar richard67 richard67 - change - 6 Nov 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-11-06 20:44:27
Closed_By richard67
avatar richard67
richard67 - comment - 6 Nov 2019

Will be solved by PR #26392 together with PR #27008 .

avatar richard67 richard67 - close - 6 Nov 2019

Add a Comment

Login with GitHub to post a comment