Forum Replies Created
-
AuthorPosts
-
Michael Gilkes
Keymaster@shoshanaz. Thanks for following up with the link. It was very helpful.
If you Inspect the HTML DOM on on the page, you will see that you have placed the listing inside of a <pre> and <code> tag. This is what is creating the spacing and grey line. If you remove the surrounding PRE and CODE tags, you will not have those artifacts any more.
Michael Gilkes
Keymaster@shoshanaz. Thanks for posting. I am unable to see your pictures. Can you post or email me the link to your webpage? That way, I can look at the listing directly and see what you are referring to.
Michael Gilkes
Keymaster@Mark68. Thanks for posting.
OK, based on your description, I believe the issue is not with the PHP version, but rather with the setup of how the article is accessed on your site. Redirecting to the home page when you click upload usually happens when the page with the uploader is not part of the menu system.
You have to setup a menu item for the page with the uploader. This menu item could be part of the main menu, or even part of a second, hidden, menu that is unrelated to the main menu of your site. What is happening is that when Joomla calls the current Uri function, and the page is not part of the menu system, it will just return the home page Uri reference. So, when you click upload, it goes straight to the homepage instead of page the uploader is on.
If you have a public site, you can send me the link so that I can take a look, but I suspect that what I have described might fit your situation. To remedy it, all you need to do is create a menu item for the webpage (article) with the uploader.
Michael Gilkes
Keymaster@dabacus. This error is a false positive. It was reported by several extension developers including myself. It was fixed in the Joomla 4.2 code branch, but has not been patched in the Joomla 3.10 branch.
Unless the code maintainers apply the patch to the Joomla 3.10 branch the error will show. The only thing I could do on my end is to edit my Update Server to not include any reference to a database requirement.
Michael Gilkes
Keymaster@JFS. Thanks for posting. I got your email. I just released version 2.0.1, which should fix the error you reported. I will update the JED listing soon. So, please update and Let me know if it is working now.
Michael Gilkes
Keymaster@Crazy5650. Thanks for sharing your experience and insight. I plan to revisit how profiles and short code interact together in an upcoming release.
In the past, the profile would always be the default unless you change it, and the shortcode only created local changes that do not reflect in the profile. Going forward, I want to make the shortcode actually alter the profile directly. So, every shortcode relates to a specific profile, but only if the folder location is the same.
To be honest, I have to review my own code to see what I have right now. It’s been a little while since I touched that part of the code, and I have worked on other things since then. Anyways, you can always go to a profile and click the “Save as Copy” to get a duplicate of a custom listing. However, your suggestion has given me something to think about.
Michael Gilkes
Keymaster@Crazy5650. Ok. Let’s leave it at that for now. If anything else pops up, just let me know. Best Regards.
Michael Gilkes
Keymaster@Crazy5650. Thanks for posting your error stack. I am not able to reproduce this error on my test systems. I have a fresh Joomla 4.2.5 installed, and installed the latest release of the extension. Then I added the shortcode {easyfolderlistingpro profile=”1″ folder=”images” method=”table”} then clicked Save, and I get no error. The article saved without any issue.
Can you explain what you are doing (such as the exact shortcode you use), so we can synchronize our actions, and see if I can reproduce this? Could you also update your Joomla version to the latest 4.2.5 instead of 4.2.3, so we can have equal footing for a comparison? Thanks.
So, as far as I can tell, there is nothing in the code that should trigger such an error. The error says that an empty string (”) is an incorrect value for datetime checked_out_time column. However, I don’t actually try to change or update the checked_out_time field in my code. This is done automatically in the Joomla code.
The thing is that when you save the article it renders the code, which executes the profile update to the database, based on the attributes in the shortcode. This is why you get a possible error when you save. So, any errors or notices will pop up when saving the article and not only when displaying in the front end.
Michael Gilkes
Keymaster@Crazy5650. Yes. I am glad the default is NULL. It is supposed to be NULL by default. The error you experienced occurs because of the invalid value “0000-00-00 00:00:00” being inputted into the field. I dealt with this issue since version 3.6, when MySQL deprecated the use of that value. I am not too sure how those values got into your table. There shouldn’t be anything in the code that does that.
Did you recently upgraded your MySQL from an older version to a newer one? Or maybe updated the extension from an older version?
Michael Gilkes
Keymaster@Crazy5650. Thanks for posting the version information. Everything seems fine. The only main difference between your setup and mine is that your mysql server is version 8.0.30, while my test servers use 5.7.34. Since your setup is on local development, can you check the the database tables, __eflp_profiles and __eflp_icons for what the default value for the ‘checked_out_time’ column is. It should be NULL. Whatever it is, please let me know.
If I could reproduce your issue on my test servers, that would be useful.
Michael Gilkes
Keymaster@Crazy5650. Thanks for posting.
OK. I am not getting that error on my test servers. So, something is going on with your setup. Can you please let me know your PHP version, MySql or Postgresql version, and the version of Easy Folder Listing Pro you have installed? Can you confirm that your Joomla version is 4.2.4?
October 13, 2022 at 9:52 pm in reply to: Can the module handle multiple articles each with its own upload folder? #3317Michael Gilkes
Keymaster@RichardXWH. There are different ways to use the “Content – Load Modules” plugin that is builtin to Joomla 4. One way is to specify a position. So, you have to create a fictitious position in the module, and then say {loadposition my_fake_position}. Another way is to use the module ID, and type {loadmoduleid 232}, where 232 would be the id for an Easy Folder Listing module instance. Another way is to specify the module name, with the title and style as optional arguments: {loadmodule mod_easyfolderlisting, “My Title”, my_style}
I don’t know anything about {module title=”Files”} relating to displaying modules.
-
This reply was modified 2 years, 5 months ago by
Michael Gilkes.
September 30, 2022 at 11:16 pm in reply to: Can the module handle multiple articles each with its own upload folder? #3313Michael Gilkes
Keymaster@RichardXWH. Thanks for your question. Yes, the module can be used in multiple articles with different upload folders. Just create a module instance for each article as needed.
Michael Gilkes
Keymaster@serge73. Thanks for your request. I don’t usually do custom changes to my extensions. I don’t really have the time to do that, and I am busy with several ongoing projects.
Michael Gilkes
Keymaster@serge73. Thanks for posting. Sorry for not replying sooner.
I currently can’t commit myself to making any major changes to the Easy File Uploader. I am already behind in a few of my project.
However, the change to check for maximum size of an image is best done with Javascript before uploading the file. As for renaming the file, I am sure what you have in mind, but that may be a little more involved that what you explain. That change may be unique to your particular setup and requirements.
-
This reply was modified 2 years, 5 months ago by
-
AuthorPosts