Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


This topic is 4754 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

This topic is 4754 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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