Warning JInstaller: :Install: Error SQL Duplicate Column Name ‘head_script’

If you are working with Joomla extensions or updates, you may encounter the frustrating error message:
“Warning JInstaller: :Install: Error SQL Duplicate Column Name ‘head_script’”
This issue usually appears during extension installation, migration, or database updates. While it looks technical, the problem is common and can be resolved quickly with the right approach.
This guide explains what causes the error and how to fix it safely without damaging your Joomla website.
What Does the Error Mean?
The JInstaller SQL duplicate column error occurs when Joomla attempts to create a database column that already exists in your database table.
In simple terms:
- Joomla installation script tries to add head_script
- The column already exists
- MySQL blocks duplication
- Installation process fails
This mismatch typically happens due to incomplete installs or database conflicts.
Common Causes of the Error

Several situations can trigger this Joomla installation warning.
1. Previously Installed Extension
If the extension was installed earlier and not removed correctly, database entries may remain.
2. Failed Update or Interrupted Installation
Server timeout or connection loss during installation can leave partial database changes.
3. Manual Database Modifications
Editing Joomla tables manually through phpMyAdmin may create structural conflicts.
4. Migration Between Joomla Versions
Upgrading Joomla or restoring backups sometimes duplicates database fields.
How to Fix Warning JInstaller Install Error SQL Duplicate Column Name ‘head_script’
Follow these solutions step by step.
Method 1: Check Database Table Manually
- Login to phpMyAdmin
- Select your Joomla database
- Locate the related table (often extension or template table)
- Search for column:
head_script
If the column already exists, Joomla cannot recreate it.
✅ Confirm duplication before making changes.
Method 2: Remove the Duplicate Column
If safe to proceed:
- Open the affected table structure
- Locate head_script
- Click Drop/Delete
- Retry extension installation
⚠ Always create a database backup first.
Method 3: Reinstall Extension Properly
Sometimes leftover files cause repeated SQL execution.
Steps:
- Uninstall extension from Joomla admin panel
- Delete extension folders via File Manager or FTP
- Clear Joomla cache
- Install extension again
Method 4: Edit Installation SQL File (Advanced)
If the issue persists:
- Extract extension ZIP file
- Navigate to:
administrator/components/.../sql/install.mysql.utf8.sql
- Locate SQL line adding
head_script - Modify query using:
ADD COLUMN IF NOT EXISTS
- Repackage and reinstall
This prevents duplicate column creation.
Method 5: Use Joomla Database Fix Tool
Joomla includes a built-in repair option.
Go to:
System → Maintenance → Database → Fix
This synchronizes database schema automatically.
Preventing Future Joomla Installation Errors

To avoid similar SQL conflicts:
- Always uninstall extensions cleanly
- Keep Joomla core updated
- Avoid manual database edits unless necessary
- Perform installations on stable hosting
- Backup site before updates
When Should You Contact Hosting Support?
If multiple extensions fail installation, the issue may involve:
- Database permission restrictions
- MySQL version incompatibility
- Hosting security rules
Your hosting provider can review server logs for deeper errors.
Final Thoughts
The warning jinstaller: :install: error sql duplicate column name ‘head_script’ may appear alarming, but it usually results from duplicate database entries rather than serious corruption.
By checking database tables, cleaning leftover columns, or using Joomla’s repair tools, most users can resolve the issue within minutes and continue installation smoothly.
Also read: Tatasec Business Insights Archives – Complete Guide and Analysis




