All questions about EDocman extension

[Bug Report] Multiple Issues Found in EDocman 1.25.11

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 week 17 hours ago #170920 by hide10
Hello,

I have been a long-time user of EDocman, and recently, I had the opportunity to build a new website from scratch. During this process, I conducted a thorough review of EDocman and found several bugs and issues that I would like to report.

System Environment:
  •  Joomla 5.2.3
  •  EDocman 1.25.11
  •  MySQL 8.0.41
  •  PHP 8.1.31
  • Website Language: Japanese / English
I have identified nine issues across five different areas. I hope the following information will be useful for future updates.

1. Languages
    The following language strings are missing from the language files:
  • JLIB_APPLICATION_ERROR_DELTE_NOT_PERMITTED
  • EDOCMAN_NO_ITEM_SELECTED
    The Permissions tab displayed in the backend does not have a corresponding language string, making it impossible to translate into Japanese.

2. EDOCMAN - Dashboard
    The following links are incorrect:
  • Dashboard > Useful Links > Documentation
  •  Dashboard > Help
3. Document Manager: Documents
    The Copy Download Link icon in the download column is not functioning correctly.
    Clicking the status toggle does not change the status from Unpublished to Published.

4. Upload Configuration
    Even though the Maximum Upload File Size is set in the backend, the frontend does not display the configured value. Instead, it shows the default INI setting value.
    However, EDocman correctly enforces the configured maximum upload file size. This appears to be only a display issue in the frontend.

5. Translation Management
    The Translation Management section in the backend does not seem to load the language files correctly. Even when selecting a language, the existing language file contents are not reflected.

I would appreciate it if you could review these issues and consider addressing them in future updates. Please let me know if you need further details.

Please Log in or Create an account to join the conversation.

More
1 week 16 hours ago #170921 by Mr. Dam
Hi,
We confirm some points in your list are correct. But there are some mentioned issues in your list seem incorrect. For example:
1. Clicking the status toggle does not change the status from Unpublished to Published.
2. Even though the Maximum Upload File Size is set in the backend, the frontend does not display the configured value. Instead, it shows the default INI setting value.
-> You should change in your PHP setting also to apply this change. If you just change value of configure option: "Maximum Upload File Size" in Edocman while value of PHP variable "upload_max_filesize" is smaller, you won't able to upload bigger file that it.
3. Translation Management
-> I don't see the problem as you mentioned
Could you please submit ticket on category Edocman and provide your site credentials. I will debug the issues and get back to you directly.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 days 20 hours ago #170964 by hide10
Thank you for your prompt reply.
I posted on this forum to report what I believe to be a bug or issue. I would be glad if my report contributes to the further improvement of EDocman.Regarding the Maximum Upload File Size, I am providing additional details with screenshots (attached).
Please check the backend settings and the frontend display.
Attachments:

Please Log in or Create an account to join the conversation.

More
5 days 17 hours ago #170967 by Mr. Dam
Hi,
Yes, that's Joomla problem, to solve this issue, you can follow below steps:
1. In the Joomla admin, go to Extensions → Languages ​​→ Overrides.
2. Select the language group you are using (e.g. English– en-GB if you have installed the English version).
3. Click New to create a new override.
4. In the “Language Constant” field, enter:
JLIB_FORM_FIELD_MAXIMUM_UPLOAD_SIZE
5. In the “Text” field, enter an empty string (nothing, just blank).
6. Save the override and refresh the page.
After following the above steps, the “Maximum Upload Size” message will be hidden from the upload interface.
Good luck,
Dam

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 days 16 hours ago - 5 days 16 hours ago #170977 by hide10
Thank you for your suggestion regarding the display of the Maximum Upload File Size, but unfortunately, I cannot agree with your proposed approach. It is very important for users to know the maximum file size they can upload when submitting files.

From what I understand, your proposal suggests stopping the display of Maximum Upload File Size entirely by using a language override. However, I find this to be nonsensical.

By the way, I tried setting JLIB_FORM_FIELD_MAXIMUM_UPLOAD_SIZE in the language override as you suggested, but are you sure this is the correct language string? It has no effect on the display of Maximum Upload File Size.

Additionally, there is another issue I would like to bring to your attention.
When inspecting the HTML, I noticed the following:
Code:
<input type="file" name="jform[filename]" id="jform_filename" size="60" class="form-control inputbox"> <br> Maximum upload size:

I believe the <br> before Maximum upload size is unnecessary.
Unless there is a specific reason for it, I suggest removing the <br> and instead using a structure like:
Code:
<div class="uploadsize">Maximum upload size: % MB</div>

This would be much more user-friendly for site developers.
Last edit: 5 days 16 hours ago by hide10.

Please Log in or Create an account to join the conversation.

More
5 days 15 hours ago #170978 by Mr. Dam
Hi,
Where do you find that code?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 days 15 hours ago - 5 days 15 hours ago #170979 by hide10
Hi,

I just checked the HTML in the web inspector of my web browser (Safari/Mac).

Thanks
Attachments:
Last edit: 5 days 15 hours ago by hide10.

Please Log in or Create an account to join the conversation.

More
5 days 15 hours ago #170980 by Mr. Dam
That HTML code is generated by Joomla, not Edocman. Simply, Edocman doesn't need to take care of displaying the upload field, because Joomla takes care of that. When Joomla shows the upload field, it shows the label "Maximum upload size" below, and it retrieves the value of PHP variable: upload_max_filesize in php.ini.
As i answered above, it's Joomla problem, so i suggested you the solution to override it. And instead of leaving translation empty. You can enter "Maximum upload size: 2MB"
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 days 13 hours ago #170981 by hide10
Hi Dam,

The language string that controls the notation of Maximum upload size: % MB appears to be JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT. I would use JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT for site users.

Thanks
 

Please Log in or Create an account to join the conversation.

More
5 days 10 hours ago #170982 by Mr. Dam
You can try to add this line:
JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT="Maximum upload size: 2 MB"
into file: root -> language -> en-GB -> en-GB.com_edocman.ini
Thus, it will apply in Edocman component only.
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam