-
Notifications
You must be signed in to change notification settings - Fork 13
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 the Chrome console, there are errors indicating that the smilies files are not found. #193
Comments
I'm not sure about these changes you made. If look at the |
I have installed version 4.0.33 without a previous version. When you install JComments v4.0.3, the installation script doesn't run the 4.0.33.sql file (this file only runs if there is a version update). |
If you look at the table in the database, the smiley files (in the image field) are all GIFs, while in the smilies folder they are PNG files (except for one). I believe the Jcomments-4\component\administrator\install\sql\mysql\default.smilies.sql file should be updated with these changes for a clean installation. |
Creating new sql update file as you suggested in first post doesn't make sense. I think this code must run in installer script. |
Although I have worked with this extension in the past, I had to install it now for a client project . Honestly, I'm new to debugging this extension, so I don't have a deep understanding of its inner workings (I'll leave that to you). From what I've seen, I think what I've mentioned makes sense, but I'll try to explain it in more detail. Please keep in mind that my explanation may be wrong, because I don't know the layout of the code. For this issue, I believe that two things need to be done for next version (4.0.34):
The code from the first post is a patch to be applied after installing version 4.0.33. not a patch of the file of package JComments. Your install script pkg_jcomments.php, checks if there is any content in the #__jcomments_smilies table. If it doesn't find any, then it runs the SQL file (line 104) to: PATH_ROOT . '/administrator/components/com_jcomments/install/sql/mysql/default.smilies.sql. For this reason the default.smilies.sql must be update for the new installations. I hope this helps clarify the previous explanation. |
My assignment of id in some smilies (in my initial code) is different from the 4.0.33.sql update. |
Fix #_jcomments_smilies table contains all entries in the image field with a the files into smilies folder (29 png files + 1 gif file),
In Joomla 5.1.4 with PHP 8.2 and JComments 4.0.33, when I go the menu in the website, I have these errors in the browser console:
In this issue, there are 3 problems:
How to fix it:
Run in mysql these 3 scripts
The ids 2 and ,8 have been deleted because their image files don't exist.
Note: In these scripts, you must change '#_' for your prefix in Joomla database.
In the master, there are:
The text was updated successfully, but these errors were encountered: