RelatedRecords "Deprecated: Function split() is deprecated"

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 30, 2012   (RSS)

By Deborah - May 29, 2012

Hi. I'm attempting (unsuccessfully) to recycle some code I used on another site that utilizes the 'Related Record Lookup Functions' beta plugin. On the new site, running PHP 5.3.13, I am seeing the following error that does not appear on the older site running PHP 5.1.4:

"Deprecated: Function split() is deprecated in /mysite/htdocs/cmsb/plugins/relatedRecordLookupFunctions.php on line 66"

I am not entirely ruling out my own coding errors, but searching on Google, I think this might be the issue:

I realize this plugin is a beta, but would like to get my related records to display for the new project with whatever is considered best practice. I'm also concerned that if my hosting company upgrades the old site that the plugin code will break there.

Any help would be appreciated and if my code is suspect, I'd be happy to post that, too.

Thanks in advance. ~ Deborah

Re: [Deborah] RelatedRecords "Deprecated: Function split() is deprecated"

By Jason - May 30, 2012

Hi Deborah,

It looks like you may have an older version of that plugin. There is a newer version (still BETA), 0.3 that I've attached. I reviewed the code and this version uses explode() instead of split().

Hope this helps
Jason Sauchuk - Project Manager

Hire me! Save time by getting our experts to help with your project.