?
avatar infograf768
infograf768
30 Nov 2020

Steps to reproduce the issue

Install Persian language.
Install multilang sample data.
Then switch to Persian in admin and try to install Blog sample data.

It does not work

Uncaught TypeError: b.querySelector(...) is null

    sampledataAjax  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    sampledataApply  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    EventListener.handleEvent*  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    <anonymous>  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

sampledata-process.min.js:1:551

    sampledataAjax  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    sampledataApply  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    (Async: EventListener.handleEvent)
    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    forEach  self-hosted:206

    d  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    (Async: EventListener.handleEvent)
    <anonymous>  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

    <anonymous>  http://localhost:8888/sample/joomla40/media/mod_sampledata/js/sampledata-process.min.js?6ad06aece6e4c0db10a477e15b85f220:1

NOTE: not installing multilang SD but installing Persian blog SD works.
Installing French/German blog does work after multilang is installed.

This was working a few weeks ago

avatar infograf768 infograf768 - open - 30 Nov 2020
avatar joomla-cms-bot joomla-cms-bot - change - 30 Nov 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Nov 2020
avatar infograf768
infograf768 - comment - 30 Nov 2020

EDIT: After quitting FF and trying again, It succeeded.
Looks like we have a js cache issue.
But why does it happen only with Persian here is the question.

@Fedik @dgrammatiko

avatar dgrammatiko
dgrammatiko - comment - 30 Nov 2020

But why does it happen only with Persian here is the question.

Does the HTML part of the module change depending on the language (eg class,id alters depending the language)? Reason: the script fails to find elements that needs in order to function as expected (your 1st line of the error)

avatar Fedik
Fedik - comment - 30 Nov 2020

Hard to say, maybe a browser cache from previous older installation.
Does it still happens, or all good?

avatar chmst
chmst - comment - 30 Nov 2020

I had this too but don't remember if it was related to multilingual. I just had to reload the screen, wait a second and repeat and all was fine. I thought it was caused by the debug modus which makes the loading of the site slow. (win 10, FireFox)

avatar infograf768
infograf768 - comment - 30 Nov 2020

Will test again tomorrow. with a clean site and opening a new browser.
What was weird was that I never got the problem with other languages than Persian and that I did not have the problem when installing directly the Persian blog SD (i.e. without installing first the multilingual SD.

avatar infograf768 infograf768 - change - 1 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-01 07:32:15
Closed_By infograf768
avatar infograf768 infograf768 - close - 1 Dec 2020
avatar infograf768
infograf768 - comment - 1 Dec 2020

I can't reproduce this morning. Closing.

Add a Comment

Login with GitHub to post a comment