Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Filemaker PHP API Error: "only variable references should be returned by reference..." -- caused by an official FM php file?

Featured Replies

Hi all,

since our upgrade to FMPA 11, we've had all kinds of issues. It looks like the upgrade wiped out a bunch of the IIS settings we had for our websites. That seems to be mostly fixed now, but we're still getting a persistent PHP error on our PHP/ODBC/FM site.

The site runs and displays correctly, so it's not a problem with accessing our Filemaker database. It's just that as part of the text displayed on every page, we get this message:

Notice: Only variable references should be returned by reference in C:\Program Files\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\FileMaker\Command.php on line 126

This is one of the filemaker PHP files that ships with the filemaker server. Line 126 is the return statement in the following code snippet from the file in question:

function &execute()

{

return $this->_impl->execute();

}

I've tried putting an @ symbol in a few different places (on line 126, of course) to see if I could silence the error, but it hasn't helped. It looks like this has been an issue for some other people, who suggested the '@' as a potential solution:

http://filemakeraddi...y-variable.html

http://fmwebschool.c...php?topic=685.0

Any help would be tremendously appreciated.

Thanks in advance!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.