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.

Getting a strange Error

Featured Replies

  • Newbies

Hello everyone,

 

I'm a noob at PHP web publishing and I have been trying to get some records to display from my database. Everything was going fine hosting the site and getting the database set up in till I tried to call the layout in question.

 

I get the error 

PHP Warning: urlencode() expects parameter 1 to be string, object given in C:Program FilesFileMakerFileMaker ServerWeb Publishingpublishing-enginephpFileMakerImplementationFileMakerImpl.php on line 339

 

From this code

$findCommand =& $fm->newFindAllCommand("organizationsPHPs");
$result = $findCommand->execute();

I'm not sure what is going on and I need help debugging it.

Try single quotes...

  • Author
  • Newbies

I have tried that before but it has no effect, the error still persists. 

Also... is that ampersand meant to be there? My reference looks like:

 

$request = $fm->newFindAllCommand('LayoutName');
$result = $request->execute();
  • Author
  • Newbies

I have tried to remove that before and that does not actually fix the problem. I'm still given the weird error. Could it maybe be the data from the data base that is giving the error. Is there any specific options that must be checked for the field I want to call?

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.