VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: kg on April 04, 2012, 17:22:54 PM

Title: [solved] 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 04, 2012, 17:22:54 PM
Custom fields of type plug-ins do not work any more. Don't know when it stopped working, but in subrelease H and I it does not work.

Tried both upgrading a site where the custom fields works fine in 2.0.2 and a new fresh install where I added a new custom field.
It did not work in any of them. Not in 2.0.3H and not in 2.0.3I

The custom field type I tested was plug-ins -  VM Custom - customer text input

On the products detail page, only the title is shown, no input field.
Other Custom fields works fine, it is just the type:plug-ins that do not work any more.

Edit: Forgot some info: Joomla 2.5.4,  Vm 2.0.3 I, PHP 5.3.10

Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 04, 2012, 20:01:08 PM
Just fixed :-)
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Bruce Morgan on April 04, 2012, 20:06:49 PM
Where can I find the fix?  Will there be a version J?
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Studio 42 on April 04, 2012, 20:37:36 PM
Was a little HTML/JS error.
YOu must install svn to download, or get it form github at https://github.com/VirtueMart/virtuemart
YOu must then decompress all in the joomla root directory(NO Guaranty for it to work but must if you do it corectly)
THe offical release come next days ...
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 04, 2012, 21:16:43 PM
version J or directly 2.0.4
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 06, 2012, 14:56:38 PM
Unfortunately this still do not work in 2.0.3 J

The output is now

cust plugin title
Price: No additional charge
cart attr custom plugin

on the products details page.

No input text field where the custom can input the data.

Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 06, 2012, 15:28:25 PM
For which plugin? Do you really use the latest version? sometimes it happened also to us that we accidently used an old prior installed one.
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 06, 2012, 15:36:54 PM
The plugin used is VM Custom - customer text input

Yes, I use the latest version. It is upgraded from 2.0.3 i to 2.0.3 J

Will make a fresh install later and test (if you think that it is a problem when having upgraded from 2.0.3 i)
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 06, 2012, 15:45:50 PM
The reason is that I just fixed it for j version and tested it, so I am surprised, yes.
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 06, 2012, 16:13:55 PM
This is the error I get in the log with the 2.0.3J upgraded from 2.0.3i:

[06-Apr-2012 14:16:37 UTC] PHP Warning:  include(/xxxxxxx/plugins/vmcustom/textinput/textinput/tmpl/default.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /xxxxxxx/administrator/components/com_virtuemart/plugins/vmplugin.php on line 441

[06-Apr-2012 14:16:37 UTC] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening '/xxxxxxx/plugins/vmcustom/textinput/textinput/tmpl/default.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /xxxxxxx/administrator/components/com_virtuemart/plugins/vmplugin.php on line 441

edited to includ both error lines


Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 06, 2012, 16:27:15 PM
As you can see, the include is trying to get the file /plugins/vmcustom/textinput/textinput/tmpl/default.php
There is one /textinput/ to many

Will now make a new fresh install again and see what happends
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: kg on April 06, 2012, 16:48:11 PM
I have now made a fresh install of J2.5.4 and VM 2.0.3 J
Added the custom field and a new product using the custom field

It still do not work. It works fine in 2.0.2 but not in 2.0.3 J

The missing part is the input field. The input title is there but not the text input field

And the error-log shows the same error:
[06-Apr-2012 14:43:52 UTC] PHP Warning:  include(/home/vmtest/public_html/vmdemo/plugins/vmcustom/textinput/textinput/tmpl/default.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/vmtest/public_html/vmdemo/administrator/components/com_virtuemart/plugins/vmplugin.php on line 441
[06-Apr-2012 14:43:52 UTC] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening '/home/vmtest/public_html/vmdemo/plugins/vmcustom/textinput/textinput/tmpl/default.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vmtest/public_html/vmdemo/administrator/components/com_virtuemart/plugins/vmplugin.php on line 441

As you can see, it is looking for the dir: /textinput/textinput/ instead of only one /textinput/

Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: nickson on April 07, 2012, 15:29:52 PM
Yes it is the double textinput/textinput. Ive changed it in components/com_virtuemart/plugins/vmplugin.php and it seems to work now.

I would like to add that when the custom text is added tot the cart, the title isnt displayed in both the cart and the order confirmation.
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 07, 2012, 15:33:34 PM
The path is correct, comes from the new feature of overriding plugins. We are just testing the next release. The error was a wrong packaging of the aio.
Title: Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: nickson on April 10, 2012, 18:26:45 PM
The path is fixed now in 2.0.4 stable. Thanks!

But still the title of the custom text input isnt showing in both cart and order confirmation.
For 1 custom text it isnt a big problem. The only thing is when I add severall custom text inputs, the user (and me) might get confused by all the different inputs.

Any chance you guys add this feature in one of the next releases.?
Title: [solved] Re: 2.0.3 I Custom fields type: plug-ins do not work any more
Post by: Milbo on April 12, 2012, 12:49:33 PM
ahhh, you mean this one. Hmm,.. in fact you can use the order of it. But it is not a nice solution, right. Should not be too hard to add it, but I see it as feature request, not bug.