We’re rewarding the question askers & reputations are being recalculated! Read more.
22

There are a few potential causes for file and folder permission issues on Linux hosting. 1. File and Folder Permissions Check folder permissions are set to 0755 and file permissions are set to 0644. Note that file and folder permissions can be reset to these standard secure settings on a site wide basis using the free or the paid version of Akeeba Admin ...


14

Change Error Reporting to Maximum Login to admin area Go to Global configuration -> server First you need to set the Error Reporting to Maximum Edit Files in FTP Login to your Joomla site files via FTP. Find your index.php file located in the root of your site. Open the index.php and add this code directly after the very first line of the file: ini_set(...


13

The practice we follow is - Change website-title in global configuration to [TEST] original title. Change email configuration to point to mailtrap.io If test site is on same server, change database details. Change all third party integrations to testing account (services beyond joomla) e.g. Memcache or redis external database/storage payment gateway, ...


12

Please check the permission levels, it should be 644 and 755 for files and folders respectively. Many times the permission levels are just fine, even when some issues are faced. It means that you will have to check the the ownership and group of the specific files and folders. Normally the group and ownership can be changed to www-data for apache (used in ...


10

This is a rather very tech solution as it requires some experience in configuring Apache. The advantage is that you don't have to hack any files in the Joomla! installation itself. Basically what I want to do is to append some HTML to any page (almost any page) being generated. For this I will use Apache Module mod_substitute. The module itself needs to be ...


10

These other answers will probably lead you to the answer, however one thing I noticed as a minor problem is some plugins set up error_reporting on there own and that can override Joomla's Error reporting, so another way to fix this is to disable extensions one at a time until the site loads, plugins being the main offender. Manually check other pages, does ...


10

Here is a draft idea using a plugin: You need to create a system plugin (I am not getting into that) and to use the event onBeforeRender. Inside you get an instance of your Toolbar and append the button. class PlgSystemCustomtoolbar extends JPlugin { public function onBeforeRender() { // Get the application object $app = JFactory::...


9

I feel like this is an "edge case" scenario. A large portion of Joomla users would be secure and safe without these files, but some people run Joomla on a mis-configured host (and some on a misconfigured host that won't let them reconfigure) which would display directory contents if the directory was requested. This file prevents that. On a personal level, ...


8

An easy solution for me is to often let PHP run in (Fast-)CGI mode and to set the ownership of the Joomla directory to the FTP user. So you will be able to upload and overwrite files via FTP and Joomla will be able to write files too. A way to do this on a shared hosting environment (if it is allowed), is to add something like this to your .htaccess file: ...


8

In the index.php file of your folder, such as \joomlaroot\yourfolder\index.php, load just the framework of your Joomla site, use the following code: Once that is done, you have full access to "everything Joomla". <?php if (!defined('_JEXEC')) { define( '_JEXEC', 1 ); define('JPATH_BASE', dirname(dirname(__FILE__))); require_once ( JPATH_BASE ...


7

Permissions should be 644 and 755 as explained by Shyam. In Joomla you can avoid all the problems you mentioned ,with following methods. Not being able to transfer files to the server using programs such as WinSCP. This may happen due to permission of (444) like Joomla configuration.php have this permission its doesn't allow by default(for security). ...


7

Permissions should be 644 and 755 as explained by Shyam. The problems you are facing are most likely related to the way your server is set up. Most of the time this happens on shared hosts where Apache runs under a different user than your FTP account. Since you usually upload Joomla using FTP, Apache isn't the owner of the file and thus doesn't have the ...


7

The reason for a index.html in each folder is to protect it for disclose information on mis-configured hosting environment. If this is a real problem and should the cms consider that is another question.


7

For the extensions shipped with core that I don't use, I disable them only. Because of how core updates are handled, those files often re-appear on sites come update day. Many times, you can uninstall unused extensions that come as part of an extension package. If packaged as a proper package extension, all the core code will gripe about is if it can't ...


6

I have the same problem with clients sometimes creating content on the development version not production. I use the following to deal with this: Change all database and password names Modify the admin template with A different background for login screen A different colour for the top bar Use a module in a prominent position on the front end which ...


6

In those cases just turn on the Joomla Error reporting to the maximum as shown below. Once the error reporting is active try reloading the webpage. It will now show you some error sentences. Actually you have just found the first information that needs to be debugged to get the error resolved More basic debugging tip can be found in this blog : http://www....


6

This is a community wiki. Feel free to contribute in a constructive manner. Joomla Podcasts Joomla Beat Podcast by Peter Bui This is a general podcast about Joomla. Lots of interesting interviews, very informative, good sound quality and overall very dynamic and positive. PHP Podcasts PHP Town Hall by Ben Edmunds, Phil Sturgeon PHP Town Hall is a ...


6

Articles are for content, not source code. Rule of thumb, different content in different places. If I have to quickly include Javascript, I would recommend NoNumber Sourcerer: http://www.nonumber.nl/extensions/sourcerer DRY principle, don't repeat yourself. Create modules with the Javascript code, and include it with {loadposition module-position}


5

Based on your comment, you are looking for an OAuth setup. As far as I know, Joomla has Oauth classes built in to the core, but these classes are to allow Joomla to act as the client (your mobile app is a client in your case). They do not give you the option to run as a server. I just recently used this package to set up an OAuth2 Server on the Joomla ...


5

Yes, the permissions should be 644 and 755 as explained by Shyam, but the other posters forget to mention that this is if the file is owned by your webserver, and the group is the group you belong to. For instance, in FileZilla you will see permissions something like this: Filename Size Filetype Last Modified Permissions Owner/Group ...


5

You need to specify the document type in the URL call with format=raw. Joomla will then automatically load the view.raw.php file. You don't even need a special controller for that. To create the toolbar button you can use this: $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Custom', '<button onclick="window.location.href = \'...


5

From a security point of view we uninstall any unused extensions (components, modules, plugins and templates). This reduces potential exposure to bad code, most of the sites we've been engaged to fix have been compromised by old, un-patched extensions (admittedly, that often weren't even disabled). From an admin user point of view it also results in less ...


5

The more standard approach would probably be to use a plugin to catch the JForm object after the XML has been processed but before it has left the model to make your changes. An example of that function would be like this: function onContentPrepareForm($form, $data) { if (!($form instanceof JForm)) { $this->_subject->setError('...


5

The way you did change the view for your article layout is half the way the appropriate. That's because you did a good job finding and editing the correct php file (the template file for the article view), but you didn't follow the recommended practice for modifying core files. A. The proper way: Template Overrides For cases like these, Joomla provides a ...


4

Another approach is to let your browser to add CSS styles to your site. Stylish browser plugin (for Firefox and for Chrome) is designed for this task. It applies additional custom CSS to every page at given URL. You actually define rules [URL]=>[CSS]. Above example: distinction can be made by adding solid or dotted line to the left Red = production, Yellow ...


4

The other answers provides a good explanation of what should be done, I only want to add a script to fix the permissions if you already uploaded a component and can't access the files with ftp. In this case I would upload this file as fix.php to the FTP server and open it in the browser: http://example.com/fix.php <?php file_fix_directory(dirname(...


4

You can use the following code: JFactory::getApplication()->login($credentials); where: $credentials = Array('username' => string, 'password' => string);


4

If you're including the JavaScript as a user and customized to your article, then it's fine. Especially if it is different for each article. However if you happen to repeat the same JavaScript code in multiple articles, then there may be better solutions like an alternative article layout. You can read more about alternative layouts here: http://docs....


4

Working in an external way, you can create an Administrator module, an editors-xtd plug-in, or a system plugin. In both cases, when your code is executed, you can add some Javascript code to inject the button in the required location. Administrator module, it is going to be shown in a position, for instance menu. It can add anything to all pages. editors-...


4

Although it's possible to do it with Joomla core articles, or by using a CCK type of component for this, I think it will be easier to use one of the ready-made extensions that provide FAQ/Knowledge Base solutions. You will get the required functionality and features out of the box. One of the extensions I usually use is the Minitek FAQ Book. It's free and ...


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