joomgalleryfriends / jg4-dev Goto Github PK
View Code? Open in Web Editor NEWDevelopment repository for JoomGallery v4.x
License: GNU General Public License v3.0
Development repository for JoomGallery v4.x
License: GNU General Public License v3.0
GIVEN
User is in Configuration Manager
AND
Error Reporting is set to Maximum
WHEN
User clicks NEW button
THEN
Warning: Invalid argument supplied for foreach() in /home/siristru/public_html/j4/administrator/components/com_joomgallery/src/Model/ConfigModel.php on line 124 is displayed
BUT
No warning should be displayed.
Test Env:
PHP Built On: Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version: 10.3.34-MariaDB
PHP Version: 7.4.28
Web Server: Apache
Joomla! Version: Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
GIVEN
User is in Image Manager
WHEN
User is clicking NEW button
AND
Enters title for image
AND
Select category Uncategorized
AND
Go to Images tab
AND
Selects image from hard drive
AND
Click SAVE button
THEN
Error is displayed: Return value of Joomgallery\Component\Joomgallery\Administrator\Service\Filesystem\Filesystem::cleanFilename() must be an instance of Joomgallery\Component\Joomgallery\Administrator\Service\Filesystem\mixed, string returned
BUT
Image should be uploaded and created
Test Env:
PHP Built On: Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version: 10.3.34-MariaDB
PHP Version: 7.4.28
Web Server: Apache
Joomla! Version: Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Tested on PHP 8 and issue do not persist. Seems to be related with PHP 7.4.x only
When creating new records of any content type (image, category, config set, tag) you need to enter something in the title field. But the value you eneter is not checked neighter sanitationed. This leads to strange titles when you eneter for example
This could be solved by creating a sanitation of the title field value in the Table::bind() method. Similar as we do for aliases.
How does this sanitation should be like?
What do we wanna allow and what should be corrected/cleaned up?
On the way to reconstructing issue #68, I proceeded as follows:
Upload a large image.
Processing successful.
Copy of the same image using Microsoft File Explorer, Detail View, Detail Area in properties (tags, titles, authors, comments, subject) modified.
Modified image uploaded.
Processing complete, but image metadata data is missing.
Image metadata controlled with XnViewMP.
Conclusion:
After saving the mentioned properties, Microsoft reduces the file size?!.
The EXIF tool provides two warnings (screenshot 2023-01-19 172755).
All characteristics are still present, but not in JG4.
I can imagine that the error in issue #68 is a subsequent error, which unfortunately I can't reconstruct until now. Therefor I opened this new issue.
My original image for testing? Sorry, more than 10 MB.
It would be huge if JoomGallery could add better support for image metadata. Currently JoomGallery uses the built in function exif_read_data() and iptcparse(https://www.php.net/manual/en/function.iptcparse.php) from the GD library to read metadata.
In most of the cases this is good enough.
But with an external tool we could improve the functionality and compatibility of metadata handling like we do with the external tool ImageMagick for image manipulation.
Advantage: More functionality.
Disadvantage: Tool has to be installed on the server.
One of the two tools I could think of using:
Does anyone would have time to test these two tools?
Error when uploading a transparent GIF image which needs to be watermarked and process it with GD.
By creating the imagetype, the image looses its transparency.
Error source not yet located.
When joomgallery for joomla 4? I want to migrate joomla 3 to joomla 4 and I can't because the gallery breaks. I have over 300 categories and I don't want to lose it.
Something is wrong – I have now the old status
GIVEN
PHP version 7.2 on server
WHEN
Trying to install JoomGallery 4
THEN
Installation is stopped but error notice contains %s "JoomGallery 4.x is only compatible to PHP versions greater than %s"
BUT
Installation is stopped and error notice contains meaningful information
PHP Built On: Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version: 10.3.34-MariaDB
PHP Version: 7.2.34
Web Server: Apache
Joomla! Version: Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Hello, dear JoomlaGallery developers, I really love JoomGallery, but I don’t understand why JG still does not know how to show horizontal and vertical photos in "masonry" or "mosaic" style like any gallery can do it now? Please devote time to this topic.
And the second, please make possibility to move the photos in the necessary order by mouse.
Thank you.
Examples of styles:
In PR #86 I noticed that:
If I use an image or a category or a tag with only one or more spaces as a title, it saves it, but I can never edit the image again. Saving a e.g. Image with only one space should show an error from my point of view! / when I save a second image with one or more spaces, the system automatically adds a "(2)" and so it's clickable...
Just for info (to be checked)
it may be feasible to add all plugins and modules into the component xml file
Still in boilerplate two paths are used additionally for packages
...\administrator\packages\pkg_foos.xml
...\administrator\packages\pkg_foos.xml
Also a separate intall script is there each
Sorry i don't know it more specific
In my configuration I have GD library: https://prnt.sc/75dTeU2uEsl3
But when set in Global Configuration GD option and try to upload a file:
It says : GD Library not found. Make sure GD is activated in your PHP settings (php.ini).
But image is uploaded and created correctly.
Also in PHP information it says that WEBP support is enabled in GD. Trying to upload webp ends with:
GIVEN
Browse to Category Manager
WHEN
Clicking New button
OR
Clicking category name to edit
THEN
In tabs Options, Publishing are language constants without translations
In Options tab - untranslated constant: COM_JOOMGALLERY_FIELDSET_IMAGES
In Publishing tab - untranslated constant: JGLOBAL_FIELDSET_METADATA
QUESTION HERE
In Parameters tab - I'm not sure here. There is "Use Global (%s)" . Is (%s) spare in this case?
The configuration should be saved without error
Error Message:
Save failed with the following error: Data too long for column 'jg_wmfile' at row 1
Joomla 4.2.2
JoomGallery 4 actual main branch
PHP 8.1
The reason is the new long image path when using the Joomla Media Manager. More info: https://ghsvs.de/programmierer-schnipsel/joomla/319-joomla-4-einleitungs-beitragsbild-komische-pfade
Either only the pure path without additions must be stored in the database or the length of the database field must be increased (to 255 Chars?).
The selected Values in 'Source Metadata Field' in Configuration Manager >> General Settings >> Uploads are not saved.
The value in Source Metadata Field should be maintained
The saved values are no longer available
The selection list only contains the values 'No Replacement' and 'Comment'
Joomla 4.2.2
JoomGallery 4 actual main branch
PHP 8.1
Detail image created with correct watermark applied
Detail image created without watermark
I installed the .zip from the PR (JG4-dev-messenger-service.zip) but I can't find any of the JoomGallery in the email templates :(
Warnings for not present metadata while uploading.
GIVEN
Editing created image in Image Manager
WHEN
Viewing Images tab
THEN
Untranslated language constants are displayed
BUT
Correct translation should be displayed
List of untranslated constants:
JGLOBAL_FIELDSET_METADATA
COM_JOOMGALLERY_MAIMAN_TYPE_ORIGINAL
COM_JOOMGALLERY_MAIMAN_TYPE_DETAIL
COM_JOOMGALLERY_MAIMAN_TYPE_THUMBNAIL
We don't need Type as only images have tags (or we plan this for categories as well?)
We don't need Select Max Levels as we have only one level of tags (or we plan to provide assigning parents for tags?)
As for statuses I wonder do we need Trash and Archive features.
What about feature for hiding columns?
GIVEN
Need to have JoomGallery 4 installed with no errors
WHEN
Uninstall JoomGallery 4 along with all additional extensions in Joomla! Extensions Manager
THEN
"Error uninstalling" displayed along with "Uninstalling the component was successful."
BUT
Uninstalling the component was successful. is displayed no "Error uninstalling" should be displayed as well
Uninstallation is successful:
But somehow this "Error uninstalling" is displayed.
Test env
PHP Built On Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version 10.3.34-MariaDB
PHP Version 8.0.16 OR 7.4.x
Web Server Apache
Joomla! Version Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
My settings:
Joomla 4.3.0
PHP 8.0
Windows 10
I tried to test the FTP filesystem plugin from Digital Peek: https://joomla.digital-peak.com/documentation/dpmedia/image-services/ftp-plugin
I installed the DP Media Package and the FTP filesystem plugin. These are available for free download.
After configuring and creating the paths, you can select the FTP plugin in the JoomGallery configuration. 👍
I then created a new category. This category is actually visible in the external FTP filesystem. 👍
If this category is then opened and closed with "Save & Close", the following error occurs:
When uploading a image, the same error occurs:
However, I am wondering why Filesystem->createFolder() is called here?
Maybe it's also an error in the Digital Peek FTP plugin? because:
Implement the basic management functionalities for images and categories:
Images
Categories
Save failed with the following error:
Unsupported image filetype.
Previously I didn't have to specify the path (previous test versions) and IM worked fine.
https://prnt.sc/gjbixfIRq-Cn
Error when uploading GIF image and process it with ImageMagick.
ImageMagick does not list GIF as a supported image type (command: magick -version).
Error happens in HTMLUploader.php line 98.
Create two main categories: Cat-A and Cat-B
Create new images in Cat-B
Move Cat-B as subcategory under Cat-A
Check file structure ->Here is all ok
Create new image in Cat-B
Check file structure
The new images should be stored in the folder xxx\cat-a\cat-b
The path entry in the database table should be \cat-a\cat-b
The images are stored in (an automatically created) folder \cat-b.
This directory is not created as a subcategory under Cat-A but as a new main category.
The path entry in the database category table is incorrect: \cat-b instead \cat-a\cat-b
Joomla 4.2.3
JoomGallery 4 actual main branch
PHP 8.1
GIVEN
User is in Image Manager
AND
Have few images with different access value for each one of them (at least one has Public access)
WHEN
Changing sorting
THEN
All items that have access set to different value than Public, are hidden on the list
BUT
Normal sorting should be applied and all items should be visible
Demonstration video: https://www.youtube.com/watch?v=nWAn8H3PBww
So it looks like when having those different access values and sorting - filtering is jumping in with default access value "Public".
GIVEN
User has already created tag
WHEN
Trying to edit existing tag
AND
Clicking Save button
THEN
Error appears: Save failed with the following error: Incorrect integer value: '' for column siristru_j4
.o984f_joomgallery_tags
.checked_out
at row 1
AND
Changes are not saved
BUT
There should be no error and changes should be saved.
Records in DB
System information:
When uploading an unsupported image file type like WEBP. The upload fails and it creates several messages:
This messages are confusing in several ways:
The xml file refers to some language files but the are not installed
The layout recommended in astridX boilerplate is to just include the folders as reference
Same for admin or site or plugin or module
<files folder="administrator/components/com_foos"> <filename>access.xml</filename> .... <folder>language</folder> .... <folder>tmpl</folder> </files>
Test Env:
PHP Built On: Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version: 10.3.34-MariaDB
PHP Version: 7.4.28
Web Server: Apache
Joomla! Version: Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
I guess this discrepancy will be part of functional buttons revamp in future, so this ticket could be expanded with full discrepancies description.
As an admin, often I load and prepare images for other users.
How can I change the owner of an image?
The storage location of an image in the filesystem is derived based on two settings in the config manager:
Now if you change one of these settings after you already uploaded some images or created some categories, JoomGallery will create a mess.
As a result, changing one of these settings requires many operations to bring everything back into line especially for large galleries. Changing this settings and start this operations could cause many problems if some of the operations fail for some reason.
How can we tackle this problem?
How can we realize a GUI which leads an administrator correctly through this procedure?
Do you think its even a good idea placing this settings in the config manager?
Should we use folder languages or language
Actually languages is used.
In 3.x => Developing an MVC Component/Adding language management
https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_language_management
The folder looks like
In backend not components look like using the singular form (mostly)
So i recommend to change this accordingly
While testing for PR #86, I noticed that I can't (yet) select a thumbnail for a category.
I can't select an image because it's set to "Not Approved" ...?
FEATURE
Language selector field in category creation form
AND
Language selector field in category creation form
GIVEN
Having more than one content languages
AND
User is in Category Manager
OR
User is in Image Manager
WHEN
Clicking New button
AND
Viewing language selector field
THEN
Default language is selected
BUT
Option All should be selected by default
We should replicate how language selector field works in com_content:
Also in com_content language field appears after language plugin System - Language Filter is enabled.
I need help. This is the second time I've run into an error starting XAMPP/MYSQL. The first time, my action with delete and replace of the *.MAI files still worked. Now it doesn't work. Does anyone have any ideas how to get out of there.
Thanks.
MySQLError-20230122.txt
GIVEN
Browse to Backend -> Components -> JomGallery -> Category Manager
WHEN
Clicking New button to create new category
THEN
Error is displayed: An error has occurred 1364 Field 'description' doesn't have a default value
BUT
Category creation form should be displayed
This issue apply to following columns in _joomgallery_categories table
description
params
created_time
modified_time
metadesc
metakey
It seems that those columns have default value set to None while they should rather have Null. So setting:
ALTER TABLE
xxx_joomgallery_categoriesCHANGE
metakey
metakeyTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
Fixed the issue on my installation.
Joomla version and settings:
JoomGallery version: #1
Category gets saved and a new, empty category form view opens to create a next category
results in "Field 'modified_time' doesn't have a default value"
If you modify an existing category and hit "Save & New" no such error happens.
Steps to replicate:
GIVEN
Need to have any element created
WHEN
Deleting an element
THEN
Notification message will show up: COM_JOOMGALLERY_N_ITEMS_DELETED
BUT
Instead language constant correct translation should show up.
The same apply to Configuration Manager and I presume that to Image Manager as well:
Test Env:
PHP Built On: Linux s47.smarthost.pl 4.18.0-348.12.2.lve.el8.x86_64 #1 SMP Mon Jan 24 07:29:58 EST 2022 x86_64
Database Version: 10.3.34-MariaDB
PHP Version: 7.4.28
Web Server: Apache
Joomla! Version: Joomla! 4.1.2 Stable [ Kuamini ] 30-March-2022 16:00 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
I just noticed that uploading images with the extension .jpeg doesn't work.
Error message:
Speichern fehlgeschlagen. Fehler: Filename: blumen.jpeg
Upload complete (File-Size: 10.45 KB)
Imagetype: thumbnail
GD Library not found. Make sure GD is activated in your PHP settings (php.ini).
Auto-Orientation only possible for JPG files with EXIF orientation meta tag.
Resize is not necessary because the image is already small enough.
Problem when copying the following file: /xampp/lampp/htdocs/Joom4_Leer/images/joomgallery/thumbnails/erste-kategorie/kummershain1_20230303_1343411087.jpeg
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'thumbnail' could not be created.
Imagetype: detail
GD Library not found. Make sure GD is activated in your PHP settings (php.ini).
Auto-Orientation only possible for JPG files with EXIF orientation meta tag.
Resize is not necessary because the image is already small enough.
Problem when copying the following file: /xampp/lampp/htdocs/Joom4_Leer/images/joomgallery/details/erste-kategorie/kummershain1_20230303_1343411087.jpeg
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'detail' could not be created.
Imagetype: original
GD Library not found. Make sure GD is activated in your PHP settings (php.ini).
Problem when copying the following file: /xampp/lampp/htdocs/Joom4_Leer/images/joomgallery/originals/erste-kategorie/kummershain1_20230303_1343411087.jpeg
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'original' could not be created.
There were some errors in the filesystem. Please check the image folders manually and resolve the problems.
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'thumbnail' successfully deleted.
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'detail' successfully deleted.
Image-File (kummershain1_20230303_1343411087.jpeg) of type 'original' successfully deleted.
Please, can somebody test this!
In my tests, Original, Detail and Thumbnail were created successfully.
But in Tab “Images”, no image will find.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.