Understanding RelatedRecordsLookup Plugin in context with newer CMSB versions

5 posts by 2 authors in: Forums > CMS Builder
Last Post: November 29, 2012   (RSS)

Re: [equinox69] Understanding RelatedRecordsLookup Plugin in context with newer CMSB versions

By Jason - November 28, 2012

Hi,

From what you describe, it doesn't sound like the createdPDF plugin is broken. What seems to be happening is the error inside relatedRecordLookupFunctions.php is stopping the script from running, which is why the PDF doesn't be generated.

I took a look at the code of this plugin and line 47 looks for a field name side the schema (ie, remember_8). this list fields comes from the "fieldList" option that is passed into the function. I would start by taking a look at your function call to ensure that "remember_8" is not being passed into the function.

Hope this helps get you started. Please let me know if you run into any issues.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Understanding RelatedRecordsLookup Plugin in context with newer CMSB versions

By Codee - November 28, 2012

Hi Jason,
Before posting to the forum:

1. I reviewed the plugin .php page and saw the code you referenced for line 47...so, then I...

2. Opened my .php list page and details page to find any reference at all for "remember_8" and not able to locate it. I realized it must be pulling the reference from SOMEWHERE so I...

3. Opened up the section editor to see if that field (remember_8) is a field anywhere in the section and I don't see it. So, I was stumped and posted to the forum.

Is there somewhere else I should check? Maybe open up the live database in phpMyAdmin? (I am terrified to monkey with the live database like that because I'm inexperienced at it).

Thanks in advance.

Re: [equinox69] Understanding RelatedRecordsLookup Plugin in context with newer CMSB versions

By Jason - November 29, 2012

Hi,

Another thing you can try is to do a search through all of your .php files for all references to the realtedRecordsLookup function. This will help you isolate exactly which function call is causing the error. That will most likely be where "remember_8" is being passed in. The function is working from a passed in array of field names, so this must be created somewhere in your code.

Hope this helps. Please let me know if you have any other questions.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Understanding RelatedRecordsLookup Plugin in context with newer CMSB versions

By Codee - November 29, 2012

doh! GREAT idea, Jason! Wasn't thinking it through completely. Thank you.