Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In new topic, topic icons disappear when category selected #9778

Closed
makitso opened this issue Nov 27, 2024 · 20 comments
Closed

In new topic, topic icons disappear when category selected #9778

makitso opened this issue Nov 27, 2024 · 20 comments
Labels
Milestone

Comments

@makitso
Copy link

makitso commented Nov 27, 2024

Joomla 5.2.2
Kunena 6.3.7

When a user selects the topic category, the topic icons disappear.

@makitso
Copy link
Author

makitso commented Nov 27, 2024

When the icons go away, id I do a Ctl D to look at the code the icons are there. However, if I use the browser to inspect the icons they are not there. There is some javascript that looks for the ID="iconset_topicList" and does not display the icons, perhaps the edit.js in /components/com_kunena/template/aurelia/assets/js?

@rich20
Copy link
Member

rich20 commented Dec 2, 2024

I cannot reproduce this error. Tested with SVG, Fontawesome and Images legacy. The topic symbols are always displayed.

@makitso
Copy link
Author

makitso commented Dec 2, 2024

I just created a new instance, installed Joomla, Kunena, and Kunena sample data. Problem show up for me.
image

image

@rich20
Copy link
Member

rich20 commented Dec 2, 2024

Now I have found out exactly what you mean. I always opened the categories via the Index -> Category -> New Topic. Please always add how errors can be reproduced.

To Reproduce

  1. Click on New Topic
  2. Use the drop-down list to switch to another category

Result
Topic icons are not loaded

@rich20 rich20 added bug and removed unconfirmed labels Dec 2, 2024
@rich20 rich20 added this to the 6.3 milestone Dec 2, 2024
@Pinkeltje
Copy link
Contributor

Pinkeltje commented Dec 5, 2024

Strange. When I try to replicate this, topic icons are shown but smaller (Firefox and Chrome) K 6.3.7 and J 5.2.2
2024-12-05 Screenshot 715

2024-12-05 Screenshot 716

@makitso
Copy link
Author

makitso commented Dec 5, 2024

Go to the Forum tab, select the New Topic tab.
There is a selector <div id="iconset_topicList"> that some java code is looking for and it then sets the display to none. If you change the id selector name then the icons will continue to show but smaller in size.

@Pinkeltje
Copy link
Contributor

Could you try this patch?
Pinkeltje@5db4bbb
Difficult tho reproduce as as stated before I can see the topic icons when selecting other category.
There are more minor issues with topic icons BTW.

@makitso
Copy link
Author

makitso commented Dec 6, 2024

I am sorry, the patch did not work on my ubuntu 22.04 test system.

@Pinkeltje
Copy link
Contributor

I give up. I can't reproduce your initial problem.

@makitso
Copy link
Author

makitso commented Dec 6, 2024

I am at a loss as well. I get this problem on my test joomla site (clean install joomla, kunena, sample data), and on our production sysgtem.
I sign on to joomla, select the Forum tab, select the New Topic to display the editor. The attached file is the phpinfo from our production site.

PHP 8.2.26 - phpinfo().pdf

@makitso
Copy link
Author

makitso commented Dec 6, 2024

if i change the selector in file omponents/com_kunena/template/aurelia/layouts/topic/edit/default.php, line 314 from

to
the problem goes away.

@Pinkeltje
Copy link
Contributor

Pinkeltje commented Dec 6, 2024

Will check tomorrow. Mine is not fresh Joomla install, but is fresh Kunena install in Xampp PHP 8.2.
Can reproduce it on a Kunena forum of which I am a member BTW. But there entire source code for icons is invisible when changing category.

@Pinkeltje
Copy link
Contributor

??? Line 314 is
<div id="iconset_topicList">
Please put code between tags. Had to look in Issue source code now to see what selector you referred to.

@makitso
Copy link
Author

makitso commented Dec 8, 2024

So, I went back to joomla 5.2.1 kunena 6.3.6 and the problem did not exist.
I then upgraded joomla to 5.2.2 and the problem did not exist.
I then updated kunena to 6.3.7 and the above problem now exists.

@Ruud68
Copy link
Contributor

Ruud68 commented Dec 13, 2024

@makitso was able to reproduce (and as such fix) it: #9784

Can you test?

@Pinkeltje just trying to understand why it was working correct for you > are you on windows hosting?

@Pinkeltje
Copy link
Contributor

Pinkeltje commented Dec 13, 2024

@Ruud68 that must be it. Running xampp on windows.

@Ruud68
Copy link
Contributor

Ruud68 commented Dec 13, 2024

From our friendly AI:

The behavior you are observing is likely due to differences in case sensitivity of the underlying file systems used by the servers. Here's a breakdown of what might be happening:

1. Case-Sensitive vs. Case-Insensitive File Systems

  • Case-Sensitive File Systems:

    • Examples: ext4, XFS (common on Linux systems), etc.
    • These file systems treat testx.xml and testX.xml as two distinct files.
    • On servers with case-sensitive file systems, you must provide the exact filename (e.g., testx.xml) to access the file.
  • Case-Insensitive File Systems:

    • Examples: NTFS, HFS+ in macOS (case-insensitive by default), etc.
    • These file systems treat testx.xml and testX.xml as equivalent.
    • On servers with case-insensitive file systems, either filename will successfully access the file.

2. Server Configuration Differences

  • Operating System:

    • A Linux-based server will likely use a case-sensitive file system.
    • A Windows-based server or macOS server may use a case-insensitive file system.
  • Web Server Software:

    • The web server (e.g., Apache, Nginx, IIS) itself does not usually enforce case sensitivity but relies on the file system's behavior.
  • Virtualization:

    • If the server is running in a container or virtual machine, the file system mounted in the container/VM can also influence this behavior.

3. Best Practices to Avoid Issues

  • Always use the exact case of filenames as they exist on the server.
  • Adopt a consistent naming convention for files (e.g., all lowercase).
  • Test your application in environments that mimic your production setup to catch these discrepancies early.

Would you like help debugging this for your specific server setup?

@Pinkeltje
Copy link
Contributor

Yep. Same result from my "friend" claude. Working on it ;-)

@Ruud68
Copy link
Contributor

Ruud68 commented Dec 13, 2024

@Ruud68 that must be it. Running xampp on windows.

ok, that was then also the issue with the sampledata issue not being reproducable by you :)

@makitso
Copy link
Author

makitso commented Dec 13, 2024

@Ruud68
Yes, this solves my original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants