1. Anoka
  2. RO CSVI
  3. Thursday, 23 March 2023
  4.  Subscribe via email
When attempting to add fields to a Virtuemart export template, I get the following error:
Save failed with the following error: Field 'plugin' doesn't have a default value

This occurs when adding a new field.

I tried adding a value to the default value field, but I get the same error.

When adding with Quick Add, the popup disappears, and the screen stays grayed out. It never adds the fields, so I can't add any fields to my templates.

When running example VM export templates, they run fine.
I've tried using both PHP 7.4 and 8.0, with the same results.

Any ideas?

Looking forward to resolving this.
Thanks.
Attachments (1)
Accepted Answer
Accepted Answer Pending Moderation
I decided to uninstall RO CSVI and the VirtueMart plugin.
Then I removed all CSVI tables. (I don't understand why Joomla doesn't remove tables when uninstalling extensions, or at least provide the option).
Then I reinstalled RO CSVI and the VM plugin.
I imported the example templates and updated the fields.
This solved the problem.

One thing I forgot to mention earlier is that we used to have a very old version of CSVI (circa 2017). Some of the templates were from then. I suspect the upgrade/install script didn't account for the old version, and we had conflicting files. Not sure where the problem was, but uninstalling (completely) and reinstalling did the trick.
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Accepted Answer Pending Moderation
Hello,
So problem is only with this specific template? Did you restore this template or is it any old template you are using? What if you create a new template with same operation? Does that work?

Also post the template XML to check. To get the template XML file, in RO CSVI maintenance menu select RO CSVI on first option, backup templates on second option, select the template and download the XML file. Post the XML file.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
So problem is only with this specific template?

No, the problem applies to all VirtueMart templates. These are the only templates I need.
I also tried it on the Example VirtueMart Order Item Import template and received the same response.
When attempting to add a field to a new RO CSVI Export template, clicking on the Field Name dropdown does nothing. I can't select a field, so I can't save it.

Did you restore this template or is it any old template you are using?

This happens on old, new, and example templates.

What if you create a new template with same operation? Does that work?

Same error.

Additional info:
I have updated available fields, but this didn't change the response.

XML file attached.

Thanks.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,

So I am a little confused by your error message. This message comes out of the database and the field plugin is used by the Rules option in RO CSVI. However you are in the template field edit page. Which on saving this field, only adds a reference to the selected rules, if any are selected.

Are you using any rules?

One thing you can try is to go to the About page in RO CSVI and click on the Verify Database, this will verify the database schema and fix any issues.

When attempting to add a field to a new RO CSVI Export template, clicking on the Field Name dropdown does nothing. I can't select a field, so I can't save it.
To populate the list of available fields, go to Available Fields in RO CSVI and click the Update button. This will give you the option to select a field when you edit the template fields.

It is as if saving the template field calls the saving of a rule :o

Let us know how it goes.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Are you using any rules?

No.

One thing you can try is to go to the About page in RO CSVI and click on the Verify Database, this will verify the database schema and fix any issues.

Result: Database has been verified.
however, when trying to add a field to the template, I still received the "Save failed with the following error: Field 'plugin' doesn't have a default value" error.

To populate the list of available fields, go to Available Fields in RO CSVI and click the Update button.

I tried this before, but tried again.
Result: Still received the "Save failed with the following error: Field 'plugin' doesn't have a default value" error.

Any other thoughts?
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,

Glad to hear you have figured this out.

I suspect the upgrade/install script didn't account for the old version, and we had conflicting files.
The Fix Database is supposed to fix all database issues but I guess it may not have been the database at all but the files on the server perhaps.

I don't understand why Joomla doesn't remove tables when uninstalling extensions, or at least provide the option
Extensions need to remove the tables themselves but it is not optional when uninstalling in Joomla. As we know enough users uninstall and install new versions instead of just updating, we do not want to remove the database tables without any notice. Therefore the option is in the Maintenance options in RO CSVI to remove the database tables. We have that documented in the Uninstall CSVI document.

OK, the system must have been in some kind of limbo :D

Have a nice day.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hi, I had the same problem after upgrading to J 4.3.4 and I fixed it the same way as Anoka. We also use csvi since J 2.5 on this installation and upgraded to J3 when support ended for J2.5 and now to J4.
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
We have added this issue to our task list and will look into this. There are quite a lot of changes from old CSVI version to latest RO CSVI 8.8.0 version so there must be some conflict with templates coming from Joomla 2.5 to Joomla 4.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!