Skip to main content
4 votes

Ajax error when attempting component updates

I recently encountered this XMLHttpRequest error myself. The root of the problem caused 3 different issues. SOLUTION: In my case, the problem was caused by an incorrect setting for the public $...
TryHarder's user avatar
  • 2,340
3 votes
Accepted

Bulk insert records in database from excel

I solved the issue. Problem was that when insert query was called in a loop 2000 times, deadlock occurred and returned a blank page. The solution to this is to construct one single insert query and ...
Liz.'s user avatar
  • 1,385
2 votes
Accepted

How to add attribute to <form> of backend for module

The short answer is there's an "easier" way. The assumption being you need to provide a means for a user to upload a file as part of the core configuration of the module. Since there isn't a ...
Brian Bolli's user avatar
  • 1,416
2 votes

Why does Joomla change the file permissions on installation of plugins?

By default, the file permissions on Joomla extracted files are 644 and the folder permissions are 755. If you're seeing something different, then, as @jdog mentioned above, you will need check your ...
itoctopus's user avatar
  • 3,226
2 votes

Why does Joomla change the file permissions on installation of plugins?

Maybe check your PHP fpm configuration. This answer describes how umask is set https://stackoverflow.com/a/21319941/123594
jdog's user avatar
  • 953
2 votes

Ajax error when attempting component updates

Typically this happens when you have an .htaccess rule (possibly originally inserted for additional security) blocking access to the restore.php file. We have written about this here. Having said ...
itoctopus's user avatar
  • 3,226
2 votes

Ajax error when attempting component updates

Update I had the issue again today, renaming the htaccess only without disabling Admin Tools and then updating worked for me. So it seems to have to do with the rules, set in the htaccess by Admin ...
Dennis Heiden's user avatar
2 votes

Warning: Failed to move file! Error Unable to upload file

Apart from file and folder permissions and ownership, you should also check you have sufficient free space to upload the file.
Neil Robertson's user avatar
2 votes
Accepted

Warning: Failed to move file! Error Unable to upload file

Make sure of the following: The file/folder permissions are correct on the tmp folder. Typically, they should be 755. The ownership is correct on the tmp folder. If you are running a cPanel/WHM ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

How adjust "Maximum upload size" indicator for file upload?

If you'd like to perform this override for all file form fields only within your component, then you can override the layout at component level. To do this copy the following layout: layouts/joomla/...
Lodder's user avatar
  • 26.9k
2 votes

Photo size validation

I think I have a good idea where the error is. You are using $this->getFileName() to get the files original name, then you mutate the filename using normalize(). At this point you have a new file ...
mickmackusa's user avatar
  • 4,791
2 votes

file upload in admin backend - custom component

I found the problem which was the way I was getting the file in the model. So I just changed the following line : $file = JFactory::getApplication()->input->get('docfile'); with $file = ...
mixahlos's user avatar
  • 418
2 votes
Accepted

JFile::makeSafe does not convert file name

Well, the JFile::makeSafe() method doesn't do the conversion that I thought it did. I thought that it would remove spaces from the filename as well. The description in the Joomla docs is not very ...
mixahlos's user avatar
  • 418
1 vote

validate file type in joomla or core php

If you turn on the "Restrict Uploads" setting in the Options of the Media component, then Joomla will try to check for the real file type. However, please note that the check will fail if you don't ...
itoctopus's user avatar
  • 3,226
1 vote

Big Sized files download links for frontend users component

Docman can do that. If you hit any limits then you can increase them in the Docman settings, the Joomla settings, and the PHP server settings.
itoctopus's user avatar
  • 3,226
1 vote

Joomla custom fields type url file - upload?

I know this is an old issue, but as the problem still exists... The only solution that I have found is Advanced Custom Fields Pro developed by Tassos Marinos. It is a collection of pre-made custom ...
Παναγιώτης Κυριακόπουλος's user avatar
1 vote

Joomla custom fields type url file - upload?

The field you want to use doesn't work like that. Media file type only permits to open the joomla media controller D:, but not to make an upload... My solution for this was to make a custom module ...
troyKoutei's user avatar
1 vote

Joomla custom fields type url file - upload?

The only solution I have found to this is to use JCE (Joomla Content Editor) a third party text editor. When you have JCE installed it intercepts the media manager call and displays the JCE media ...
Brian Peat's user avatar
  • 2,366
1 vote
Accepted

Uploading file using Form class in admin template control panel

Here's a possibile workaround for you to get you going quickly: Include a form field on the template administration tab that points to an existing image file, and include a note that the user should ...
Arlen's user avatar
  • 802
1 vote

Listening for a "image upload" event

Does such an event exist? Core com_media component uses the same events as other core components: onContentBeforeSave, onContentAfterSave, onContentBeforeDelete and onContentAfterDelete. You'll need ...
Sharky's user avatar
  • 11.3k
1 vote

Front-end custom Joomla module to upload an image and save it in the Joomla images folder

After some more googling and debugging, I figured it out. The trick was that I'm using a JForm and the file field can be accessed slightly differently. First you need to access the fields tag and then ...
wanderlusted's user avatar
1 vote

Edit HTML-Code of specific Joomla Page

Have you tried physically creating a file at /onlineshop/product/view/5/14.html with the replacement HTML code? Works when I tested it just now. If a physical file exists at that request Joomla ...
Drew G's user avatar
  • 890
1 vote

Edit HTML-Code of specific Joomla Page

Joomla is a PHP based content management system and web pages are built dynamically depending on which template, component, modules and plugins are associated with the page. HTML can't easily be ...
Neil Robertson's user avatar
1 vote
Accepted

Upload and download Joomla

The easiest way to implement this would probably be to install a download extension. It looks like jDownloads will do what you need and it's free: "Access Rights for Categories: You can set the '...
Neil Robertson's user avatar
1 vote

Upload code files to Joomla site

By default, JCE strips non standard code when saving the article. The Joomla text filters may also block certain code but these can be disabled (e.g. for Super Administrators) at System -> Global ...
Neil Robertson's user avatar
1 vote

Gateway Timeout : 504 Error

Maybe look at other PHP values like max_input_time or some of the other suggestions in http://php.net/manual/en/features.file-upload.common-pitfalls.php max_input_time sets the maximum time, in ...
YellowWebMonkey's user avatar
1 vote

How to save image in specified folder in joomla directory and save file name in db

You can extend the save() method to get this functionality : public function save($data = array(), $key = 'id') { // Neccesary libraries and variables jimport('joomla.filesystem.file'); ...
Joomler's user avatar
  • 1,811
1 vote

How to save image in specified folder in joomla directory and save file name in db

To me it seems to be almost a one to one copy of the backend "list items / edit item" views of com_banners. Except you want to upload an image instead of using the internal media manager. Create ...
schnuti's user avatar
  • 51
1 vote
Accepted

how to rename file on upload custom component joomla 3

Just get the filename of your save() function, then split the name into two halves on the first occurring dot. $img_name = $file['name']; $img = explode(".", $img_name, 2); $file['name'] = $img[0]...
Josef Amalraj's user avatar
1 vote

how to rename file on upload custom component joomla 3

To make unique file name of uploaded file, you can concatenate file name with current time-stamp in save() function in your component. For example: $fileName = $fileName . '_' . time(); Hope this ...
Ronak Parmar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible