No Code Attached Yet
avatar Webdongle
Webdongle
8 Jun 2022

Steps to reproduce the issue

Install Joomla 4.1.4
Install sample data

Expected result

Sample data is installed

Actual result

Error shows
"There is an error in a sample data plugin. Response is invalid."

and only part of the sample data is installed

System information (as much as possible)

Database Type mysql
Database Version 8.0.29
Database Collation utf8mb4_unicode_ci
Database Connection Collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 8.1.7
Web Server Apache/2.4.46 (Win64) PHP/8.1.7 mod_fcgid/2.3.10-dev

Additional comments

avatar Webdongle Webdongle - open - 8 Jun 2022
avatar Webdongle Webdongle - change - 8 Jun 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jun 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Jun 2022
avatar chmst
chmst - comment - 8 Jun 2022

see also: (#37663)

avatar Webdongle Webdongle - close - 9 Jun 2022
avatar Webdongle
Webdongle - comment - 9 Jun 2022

Closed in favour of #37663

avatar Webdongle Webdongle - change - 9 Jun 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-06-09 00:43:20
Closed_By Webdongle
avatar richard67
richard67 - comment - 11 Jun 2022

Hmm, testing sample data should not be available on a stable version, so I assumed this issue here is about blog sample data and so not related to the other issue.

@Webdongle What kind of sample data have you tried to install? Blog? Or testing?

avatar brianteeman
brianteeman - comment - 11 Jun 2022

@richard67 of course its related. Maybe its time for another coffee

avatar Webdongle
Webdongle - comment - 11 Jun 2022

Blog data. There is no testing sample data. There is no 'Learn Joomla' sample data either

avatar richard67
richard67 - comment - 11 Jun 2022

So I don't think this issue here should have been closed in favour of the other one.

avatar chmst
chmst - comment - 11 Jun 2022

I assumed the testing sample data as you are experienced with Joomla installations.
I am installing blog sample data frequently and never have problems.

Did you install on a new installation or had you already some content? Which part of sample data was added to your system?

avatar brianteeman
brianteeman - comment - 11 Jun 2022

So why did you close this @Webdongle as its nothing to do with the other issue

avatar Webdongle
Webdongle - comment - 11 Jun 2022

Because I thought the error message "There is an error in a sample data plugin. Response is invalid." was related to the same plugin.

It was a virgin install of Joomla and there was no other data when I tried to install Blog sample data

avatar richard67 richard67 - change - 11 Jun 2022
Status Closed New
Closed_Date 2022-06-09 00:43:20
Closed_By Webdongle
avatar richard67 richard67 - reopen - 11 Jun 2022
avatar chmst
chmst - comment - 13 Jun 2022

@Webdongle as I cannot replicate this error on my environments: Could you repeat it and watch the console? Your php Version 8.1.7 is newer than mine.

avatar Webdongle
Webdongle - comment - 13 Jun 2022

Watch the console for what?

avatar chmst
chmst - comment - 17 Jun 2022

grafik

For the error message, like in this screen where i have simulated an error.

avatar Webdongle
Webdongle - comment - 18 Jun 2022

console01
A second attempt
console02

avatar richard67
richard67 - comment - 18 Jun 2022

@Webdongle And you are not able to check the error console of your browser’s developer tools as requested by @chmst ? I can’t really believe that.

avatar Webdongle
Webdongle - comment - 18 Jun 2022

I did and the output was empty. See the screenshot.

avatar brianteeman
brianteeman - comment - 18 Jun 2022

No errors for me

image

avatar chmst
chmst - comment - 18 Jun 2022

@Webdongle it is not possible to repeat the installation of blog sample data, this would make dupicates.

Could you make a fresh empty database and the repeat? And see what is in the Tab XHR where we get server responses?
grafik

I keep installing blog sample data in my countless test installations, but never have a problem. There must be something special in your environment.

avatar Webdongle
Webdongle - comment - 18 Jun 2022

The first image was from a clean install
console01

The second image was after clicking the install a second time
console02

When the second attempt was made the the 1/4 red line should not appear. In any case the first image was a clean install and first attempt to install sample data.

In both cases no output in the console.

I have installed Joomla many times and know to use fresh install to fresh database.

This only happens on wamp
Database Type mysql
Database Version 8.0.29
Database Collation utf8mb4_unicode_ci
Database Connection Collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 8.1.7
Web Server Apache/2.4.46 (Win64) PHP/8.1.7 mod_fcgid/2.3.10-dev

It doesn't happen with wamp
PHP Built On Windows NT LAPTOP-U0DC46MD 10.0 build 19044 (Windows 10) AMD64
Database Type mysql
Database Version 5.7.31
Database Collation utf8mb4_unicode_ci
Database Connection Collation utf8mb4_general_ci
Database Connection Encryption None
Database Server Supports Connection Encryption No
PHP Version 8.0.9
Web Server Apache/2.4.46 (Win64) PHP/8.0.9 mod_fcgid/2.3.10-dev
WebServer to PHP Interface apache2handler

Also with PHP Version 8.0.9 there is output in the console. Must be a glitch in PHP Version 8.1.7 or at least the wamp PHP Version 8.1.7 that I have?

avatar richard67
richard67 - comment - 19 Jun 2022

@Webdongle Could you check if this change fixes it for you? 7ede54a

avatar Webdongle
Webdongle - comment - 19 Jun 2022

What is the pull ID so I can use Joomla patch tester?

In the mean time I tried with Chrome which does display console output
This is the error shown prior to attempting to install sample data and after the fail

console03
console04

The DevTools fail to load error shows with both of the settings shown previously

avatar richard67
richard67 - comment - 19 Jun 2022

What is the pull ID so I can use Joomla patch tester?

@Webdongle There was no pull request, the change was committed directly. It’s a small change which can be applied with an editor, but it seems there are more issues with sample data and PHP 8.1.

avatar richard67
richard67 - comment - 19 Jun 2022

Possibly an issue with PHP 8.1 only, see also 7ede54a#commitcomment-76467354 .

avatar brianteeman
brianteeman - comment - 19 Jun 2022

fyi my test above was with php 8.1.6

avatar Webdongle
Webdongle - comment - 19 Jun 2022

So it works with php 8.1.6 but not with php 8.1.7 which is the current stable version https://www.php.net/downloads.php

avatar brianteeman
brianteeman - comment - 20 Jun 2022

tested again with no problem on php 8.1.7

image

avatar brianteeman
brianteeman - comment - 20 Jun 2022

In the mean time I tried with Chrome which does display console output

This is not the view we are asking for. As shown in the screenshot in my last post it is the network tab not the console tab and then filtered by selecting the Fetch/XHR.

This must be opened before you click on the sample data plugin

avatar Webdongle
Webdongle - comment - 20 Jun 2022

Must be a problem with my wamp's php? I updated wamp from https://wampserver.aviatechno.net/

avatar brianteeman
brianteeman - comment - 20 Jun 2022

I doubt that very much. If you could please provide the output of the network tab it would really help.

avatar Webdongle
Webdongle - comment - 20 Jun 2022

Just doing it as you were posting. btw what mysql did you test with?
console05

And with Chrome
console06

avatar Webdongle
Webdongle - comment - 21 Jun 2022

@brianteeman
Are those the screen shots that are being requested? and Are they helpful?

avatar chmst
chmst - comment - 30 Jun 2022

Not for me, sorry.
If I am working with sample data, I use to look at the XHR tab of the console which shows all requests and their responses as you can see here (#38015 (comment))

Could you please check if something was stored in your database? The first step stores a few tags.

Then IF com_fields are enabled, it stores custom fields.

Could you check if tags are stored in your database? And maybe check if you have disabled components?

avatar Webdongle
Webdongle - comment - 30 Jun 2022

Sorry don't understand what tables you want me to look for and what records in them

avatar chmst
chmst - comment - 13 Aug 2022

I could not replicate this error in many new installations. And we have no other issue like yours. @Webdongle is this still an issue or can we close it?


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

avatar Webdongle Webdongle - change - 13 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-13 23:50:46
Closed_By Webdongle
avatar Webdongle Webdongle - close - 13 Aug 2022
avatar Webdongle
Webdongle - comment - 13 Aug 2022

If nobody can replicate the error then it needs to be closed

avatar domcotec
domcotec - comment - 9 Sep 2022

@Webdongle Do you have YOOtheme Pro installed?
I get the same error and I think it's a yootheme problem here.

avatar Webdongle
Webdongle - comment - 9 Sep 2022

@Webdongle Do you have YOOtheme Pro installed? I get the same error and I think it's a yootheme problem here.

No standard Joomla install with Cassiopeia.

Add a Comment

Login with GitHub to post a comment