Joomla is a popular content management system that allows us to create dynamic websites easily. One of its particular features is the ability to add new functionalities through extensions such as components, modules, templates, and plugins. Like all content management systems, we may encounter different types of errors. Below, we explain how to resolve some of the most common errors in Joomla.
1.- Could not create directory When trying to install an extension in Joomla, we may encounter the following error message:
JFolder::create: Could not create directory
This error can be caused by different reasons and appears because, as indicated, the directory could not be created within the hosting account.
To fix it, we need to verify the following:
We need to review the configuration.php file located in the root of the Joomla installation. We can do this via
FTP. Check the following lines and make sure they are correct.
public $log_path = '/home/example.com/web/logs';
public $tmp_path = '/home/example.com/web/tmp';
At CDmon, the paths must be like those shown in the example.
We must ensure that the files and directories of our Joomla installation have sufficient permissions. Directories should have 755 permissions and files 644. We can manage file and directory permissions through an FTP manager or from the hosting Control Panel in the
Permissions and Folders section.
Another reason why Joomla cannot complete an installation is lack of space. To verify whether we have enough space in our hosting account, we can check it from the Control Panel in the
Usage graphs section.
2.- Infinite loop detected During the installation process of new components, the following message may appear:
JFolder::create: Infinite loop detected
This error may occur when the temporary folder paths are not correctly specified in Joomla's configuration. We can fix it by editing the configuration.php file via
FTP.
Check the following lines and make sure they are correct.
public $log_path = '/home/example.com/web/logs';
public $tmp_path = '/home/example.com/web/tmp';
They can also be modified from the Joomla administration panel, under System → Global Configuration. Remember that, in cdmon, the paths must be like those shown in the example.
3.- Cannot write configuration file When we make changes in the administration panel under Global Configuration and try to save them, sometimes the following error may appear:
An Error has occurred! Could not write to the configuration.php file!
This error occurs because the application tries to write and save changes to the configuration.php file but cannot. To fix it, we must verify the permissions and ownership of this file. We can do this from the hosting Control Panel in the
Permissions and Folders section or via an
FTP manager. The file must have 644 permissions and the correct ownership.
4.- Error connecting to the Database This error occurs when the database connection details are not correctly specified in Joomla's configuration file.
To fix it, download the configuration.php file via
FTP (located in the root of the Joomla installation) and check that the connection details are correct.
We will see parameters similar to the following:
public $host = 'localhost';
public $user = 'MySQLUser';
public $password = 'MySQLPassword';
public $db = 'DatabaseName';
We must verify that the database name, username, and password are correct. We can check them in the hosting Control Panel under the
MySQL section. If they are incorrect, replace them with the correct details from the Panel.
5.- Cannot find Joomla XML setup file If while trying to install an extension you see the following error message:
JInstaller: :Install: Cannot find Joomla XML setup file
This may be caused because the installer you are using is not compatible with your Joomla version, or the package you are trying to install is not a proper installer. Make sure the package you are installing is correct for the Joomla version you are using. You can always consult the documentation of the package developer for assistance during the installation process.
Sometimes, after upgrading Joomla to a newer version or moving it to another server, the website may load as a blank page. The cause of this behavior can be multiple factors. Therefore, the most advisable action in this case is to enable Joomla's DEBUG mode to get more details about what may be happening.
We can enable error messages by accessing the Joomla administration panel, going to Global Configuration → Server tab, and setting Error Reporting to Maximum.
Then, when accessing Joomla, it should no longer appear blank, but instead display the error. Based on the error message, we can make the necessary changes or corrections.
We may also want to enable the System Debug option in the System tab under Global Configuration. This will help debug Joomla’s behavior, but it requires advanced knowledge.