Search

I have a section where our admins may upload an image to the server. I’m using Symphony 2.0.7 and the official Members Extension. I need to link the member admin that uploaded the image to the image record. It is my understanding that the ‘Member Link’ field is used for this link.

I have a member link field in the Section to which the information about the image file is saved. However, I’m not sure what is supposed to go in the ‘Member Link’ field for linking purposes. I tried using /data/member-login-info/@id; however, that resulted in the following PHP error:

Fatal error: Class 'Administration' not found in C:xampphtdocspcpc.orgsymphony-2extensionsmembersfieldsfield.memberlink.php  on line 227

So, what I need is to know what sort of member information goes into the ‘Member Link’ field within any given section that uses the ‘Member Link’ field.

On thing I just noticed in the PHP error above is that the delimiters are all missing. So C:xampphtdocspcpc.orgsymphony-2extensionsmembersfieldsfield.memberlink.php should be C:xampp/htdocs/pcpc.org/symphony-2/extensions/members/fields/field.memberlink.php.

[EDIT]: The delimiters do appear in the actual error.

Resolved

By adding the following PHP line to top of /extensions/members/field/field.memberlink.php I was able to get the memberlink field to populate correctly using /data/events/member-login-info/@id for the memberlink value:

    require_once(CORE.'/class.administration.php');

N.B.: I’ll post this to the bug reporting page for the extension.

This fixes my update entry issue thanks a bunch!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details