Dynamic row issues | Formidable Plus | Forum

 

You must be logged in to post
Login


Lost Your Password?

Search Forums:

 








Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Dynamic row issues

No Tags
User Post

9:30 pm
February 3, 2013

TamaraZuk

Member

posts 5

Hi,

 

I am having a few issues with this plugin. With debug on I get many notices about undefined variables. This is not a huge issue, but I would prefer not to see them since they break the layout of the site while I am developing with debug on.

 

The main problem I am having is that when I have a table field where I would like the user to add as many rows as they would like. If they fill out only one row, for instance:

 

Column 1 Label  Column 2 Label

R1C1 Value       R1C2 Value

 

And then submit the form, the actual entry will be:

Column 1 Label  Column 2 Label

R1C1 Value       R1C1 Value

R1C2 Value       R1C2 Value

 

This is reflected on the actual form if they go back to edit the entry.

 

Weird behaviour that i would hunt through the code to find if I had the time. Unfortunately, I am in a crunch. Hopefully you can help me fix this.

 

Thank you for your time,

 

Tamara

11:51 pm
February 3, 2013

TamaraZuk

Member

posts 5

Here is what I found out as I was trying to get the data out of tables. 

 

If a table has multiple rows, the data structure is like so:

 

array( 

array( R1C1, R1C2, …)

array( R2C1, R2C2, …)

.

.

)

 

If the table has only one row, one would expect the structure to be:

 

array( array( R1C1, R1C2, …) )

 

However, it is actually:

 

array( R1C1, R1C2, …)

 

I am going to say that this is most likely the problem. Somewhere the plugin assumes the expected structure and things get all wonky.

 

Hope that helps.

4:27 pm
February 23, 2013

TamaraZuk

Member

posts 5

I have been waiting for a reply for almost a month. I also sent a request through your contact form with no response. This is a paid plugin I would expect the support to be a bit better. Even just a confirmation that you are aware of the issue and are unable to fix it is better than nothing at all.

5:07 pm
February 24, 2013

Top Quark

Barrie, ON

Member

posts 306

Hi Tamara,

Immense apologies.  The last couple of months have been a whirlwind of over-extendedness.  

The issue has been resolved with Formidable Plus 1.1.8 which has just been released.  You should see the update come to your WordPress plugins page over the next 24 hours.  If you want to upgrade immediately, visit http://yoursite.com/wp-admin/p…..Check=true.  That should get the update showing up in the list.  

Again, apologies for my absence.  

Cheers
Trevor 

9:34 pm
February 24, 2013

TheresaNan

Member

posts 5

NO it hasn't solved the issue I have the latest.

2:18 am
February 25, 2013

Top Quark

Barrie, ON

Member

posts 306

Hi Theresa,

Can you double check with the newest version 1.1.8.1?  I believe the error you were seeing is unrelated to the one Tamara was mentioning. 

Cheers
Trevor 

5:12 pm
March 17, 2013

TamaraZuk

Member

posts 5

Post edited 5:15 pm – March 17, 2013 by TamaraZuk


Top Quark said:

Hi Tamara,

Immense apologies.  The last couple of months have been a whirlwind of over-extendedness.  

The issue has been resolved with Formidable Plus 1.1.8 which has just been released.  You should see the update come to your WordPress plugins page over the next 24 hours.  If you want to upgrade immediately, visit http://yoursite.com/wp-admin/p…..Check=true.  That should get the update showing up in the list.  

Again, apologies for my absence.  

Cheers
Trevor 

Hi Trevor,

 

Thank you for your reply. I only noticed this recently. I guess I forgot to subscribe to it. 
The update has fixed this issue and thank you for this.

 

Any idea what I can do with all the notices I see on the table field. You can easily replicate by turning debug on, but this is what I see:

 

Notice: Undefined variable: display_only in /wp-content/plugins/formidable-plus/classes/views/frmplus-fields/table.php on line 17

Notice: Undefined variable: display_only in /wp-content/plugins/formidable-plus/classes/views/frmplus-fields/table-row.php on line 26

Notice: Only variable references should be returned by reference in/wp-content/plugins/formidable-plus/classes/helpers/FrmPlusFieldsHelper.php on line 264

Notice: Undefined variable: /wp-content/plugins/formidable-plus/classes/views/frmplus-fields/table-field.phpon line 23

Thank you for your time, 

 

Tamara

3:36 pm
March 23, 2013

Top Quark

Barrie, ON

Member

posts 306

Hi Tamara,

Notices are benign and can be ignored.  They are there to remind us coders not to be sloppy on standards, but sometimes old habits die hard.  

Cheers
Trevor 

No Tags

© Simple:Press