Upgrading from 3.8.10 - getting Error SQL Duplicate column name 'catid' - Forum | JoomShaper
Staff replied SP Page Builder

Upgrading from 3.8.10 - getting Error SQL Duplicate column name 'catid'

Asked by Tracey Field 3 months ago Last activity 2 months ago

Hi all, returning customer here, using pagegbuilder 3.8.10, joomla 5.4.6

I've seen the emails about the vulnerability so am attempting to take action and upgrade but I'm getting the following error:
Warning
JInstaller: :Install: Error SQL Duplicate column name 'catid'

and so the install is stalling. I would be grateful for advice.

I'm not techy at all, but can follow basic instructions that don't use IT language (I often find the answers and advise on this forum goes over my head as it assumes more knowledge than I have).

16 replies

Ziaul Kabir Staff

Hello,

Thanks for reaching out to us. Could you please share temporary administrator access to your Joomla backend? You can provide the credentials securely in the hidden content section. Also, please take a full backup of your site before we make any changes.

Once I have access, I’ll investigate further and see what’s causing the issue. Let me know once you’ve shared the details!

Best regards,

Tracey Field Asked this

Hi just realised when I sent the details I didn't do them as a direct reply to you, so you might not have noticed them?

Tracey

Tracey Field Asked this

Details in the hidden content section, thank you!

Ziaul Kabir Staff

Hello,

Could you please try upgrading SP Page Builder incrementally using the following versions instead of upgrading directly to the latest release?

  1. SP Page Builder 4.0.1
  2. SP Page Builder 4.0.11
  3. SP Page Builder 5.0.4 (or 5.0.5)
  4. SP Page Builder 5.2.0
  5. SP Page Builder 5.7.2
  6. Finally, upgrade to SP Page Builder 6.6.2

Following this upgrade path ensures that all required database migrations and file updates are executed correctly before moving to the next major version. Since there were significant architectural and database changes between v3, v4, v5, and v6, upgrading directly from v3 to the latest version may result in installation errors or database inconsistencies.

If you continue to experience any issues after following the recommended upgrade sequence, please let us know. We'll be happy to assist you further.

Best regards,

Tracey Field Asked this

Hi, the install still failed on the first older version 4.0.1 with the same message: JInstaller: :Install: Error SQL Duplicate column name 'catid'

Tracey

Tracey Field Asked this

trying to install version 4.0.1 gave me the same error message, and also shut down the whole website, so I had to roll back to my backup, so further assistance is still required please. Thanks. Tracey!

alleja

where do I find all the previous versions of pagebuilder to migrate from J3 to 4 to 5?

Tracey Field Asked this
3 months ago · edited

i don't know how to execute sql commands, that sounds way over my head - can you give me a step by step break down of how to do that please?

This is the instruction given:

Navigated to cPanel -> phpMyAdmin. Select the relevant database. (Yes I can do this bit)

Executed the following SQL operation: (I'm not sure how to do this, is it simply a case of selecting the database, clicking the SQL tap and then copying and pasting the command below and then clicking GO?)

ALTER TABLE yourDatabaseTablePrefix_sppagebuilder DROP COLUMN catid

Here add your database table prefix in here yourDatabaseTablePrefix, You will found it in your Root Joomla folder -> configuration.php (This bit I'm stuck on, where do I find my root joomla folder configuration php to find my database table prefix?)

Like I said in my original question, I'm not techy, I don't understand IT language, but I can follow very basic step by step instructions.

Thanks

Ziaul Kabir Staff

Hello,

No problem at all! I'll explain it step by step, You can also take help from AI.

Step 1: Open phpMyAdmin

  • Log in to your cPanel.
  • Open phpMyAdmin.
  • Select your Joomla database from the left-hand menu.

Step 2: Find your database table prefix

Before running the SQL command, we need to know your database table prefix.

To find it:

  1. In your cPanel, open File Manager.
  2. Navigate to your Joomla installation (this is your Joomla root folder). It is often in public_html, unless Joomla is installed in a subfolder.
  3. Look for a file named configuration.php.
  4. Right-click the file and choose Edit or Code Edit.
  5. Search for the following line:
public $dbprefix = 'abc123_';

The value between the quotes is your database table prefix. For example, if it shows:

public $dbprefix = 'abc123_';

then your table prefix is:

abc123_

Step 3: Run the SQL command

  1. Go back to phpMyAdmin.
  2. Make sure your Joomla database is selected.
  3. Click the SQL tab at the top.
  4. Replace yourDatabaseTablePrefix in the command below with your actual table prefix.

For example, if your prefix is abc123_, the command will become:

ALTER TABLE abc123_sppagebuilder DROP COLUMN catid;
  1. Paste the command into the SQL box.
  2. Click Go.

If everything is correct, the command will execute successfully.

If you're unsure about any of these steps, especially finding the configuration.php file or identifying the table prefix, just send us a screenshot of your File Manager (or the configuration.php file with any sensitive information hidden), and we'll guide you further.

Thanks

Tracey Field Asked this

Hi, I'm not sure if it is this one in the hidden content?

Ziaul Kabir Staff

Ok, then correct SQL command is:

ALTER TABLE jos_sppagebuilder DROP COLUMN catid;

Thanks

Tracey Field Asked this

Here is what it said when I ran the SQL command:

MySQL returned an empty result set (i.e. zero rows). (Query took 0.0075 seconds.)
ALTER TABLE jos_sppagebuilder DROP COLUMN catid;

Warning: #1264 Out of range value for column 'created_on' at row 1
Warning: #1264 Out of range value for column 'modified' at row 1
Warning: #1264 Out of range value for column 'checked_out_time' at row 1

I then tried to install version 4.0.1 as you suggested

It came up with: JInstaller: :Install: Error SQL Duplicate column name 'ordering'
Has knocked my site out again and when I click on the update extensions option instead of showing extensions with updates it shows this error message:
An error has occurred.
0 Failed opening required '/home/customer/www/confidentdrivers.co.uk/public_html/components/com_sppagebuilder/builder/classes/base.php' (include_path='.:/usr/local/php82/pear')

So I've had to roll everything back to my latest back up.

Grateful for your next suggestions!

Tracey

Ziaul Kabir Staff

Hi,

Could you please share your cPanel or phpMyAdmin access with us via our Hidden Content Section? I'll check the issue and do my best to resolve it.

Thank you!

Log in to reply.