6 users online. Create an account or sign in to join them.Users

Search

I'm trying to group a data source by a selectbox link getting this result:

<error>Invalid argument supplied for foreach()</error>

The error is not very ... well ... specific - which file, which loop, which argument? And there are no related errors in the system log.

Any ideas what might cause this issue or how to debug it?

Does it go away when you stop grouping? If so I imagine this line is likely where the problem is occuring: https://github.com/symphonycms/selectbox_link_field/...

Yes, it goes away when I stop grouping or use another field for this purpose. I added a die() statement above the foreach you linked to, but nothing changes. So I guess the error occurs somewhere earlier.

Is there a way to make the data source log the error anywhere? There certainly has to be more information about the problematic file and line.

Okay, I tracked it down to an error in SSM. Nevertheless, it would be nice if Symphony could provide more specific error messages.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details