Field 'asset_id' Doesn't have A Default Value - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Field 'asset_id' Doesn't have A Default Value

EM

Elmir Mustafic

SP Page Builder 1 year ago

Hello, On brand new Joomla 5.1.2 website I have installed SP Page Builder 5.3.4 Pro. When I enable Article integration I get the following error: Save failed with the following error: Field 'asset_id' doesn't have a default value.

If I disable integration there is no problems with saving. What should I do?

0
23 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #164625

I don't know what is the use of tamper column in your content table. However, I have run this SQL query to solve this.

ALTER TABLE `fy0n7_content` CHANGE `tamper` `tamper` INT(11) NOT NULL DEFAULT '1';
0
EM
Elmir Mustafic
Accepted Answer
1 year ago #164636

Thank you, it works now.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #164638

You are welcome 😊

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on 

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #162443

Hello Elmir Mustafic

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup with you before sharing.

Best regards

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #162444

Hello, here we go.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #162556

Sorry, I have checked but could not find the issue. Please share a screenshot of your issue to understand it better. Take a screenshot and share via any platform. For example: Lightshot or Imgur

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #162566

Osrry, my bad, I forgot to to say that error occuors when I create new article and try to save. Here is the screenshot https://imgur.com/a/PAhT8nO

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #162591

Please run this SQL query on your site and let me know.

ALTER TABLE `xxxxx_sppagebuilder` CHANGE `asset_id` `asset_id` INT NOT NULL DEFAULT '0';
0
EM
Elmir Mustafic
Accepted Answer
1 year ago #162601

I did https://imgur.com/fjCtGbh but still the same error

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #162646

Please try this SQL query

ALTER TABLE `fy0n7_content` CHANGE `asset_id` `asset_id` INT UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.';

The previous query is

ALTER TABLE `fy0n7_sppagebuilder` CHANGE `asset_id` `asset_id` INT NOT NULL DEFAULT '0';
0
EM
Elmir Mustafic
Accepted Answer
1 year ago #162730

I executed it but when saving new artcile I'm getting the following error: "Save failed with the following error: Field 'tamper' doesn't have a default value" https://imgur.com/a/h1TVfeY

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #163079

So any updates? Client need working website... After your second MYSQL querry now even disabling Article integration I can't save new articles getting the following error: "Save failed with the following error: Field 'tamper' doesn't have a default value" https://imgur.com/a/h1TVfeY

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #163172

Please take a full site backup with Akeeba Backup in ZIP format and share here. Follow this tutorial. I will check it on my localhost.

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #163181

Can you donwload it directly from website? File is Backup taken on Friday, 26 July 2024 12:01 UTC (2 parts)

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #163442

Did you download backup?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #163492

Apology for the inconvenience. Because of a nationwide internet blackout, we could not respond to you earlier. We are still communicating with limited connectivity and trying to help as much as possible.

I have downloaded and installed the backup on my localhost. There are no issues. Please check this backup on your server. Follow this tutorial if needed.

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #163594

Hello, thank you for the answer, but there is still a problem. The error occurs when you create a new article and try to save. I tried on 2 different servers and it's still there. https://prnt.sc/isCrYq_X7kjp

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #163778

There is no field named tamper on the database table. Please check Content table structure on database.

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #163818

Error showed after the SQL Query you provided me:

ALTER TABLE `fy0n7_content` CHANGE `asset_id` `asset_id` INT UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.';
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #164415

Please share your database access. I will fix it.

0
EM
Elmir Mustafic
Accepted Answer
1 year ago #164519

Here is the backup with just first error: Field 'asset_id' Doesn't have A Default Value The error display if you try to save a new article.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #164527

I have run this SQL Query on your database. Please check your issue.

ALTER TABLE `fy0n7_content` CHANGE `asset_id` `asset_id` INT UNSIGNED NOT NULL DEFAULT '0'
0
EM
Elmir Mustafic
Accepted Answer
1 year ago #164529

Again, after that query the new error shows: Save failed with the following error: Field 'tamper' doesn't have a default value

0